/* ============================================
   BLOG ARTICLE PAGE - Reusable Template
   Inspired by Case Study design
   ============================================ */

/* ============================================
   ARTICLE HERO
   ============================================ */

.article-hero {
    background: var(--gradient-hero);
    color: white;
    padding: 9rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(72, 202, 228, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.article-hero .container {
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.article-breadcrumb {
    margin-bottom: 2rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.article-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.article-breadcrumb a:hover {
    color: white;
}

/* Article Meta */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.article-category {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
}

.article-date {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.article-read-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.article-read-time .material-symbols-outlined {
    font-size: 16px;
}

/* Article Title */
.article-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

/* Article Intro */
.article-intro {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
}

/* ============================================
   ARTICLE CONTENT
   ============================================ */

.article-content-section {
    background: var(--gradient-subtle);
    padding: 4rem 0 5rem;
}

.article-grid {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Content Card */
.article-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.article-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.article-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 0.875rem;
}

.article-card h3:first-child {
    margin-top: 0;
}

.article-card p {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.article-card p:last-child {
    margin-bottom: 0;
}

.article-card ul,
.article-card ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.article-card li {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 0.625rem;
}

.article-card li::marker {
    color: var(--primary-400);
}

.article-card strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-card em {
    font-style: italic;
    color: var(--text-secondary);
}

/* Links in content */
.article-card a {
    color: var(--primary-500);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.article-card a:hover {
    color: var(--primary-700);
}

/* Blockquote */
.article-card blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--gray-50);
    border-left: 4px solid var(--primary-400);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.article-card blockquote p {
    font-size: 1.0625rem;
    font-style: italic;
    color: var(--text-primary);
    margin: 0;
}

/* Code blocks */
.article-card pre,
.article-card code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.article-card code {
    background: var(--gray-100);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    color: var(--primary-700);
}

.article-card pre {
    background: var(--gray-900);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-card pre code {
    background: none;
    padding: 0;
    color: #e2e8f0;
    font-size: 0.875rem;
    line-height: 1.7;
}

/* Images */
.article-card img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-md);
}

.article-card .image-caption {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
}

/* Highlight box */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--gray-50) 100%);
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.highlight-box p {
    margin-bottom: 0.75rem;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* ============================================
   ARTICLE CTA
   ============================================ */

.article-cta {
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.article-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 50%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(72, 202, 228, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.article-cta h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 0.75rem;
    position: relative;
}

.article-cta p {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    position: relative;
}

.article-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.article-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.article-cta-btn.primary {
    background: white;
    color: var(--primary-600);
}

.article-cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.article-cta-btn.secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.article-cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ============================================
   RELATED ARTICLES
   ============================================ */

.related-articles {
    margin-top: 3rem;
}

.related-articles h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.related-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-200);
}

.related-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.related-card:hover h3 {
    color: var(--primary-600);
}

.related-card p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   COMING SOON STATE
   ============================================ */

.coming-soon-notice {
    text-align: center;
    padding: 3rem 2rem;
}

.coming-soon-notice .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.coming-soon-notice h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.coming-soon-notice p {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .article-hero {
        padding: 7rem 0 3rem;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-intro {
        font-size: 1.0625rem;
    }

    .article-content-section {
        padding: 2.5rem 0 3rem;
    }

    .article-card {
        padding: 2rem 1.5rem;
    }

    .article-card h2 {
        font-size: 1.5rem;
    }

    .article-card h3 {
        font-size: 1.125rem;
    }

    .article-cta {
        padding: 2.5rem 1.5rem;
    }

    .article-cta h2 {
        font-size: 1.5rem;
    }

    .article-cta-buttons {
        flex-direction: column;
    }

    .article-cta-btn {
        width: 100%;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .related-card,
    .article-cta-btn {
        transition: none;
    }
}

