:root {
    --midnight: #05090e;
    --midnight-light: #0f1621;
    --charcoal: #121821;
    --gold: #D4AF37;
    --gold-dim: #8a7020;
    --white: #ffffff;
    --grey: #a0a0a0;
    --font-head: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

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

/* --- MOBILE MENU SCROLL LOCK --- */
body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; height: auto; }

/* --- WP ADMIN BAR FIX --- */
body.admin-bar nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar nav { top: 46px; } }

/* --- NAVIGATION & MOBILE MENU --- */
nav {
    position: fixed; top: 0; width: 100%; padding: 2rem 4rem;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; mix-blend-mode: difference;
    transition: top 0.3s;
}

.logo {
    font-family: var(--font-head); font-size: 1.5rem;
    letter-spacing: 0.1em; font-weight: 700; text-transform: uppercase;
    border: 1px solid var(--white); padding: 0.5rem 1rem; color: #fff;
}

/* Desktop Menu */
.nav-links ul { display: flex; list-style: none; margin: 0; padding: 0; }
.nav-links li { margin-left: 2rem; }
.nav-links a {
    font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 0.15em; position: relative; color: #fff;
}
.nav-links a:hover { color: var(--gold); }
.back-btn { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.2em; color: var(--gold); }

/* Mobile Menu Trigger (Hamburger) */
.mobile-toggle { display: none; cursor: pointer; color: #fff; font-size: 1.5rem; user-select: none; }

/* --- HERO SLIDER --- */
.hero { position: relative; height: 100vh; width: 100%; overflow: hidden; }
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1s ease-in-out; z-index: 1; pointer-events: none;
}
.slide.active { opacity: 1; z-index: 2; pointer-events: auto; }
.slide-image {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.5) contrast(1.1) saturate(0);
    transform: scale(1); transition: transform 6s ease-out;
}
.slide.active .slide-image { transform: scale(1.1); }
.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, var(--midnight) 5%, transparent 60%); z-index: 2;
}
.slide-content {
    position: absolute; bottom: 15%; left: 5%; z-index: 3; max-width: 900px;
}
.label {
    color: var(--gold); font-size: 0.9rem; text-transform: uppercase;
    letter-spacing: 0.3em; margin-bottom: 1rem; opacity: 0; transform: translateY(20px);
    transition: all 0.8s ease 0.2s;
}
.hero h1 {
    font-family: var(--font-head); font-size: 5rem; line-height: 1;
    margin-bottom: 1.5rem; opacity: 0; transform: translateY(30px);
    transition: all 0.8s ease 0.4s;
}
.hero h1 span { font-style: italic; color: var(--gold); font-weight: 400; }
.btn-hero {
    display: inline-block; font-size: 1rem; letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gold); padding-bottom: 5px;
    opacity: 0; transform: translateY(20px); transition: all 0.8s ease 0.6s;
    cursor: pointer;
}
.slide.active .label, .slide.active h1, .slide.active .btn-hero {
    opacity: 1; transform: translateY(0);
}
.progress-container {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 4px;
    background: rgba(255,255,255,0.1); z-index: 10;
}
.progress-bar { height: 100%; background: var(--gold); width: 0%; }
.animating-bar { animation: progress 5s linear; }
@keyframes progress { from { width: 0%; } to { width: 100%; } }

