/* Blog Page Specific Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.125rem;
    opacity: 0.95;
}

/* Active nav state */
.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

/* Blog Section */
.blog-section {
    padding: 4rem 2rem;
    background: var(--light);
    min-height: 60vh;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Blog Card */
.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-card-content {
    padding: 1.5rem;
}

/* Blog Meta */
.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.blog-date {
    color: var(--gray);
}

.blog-category {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(249, 195, 73, 0.1);
    border-radius: 4px;
}

/* Blog Title */
.blog-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.blog-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-title a:hover {
    color: var(--primary-dark);
}

/* Blog Excerpt */
.blog-excerpt {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Read More Link */
.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;
}

.read-more:hover {
    color: var(--primary);
    transform: translateX(4px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-current,
.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination .page-current {
    background: var(--primary);
    color: var(--white);
}

.pagination .page-link {
    background: var(--white);
    color: var(--dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.pagination .page-link:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .page-next {
    padding: 0 1rem;
}

/* Individual Blog Post Styles */
.blog-post {
    padding: 4rem 2rem;
    background: var(--white);
    min-height: 60vh;
}

.blog-post .container {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light);
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.post-date {
    color: var(--gray);
}

.post-category {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(249, 195, 73, 0.1);
    border-radius: 20px;
}

.post-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 1rem;
}

.post-content {
    line-height: 1.8;
    color: var(--dark);
}

.post-content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1.5rem 0;
    color: var(--dark);
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

.post-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: var(--dark);
}

.post-content h4 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--dark);
}

.post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.post-content strong {
    color: var(--dark);
    font-weight: 600;
}

.post-content em {
    color: var(--gray);
    font-style: italic;
}

.post-content code {
    background: var(--light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: var(--dark);
}

.post-content pre {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary);
}

.post-content pre code {
    background: none;
    padding: 0;
    color: var(--dark);
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray);
    background: rgba(249, 195, 73, 0.05);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.post-content a {
    color: var(--primary-dark);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.post-content a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.post-content th,
.post-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light);
}

.post-content th {
    background: var(--light);
    font-weight: 600;
    color: var(--dark);
}

.post-content tr:hover {
    background: rgba(249, 195, 73, 0.05);
}

/* Post bottom navigation */
.post-nav {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.back-link {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: var(--light);
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.back-link:hover {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

/* Posts List Styles */
.posts-list {
    max-width: 800px;
    margin: 0 auto;
}

.posts-list h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: var(--primary-dark);
    text-align: center;
    padding: 1rem;
    background: rgba(249, 195, 73, 0.1);
    border-radius: 8px;
}

.post-item {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.post-item h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
    background: none;
    padding: 0;
    text-align: left;
}

.post-item h2 a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
}

.post-item h2 a:hover {
    color: var(--primary-dark);
}

.post-item .post-meta {
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.post-item p {
    margin-bottom: 1rem;
    color: var(--gray);
    font-size: 1rem;
}

.post-item .feature-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.post-item .feature-link:hover {
    color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-title {
        font-size: 1.25rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .blog-post {
        padding: 2rem 1rem;
    }
    
    .post-header h1 {
        font-size: 1.75rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-content h3 {
        font-size: 1.25rem;
    }
    
    .post-content p,
    .post-content li {
        font-size: 1rem;
    }
    
    .post-item {
        padding: 1.5rem;
    }
}