/* Article-specific styles - Minimalist and readable design */

/* Article Hero Section */
.article-hero {
    background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.35)), url('../img/background-img.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 120px 0 80px;
    position: relative;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
}

.article-category {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.article-date,
.article-read-time {
    color: rgba(255, 255, 255, 0.8);
}

.article-title {
    font-family: 'Tiempos Text', Georgia, serif;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    color: #fff;
    text-align: center;
}

.article-subtitle {
    font-family: 'Tiempos Text', Georgia, serif;
    font-size: 1.3rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 800px;
}

/* Minimalistic Breadcrumbs in Header */
.article-breadcrumb {
    text-align: center;
    margin-bottom: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
}

.article-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
    color: #fff;
}

.article-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.5rem;
}

/* Article Content */
.article-content {
    padding: 80px 0;
    background: #fff;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Tiempos Text', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

/* Typography */
.article-body h2 {
    font-family: 'Tiempos Text', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem 0;
    color: #000;
    line-height: 1.3;
}

.article-body h3 {
    font-family: 'Tiempos Text', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem 0;
    color: #000;
    line-height: 1.4;
}

.article-body h4 {
    font-family: 'Tiempos Text', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem 0;
    color: #000;
    line-height: 1.4;
}

.article-body p {
    margin: 0 0 1.5rem 0;
    color: #444;
}

.article-body strong {
    font-weight: 600;
    color: #000;
}

.article-body em {
    font-style: italic;
    color: #555;
}

/* Lists */
.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin: 0.75rem 0;
    color: #444;
}

.article-body ul li {
    list-style-type: disc;
}

.article-body ol li {
    list-style-type: decimal;
}

/* Blockquotes */
.article-body blockquote {
    border-left: 4px solid #EB6C49;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
    position: relative;
}

.article-body blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #EB6C49;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-family: 'Tiempos Text', Georgia, serif;
}

.article-body blockquote p {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Code blocks */
.article-body code {
    background: #f1f3f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #d63384;
}

.article-body pre {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #e9ecef;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: #333;
    font-size: 0.9rem;
}

/* Images */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-body .image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin: -1rem 0 2rem 0;
    font-style: italic;
}

/* Video embeds */
.article-body .video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-body .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Callout boxes */
.article-body .callout {
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.article-body .callout.info {
    background: #f0f8ff;
    border-color: #b3d9ff;
}

.article-body .callout.warning {
    background: #fff8e1;
    border-color: #ffcc02;
}

.article-body .callout.success {
    background: #f0fff4;
    border-color: #90ee90;
}

.article-body .callout h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.article-body .callout p {
    margin: 0;
    font-size: 1rem;
}

/* Back to Insights */
.back-to-insights {
    background: #f8f9fa;
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #EB6C49;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #d45a3a;
}

.back-link i {
    font-size: 0.9rem;
}

/* CSS Variables for mobile navigation */
:root {
    --primary-orange: #EB6C49;
    --gradient-primary: linear-gradient(135deg, #EB6C49 0%, #E89B5D 100%);
}

/* Mobile Navigation - Same as index.html */
@media (max-width: 900px) {
    .burger-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Navigation Styles */
    .burger-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        z-index: 10000;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }

    .nav-links {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.8);
        width: 90%;
        max-width: 400px;
        background: #ffffff;
        border-radius: 20px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 30px;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        z-index: 10001;
        display: flex;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-links.active {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        filter: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-links a {
        color: #000000 !important;
        margin: 12px 0;
        font-size: 20px;
        font-weight: 600;
        cursor: pointer;
        pointer-events: auto;
        position: relative;
        z-index: 10000;
        text-align: center;
        text-decoration: none;
        transition: all 0.2s ease;
        padding: 12px 20px;
        border-radius: 10px;
        width: 100%;
        display: block;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        letter-spacing: 0.3px;
    }

    .nav-links a:hover {
        color: var(--primary-orange);
        background: rgba(235, 108, 73, 0.1);
        transform: translateY(-2px);
    }

    .nav-links a.nav-cta {
        margin: 20px 0 0 0;
        background: var(--gradient-primary);
        color: #ffffff !important;
        border: none;
        cursor: pointer;
        pointer-events: auto;
        position: relative;
        z-index: 10000;
        padding: 16px 32px;
        border-radius: 25px;
        text-align: center;
        display: inline-block;
        font-weight: 700;
        font-size: 18px;
        box-shadow: 0 4px 15px rgba(235, 108, 73, 0.3);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        letter-spacing: 0.5px;
        text-shadow: none;
    }

    .nav-links a.nav-cta:hover {
        background: linear-gradient(135deg, #d45a3a 0%, #e89b5d 100%);
        color: white !important;
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(235, 108, 73, 0.4);
    }

    .nav-overlay {
        display: none;
    }

    .nav-overlay.active {
        display: none;
    }

    body.nav-open {
        overflow: hidden;
    }

    /* Ensure navbar is visible on mobile */
    .navbar {
        padding: 15px 20px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9997;
    }

    .navbar .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0;
        width: 100%;
    }
    .article-hero {
        padding: 100px 0 60px;
    }
    
    .article-title {
        font-size: 2.2rem;
    }
    
    .article-subtitle {
        font-size: 1.1rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-body h2 {
        font-size: 1.6rem;
    }
    
    .article-body h3 {
        font-size: 1.3rem;
    }
    
    .article-body blockquote {
        padding: 1rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .article-body blockquote::before {
        font-size: 3rem;
        top: -0.3rem;
        left: 0.5rem;
    }
}

/* Print styles */
@media print {
    .article-hero {
        background: none;
        color: #000;
        padding: 2rem 0;
    }
    
    .article-title,
    .article-subtitle {
        color: #000;
    }
    
    .article-meta {
        color: #666;
    }
    
    .back-to-insights {
        display: none;
    }
}
