@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0F172A;       /* Midnight Navy */
    --secondary: #2563EB;     /* Electric Blue */
    --accent: #06B6D4;        /* Cyan */
    --accent-success: #10B981; /* Emerald Green */
    --bg: #F8FAFC;            /* Slate 50 / White */
    --text: #1E293B;          /* Slate 800 */
    --text-light: #64748B;    /* Slate 500 */
    --white: #FFFFFF;
    --border: rgba(15, 23, 42, 0.1);
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 700; }
h4 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 600; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.editorial-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--primary);
    font-weight: 400;
}

/* Floating Navigation */
.floating-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px 10px 30px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Brand Logo */
.brand-logo {
    display: inline-flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.logo-img-footer {
    height: 48px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-cta {
    background-color: var(--secondary);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 30px;
}

.nav-cta:hover {
    background-color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Layout Utilities */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: 6rem 0;
}

/* Hero Section */
.hero-section {
    padding-top: 150px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 2rem;
}

.category-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.meta-info {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1rem;
    align-items: center;
}

.hero-image-area {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.hero-image-area img {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius);
}

.highlight-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    max-width: 320px;
}

/* Vertical Timeline Stream */
.stream-section {
    background-color: var(--primary);
    color: var(--white);
}

.stream-section h2, 
.stream-section h3, 
.stream-section .editorial-text,
.stream-section .meta-info {
    color: var(--white);
}

.timeline-container {
    position: relative;
    padding-left: 3rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.4rem;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    border: 4px solid var(--primary);
}

.timeline-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.timeline-content:hover h3 {
    color: var(--accent);
}

/* Topic Explorer */
.topic-explorer {
    text-align: center;
}

.topic-circles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}

.topic-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
    background: var(--white);
}

.topic-circle:hover {
    background: var(--secondary);
    color: var(--white);
    transform: scale(1.05);
    border-color: var(--secondary);
}

/* Asymmetrical Magazine Grid (Features) */
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.mag-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.mag-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

.mag-card img {
    width: 100%;
    aspect-ratio: 16/9;
}

.mag-card-content {
    padding: 2rem;
}

.mag-large {
    grid-column: span 8;
}

.mag-small {
    grid-column: span 4;
}

.mag-large img {
    aspect-ratio: 21/9;
}

/* Trend Radar */
.trend-radar {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    padding: 6rem 5%;
    margin: 4rem 5%;
}

.trend-radar h2 {
    color: var(--white);
}

.trend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.trend-item {
    border-top: 2px solid var(--accent);
    padding-top: 1.5rem;
}

.trend-item h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.trend-item p {
    color: var(--white);
    opacity: 0.8;
}

/* Knowledge Corner */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.knowledge-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.knowledge-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 4rem;
    color: var(--secondary);
    line-height: 1;
    opacity: 0.3;
}

/* Newsletter */
.newsletter-section {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 8rem 0;
}

.newsletter-section h2 {
    color: var(--white);
}

.newsletter-form {
    max-width: 500px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 15px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: var(--white);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--accent);
    color: var(--white);
}

/* Footer */
footer {
    background: var(--bg);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-light);
}

.footer-links ul li a:hover {
    color: var(--secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Article Template */
.article-header {
    padding-top: 180px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.article-header h1 {
    margin: 2rem 0;
}

.article-hero-img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 3rem 0;
}

.article-body {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body h2, .article-body h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: var(--text);
}

/* Discover / Filter Pages */
.page-header {
    padding-top: 150px;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4rem;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: transparent;
    width: 250px;
}

.filter-options select {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Contact Form */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    font-family: var(--font-body);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--primary);
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 3rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 800px;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.5s ease;
    border: 1px solid var(--border);
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    border: 1px solid var(--primary);
    background: transparent;
    transition: var(--transition);
}

.btn-cookie.primary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-cookie:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image-area {
        order: -1;
    }
    
    .highlight-card {
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .magazine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mag-large, .mag-small {
        grid-column: span 1;
    }
    
    .trend-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        border-radius: var(--radius);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .floating-header {
        border-radius: 12px;
        padding: 15px 20px;
    }
    
    .timeline-content {
        grid-template-columns: 1fr;
    }
    
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .trend-radar {
        margin: 2rem 0;
        border-radius: 0;
    }
}