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

/* Blog Hero Section */
.blog-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 140px 48px 80px;
    overflow: hidden;
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: radial-gradient(ellipse at center top, rgba(80, 38, 127, 0.15) 0%, transparent 60%);
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.blog-hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.blog-hero-title .accent {
    color: var(--color-accent-light);
}

.blog-hero-text {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* Blog Grid Section */
.blog-grid-section {
    padding: 0 48px 120px;
}

/* Blog Filter Tabs */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto 48px;
}

.blog-filter-tab {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-filter-tab:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text);
}

.blog-filter-tab.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text);
}

/* Blog card hidden state for filtering */
.blog-card.hidden {
    display: none;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Blog Card */
.blog-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.blog-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-bg-elevated);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

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

.blog-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-surface) 100%);
}

.blog-card-image-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--color-text-tertiary);
    opacity: 0.5;
}

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

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--color-text-tertiary);
}

.blog-card-category {
    color: var(--color-accent-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--color-accent-light);
}

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

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
}

.blog-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-link {
    color: var(--color-accent-light);
}

.blog-card:hover .blog-card-link svg {
    transform: translateX(4px);
}

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

/* Post Hero */
.post-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 160px 48px 80px;
    overflow: hidden;
}

.post-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: radial-gradient(ellipse at center top, rgba(80, 38, 127, 0.2) 0%, transparent 60%);
}

.post-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.post-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.post-back-link:hover {
    color: var(--color-accent-light);
}

.post-back-link svg {
    width: 16px;
    height: 16px;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--color-text-tertiary);
}

.post-category {
    color: var(--color-accent-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-hero-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.post-hero-subtitle {
    font-size: 20px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Post Content */
.post-content {
    padding: 0 48px 120px;
}

.post-content-inner {
    max-width: 760px;
    margin: 0 auto;
}

/* Article Typography */
.post-content-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.3;
    margin: 56px 0 24px;
    color: var(--color-text);
}

.post-content-inner h3 {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 600;
    line-height: 1.3;
    margin: 48px 0 20px;
    color: var(--color-text);
}

.post-content-inner h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 40px 0 16px;
    color: var(--color-text);
}

.post-content-inner p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

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

.post-content-inner a {
    color: var(--color-accent-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.post-content-inner a:hover {
    color: var(--color-accent-lighter);
}

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

.post-content-inner li {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.post-content-inner li strong {
    color: var(--color-text);
}

/* Numbered Steps */
.post-content-inner ol {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.post-content-inner ol > li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 48px;
    margin-bottom: 20px;
}

.post-content-inner ol > li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: white;
}

/* Blockquote */
.post-content-inner blockquote {
    margin: 40px 0;
    padding: 32px 40px;
    background: rgba(80, 38, 127, 0.1);
    border-left: 4px solid var(--color-accent-light);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.post-content-inner blockquote p {
    font-size: 18px;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 0;
}

/* Info Box / Callout */
.info-box {
    margin: 40px 0;
    padding: 24px 28px;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
}

.info-box-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-accent-light);
    margin-bottom: 12px;
}

.info-box-title svg {
    width: 20px;
    height: 20px;
}

.info-box p {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    margin: 40px 0;
    border-collapse: collapse;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-table th {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.03);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table td {
    font-size: 15px;
    color: var(--color-text-secondary);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .highlight {
    color: var(--color-accent-light);
    font-weight: 500;
}

/* Related Articles (inline) */
.related-articles {
    margin-top: 48px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.related-articles h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
}

.related-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-articles li {
    padding: 0;
    margin-bottom: 12px;
}

.related-articles li:last-child {
    margin-bottom: 0;
}

.related-articles li::before {
    display: none;
}

.related-articles a {
    color: var(--color-accent-light);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.related-articles a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Post Footer / CTA */
.post-footer {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.post-footer-cta {
    max-width: 500px;
    margin: 0 auto;
}

.post-footer-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.post-footer-text {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

/* Related Posts */
.related-posts {
    padding: 80px 48px;
    background: var(--color-bg-elevated);
}

.related-posts-header {
    text-align: center;
    margin-bottom: 48px;
}

.related-posts-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 24px 60px;
        min-height: 40vh;
    }

    .blog-grid-section {
        padding: 0 24px 80px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .post-hero {
        padding: 140px 24px 60px;
        min-height: 50vh;
    }

    .post-content {
        padding: 0 24px 80px;
    }

    .post-content-inner blockquote {
        padding: 24px;
    }

    .post-content-inner ol > li {
        padding-left: 40px;
    }

    .post-content-inner ol > li::before {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .comparison-table {
        display: block;
        overflow-x: auto;
    }

    .related-posts {
        padding: 60px 24px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 28px;
    }

    .post-hero-title {
        font-size: 28px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-card-title {
        font-size: 18px;
    }
}