/* --- GLOBAL LAYOUT --- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 4rem; }
.section-padding { padding: 8rem 0; }
.section-header { margin-bottom: 4rem; text-align: center; }
.section-header h2 { font-family: var(--font-head); font-size: 3rem; margin-bottom: 1rem; }
.gold-divider { width: 60px; height: 1px; background-color: var(--gold); margin: 0 auto; }

/* --- GRID --- */
.grid-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.article-card { cursor: pointer; display: block; }
.card-image-wrapper { width: 100%; aspect-ratio: 3/4; overflow: hidden; margin-bottom: 1.5rem; }
.card-image { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.6s ease; }
.article-card:hover .card-image { transform: scale(1.05); filter: grayscale(0%); }
.meta-tag { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; display: block; }
.article-title { font-family: var(--font-head); font-size: 2rem; line-height: 1.1; margin-bottom: 1rem; color: var(--white); }
.article-excerpt { font-size: 1rem; color: var(--grey); line-height: 1.6; margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-link { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; display: flex; align-items: center; gap: 10px; opacity: 0.7; }
.article-card:hover .read-link { opacity: 1; color: var(--gold); }

/* --- QUOTE & FEATURED (EDITOR'S PICK) --- */
.quote-section { background-color: var(--midnight-light); text-align: center; }
blockquote { font-family: var(--font-head); font-size: 3.5rem; font-style: italic; line-height: 1.2; max-width: 1000px; margin: 0 auto; background: linear-gradient(180deg, #fff, #999); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.quote-author { margin-top: 2rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); -webkit-text-fill-color: var(--gold); font-size: 0.9rem; }

.featured-wrapper { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.featured-img { width: 100%; height: 500px; object-fit: cover; filter: saturate(0); }
.big-number { font-family: var(--font-head); font-size: 8rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold-dim); opacity: 0.5; }

/* --- NEWSLETTER --- */
.newsletter { border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
.newsletter-content { display: flex; justify-content: space-between; align-items: flex-end; }
.newsletter-text h3 { font-family: var(--font-head); font-size: 3rem; margin-bottom: 1rem; }
.newsletter-text p { color: var(--grey); max-width: 400px; }
.form-group { position: relative; width: 400px; }
.input-line { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--grey); padding: 1rem 0; color: var(--white); font-size: 1.2rem; outline: none; transition: 0.3s; }
.input-line:focus { border-bottom-color: var(--gold); }
.submit-btn { position: absolute; right: 0; bottom: 1rem; background: transparent; border: none; color: var(--gold); text-transform: uppercase; letter-spacing: 0.2em; cursor: pointer; font-size: 0.8rem; }

/* --- SPLIT LAYOUT (Single & Philosophy) --- */
.editorial-container { display: grid; grid-template-columns: 0.8fr 1.2fr; min-height: 100vh; }
.sticky-header {
    background-color: var(--midnight); height: 100vh; position: sticky; top: 0;
    padding: 8rem 4rem; display: flex; flex-direction: column; justify-content: center;
    border-right: 1px solid rgba(255,255,255,0.05);
}
.issue-number {
    font-family: var(--font-head); font-size: 10rem; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); color: rgba(255,255,255,0.02); z-index: 0; pointer-events: none;
}
.headline-wrapper { z-index: 1; position: relative; }
.sticky-header h1 { font-family: var(--font-head); font-size: 4rem; line-height: 1; margin-bottom: 2rem; }
.author-block { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.author-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; filter: grayscale(100%); }
.author-info p { font-size: 0.8rem; line-height: 1.2; }
.author-name { font-weight: bold; color: var(--white); }
.read-time { color: var(--grey); }

.content-stream { padding: 8rem 6rem; border-left: 1px solid rgba(255,255,255,0.05); }
.lead-paragraph { font-size: 1.4rem; color: var(--white); margin-bottom: 3rem; font-family: var(--font-head); }
.body-text { color: #d1d1d1; font-size: 1.1rem; line-height: 1.9; max-width: 650px; }
.body-text p { margin-bottom: 2rem; }

/* Tipografia Editorial (Dentro do Post) */
.body-text h2, .body-text h3 { color: var(--white); font-family: var(--font-head); margin-top: 3rem; margin-bottom: 1.5rem; line-height: 1.2; }
.body-text h2 { font-size: 2.2rem; }
.body-text h3 { font-size: 1.8rem; }
.body-text ul, .body-text ol { margin-bottom: 2rem; padding-left: 2rem; color: #d1d1d1; }
.body-text li { margin-bottom: 0.5rem; }
.body-text blockquote { font-size: 1.5rem; border-left: 2px solid var(--gold); padding-left: 2rem; margin: 3rem 0; color: var(--white); }

/* Editorial Elements (Via Shortcode/CSS) */
.body-text p:first-of-type::first-letter {
    float: left; font-size: 5rem; line-height: 0.8; padding-right: 1rem;
    font-family: var(--font-head); color: var(--gold);
}
.pull-quote {
    font-family: var(--font-head); font-size: 2.5rem; font-style: italic;
    color: var(--white); margin: 4rem -4rem 4rem 0; padding-left: 2rem;
    border-left: 4px solid var(--gold); line-height: 1.2;
}
.inline-image {
    width: 100%; height: 400px; object-fit: cover; margin: 3rem 0;
    filter: grayscale(100%); transition: 0.5s;
}
.inline-image:hover { filter: grayscale(0%); }

/* --- GENERIC PAGES (Center Layout) --- */
.page-header { margin-top: 100px; text-align: center; padding-bottom: 3rem; }
.generic-content { max-width: 800px; margin: 0 auto; color: var(--grey); line-height: 1.8; font-size: 1.1rem; }
.generic-content h2 { color: var(--white); font-family: var(--font-head); margin-top: 2rem; margin-bottom: 1rem; }
.generic-content p { margin-bottom: 1.5rem; }

footer { padding: 4rem; text-align: center; color: var(--grey); font-size: 0.8rem; }
.pagination { margin-top: 4rem; text-align: center; }
.pagination .page-numbers { padding: 0.5rem 1rem; color: var(--grey); }
.pagination .page-numbers.current { color: var(--gold); border-bottom: 1px solid var(--gold); }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    /* Mobile Navigation */
    .mobile-toggle { display: block; }
    .nav-links {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: var(--midnight); z-index: 999;
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        transform: translateY(-100%); transition: transform 0.4s ease-in-out;
    }
    .nav-links.active { transform: translateY(0); }
    .nav-links ul { flex-direction: column; align-items: center; gap: 2rem; }
    .nav-links li { margin-left: 0; }
    .nav-links a { font-size: 1.5rem; }

    /* Layout Adjustments */
    h1 { font-size: 3rem; }
    .hero h1 { font-size: 3rem; }
    .grid-layout, .featured-wrapper, .newsletter-content { grid-template-columns: 1fr; display: flex; flex-direction: column; }
    .container { padding: 0 1.5rem; }
    blockquote { font-size: 2rem; }
    .form-group { width: 100%; margin-top: 2rem; }
    nav { padding: 1.5rem; }

    .editorial-container { grid-template-columns: 1fr; }
    .sticky-header { height: auto; position: relative; padding: 6rem 2rem 2rem 2rem; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .issue-number { display: none; }
    .content-stream { padding: 4rem 2rem; }
    .pull-quote { margin: 3rem 0; font-size: 1.8rem; }
}
