/* ============================================
   BLOG STYLES
   ============================================ */

/* Blog Listing Page */
.blog-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.blog-page .section-header {
    margin-bottom: 60px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

.blog-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-glow);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 0, 204, 0.2);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

.blog-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.blog-card-tag {
    padding: 4px 10px;
    background: rgba(255, 0, 204, 0.15);
    border: 1px solid rgba(255, 0, 204, 0.3);
    border-radius: 50px;
    font-size: 11px;
    color: var(--neon-pink);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card-date {
    font-size: 12px;
    color: var(--text-muted);
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--neon-purple);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.blog-card-link:hover {
    color: var(--neon-pink);
    gap: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.pagination a {
    background: var(--glass-bg);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pagination a:hover {
    background: var(--glass-bg-hover);
    color: var(--text-primary);
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(106, 0, 255, 0.3);
}

.pagination a.active {
    background: var(--gradient-main);
    color: var(--text-primary);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(106, 0, 255, 0.4);
}

.pagination span.ellipsis {
    color: var(--text-muted);
    border: none;
}

/* Single Blog Post */
.blog-post {
    padding: 120px 0 80px;
    min-height: 100vh;
}

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

.blog-post-header {
    margin-bottom: 40px;
}

.blog-post-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 0, 204, 0.12);
    border: 1px solid rgba(255, 0, 204, 0.25);
    border-radius: 50px;
    font-size: 12px;
    color: var(--neon-pink);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.blog-post-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
    flex-wrap: wrap;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-post-featured-image {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 40px;
}

.blog-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Table of Contents */
.table-of-contents {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 40px;
}

.table-of-contents h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.table-of-contents ol {
    list-style: none;
    counter-reset: toc;
}

.table-of-contents li {
    margin-bottom: 10px;
}

.table-of-contents a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-of-contents a::before {
    counter-increment: toc;
    content: counter(toc) ".";
    color: var(--neon-purple);
    font-weight: 600;
    min-width: 24px;
}

.table-of-contents a:hover {
    color: var(--neon-pink);
    padding-left: 8px;
}

/* Blog Post Content */
.blog-post-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.blog-post-content h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 0, 204, 0.2);
    letter-spacing: -0.01em;
}

.blog-post-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 32px 0 14px;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.blog-post-content li {
    margin-bottom: 10px;
}

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

.blog-post-content blockquote {
    border-left: 4px solid var(--neon-purple);
    padding: 16px 20px;
    margin: 28px 0;
    background: rgba(106, 0, 255, 0.06);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
}

/* FAQ Section */
.faq-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA Box */
.cta-box {
    margin-top: 48px;
    padding: 36px;
    background: linear-gradient(145deg, rgba(255, 0, 204, 0.08) 0%, rgba(106, 0, 255, 0.08) 100%);
    border: 1px solid rgba(255, 0, 204, 0.2);
    border-radius: var(--radius-xl);
    text-align: center;
}

.cta-box h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.cta-box p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin: 60px 0;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.post-nav-link {
    flex: 1;
    min-width: 250px;
    text-decoration: none;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.post-nav-link:hover {
    border-color: var(--glass-border-glow);
    box-shadow: 0 0 20px rgba(106, 0, 255, 0.15);
}

.post-nav-link.next {
    text-align: right;
    margin-left: auto;
}

.post-nav-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-nav-link.next .post-nav-label {
    justify-content: flex-end;
}

.post-nav-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Related Posts */
.related-posts {
    margin: 60px 0;
}

.related-posts h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 28px;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-post-card {
    text-decoration: none;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.related-post-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-glow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.related-post-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.06);
}

.related-post-content {
    padding: 14px;
}

.related-post-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post-featured-image {
        height: 250px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .post-nav-link.next {
        text-align: left;
    }
    
    .post-nav-link.next .post-nav-label {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination a,
    .pagination span {
        min-width: 38px;
        height: 38px;
        font-size: 14px;
    }
}
