/*
Theme Name: SoulScale Magazine
Theme URI: https://soulscale.com.br/blog
Author: Henrique Barum & LívIA
Description: Custom brutalist editorial theme for SoulScale.
Version: 1.4
Text Domain: soulscale
*/

/* --- 1. THE NUCLEAR PALETTE & RESET --- */
:root {
    --abyss-purple: #2B0057;
    --void-black: #000000;
    --acid-lime: #CFFF04;
    --static-white: #FFFFFF;
    --hacker-gray: #1a1a1a;
    --border-heavy: 3px solid var(--static-white);
    --border-lime: 3px solid var(--acid-lime);
}

* { box-sizing: border-box; margin: 0; padding: 0; cursor: crosshair !important; border-radius: 0px !important; }
::selection { background: var(--acid-lime); color: var(--void-black); }

html, body { 
    background-color: var(--abyss-purple); 
    color: var(--static-white); 
    font-family: 'Space Mono', monospace !important; 
    overflow-x: hidden; 
    width: 100%; 
    line-height: 1.6; 
}

::-webkit-scrollbar { width: 10px; background: var(--void-black); }
::-webkit-scrollbar-thumb { background: var(--acid-lime); }

/* --- TYPOGRAPHY CLASSES --- */
.font-display { font-family: 'Anton', sans-serif !important; text-transform: uppercase; letter-spacing: -1px; line-height: 1; }
.font-mono { font-family: 'Space Mono', monospace !important; }
.font-serif { font-family: 'Space Mono', monospace !important; } /* Killed the Serif */

.lime-text { color: var(--acid-lime); }

/* --- UTILS --- */
.wrapper { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.divider { width: 100%; height: 2px; background: #333; margin: 40px 0; }
.divider-lime { width: 100%; height: 4px; background: var(--acid-lime); margin: 40px 0; }
a { text-decoration: none; color: inherit; }

/* ==========================================================================
   MAGAZINE HEADER NAV (FULL WIDTH FLEXBOX)
   ========================================================================== */
.mag-header { background: var(--void-black); border-bottom: var(--border-lime); position: sticky; top: 0; z-index: 1000; }
.top-bar { border-bottom: 1px dashed #333; display: flex; justify-content: space-between; align-items: center; padding: 5px 20px; font-size: 11px; text-transform: uppercase; }
.system-status span { color: var(--acid-lime); animation: blink 2s infinite; }
.search-box { display: flex; align-items: center; }
.search-box input { background: transparent; border: none; border-bottom: 1px solid #555; color: white; font-family: 'Space Mono', monospace; font-size: 11px; padding: 2px 5px; outline: none; width: 150px; transition: 0.3s; }
.search-box input:focus { border-color: var(--acid-lime); width: 200px; }
.search-box i { color: var(--acid-lime); margin-left: 10px; }

/* THE MAGIC FULL-WIDTH TRICK */
.main-nav { display: flex; justify-content: space-between; align-items: stretch; height: 80px; width: 100%; position: relative; }
.logo-area { display: flex; align-items: center; padding: 0 20px; border-right: var(--border-heavy); background: var(--acid-lime); color: var(--void-black); text-decoration: none; flex-shrink: 0; transition: all 0.3s; }
.logo-area:hover { background: var(--static-white); }
.mag-title { font-size: 40px; margin: 0; }
.mag-subtitle { font-size: 10px; font-weight: bold; letter-spacing: 2px; }

/* DISTRIBUTING LINKS ACROSS REMAINING SPACE */
.nav-links { display: flex; list-style: none; flex-grow: 1; margin: 0; padding: 0; }
.nav-links li { display: flex; border-right: 1px solid #333; }
.nav-links li:not(.home-link-item) { flex-grow: 1; } /* Faz as editorias esticarem */
.nav-links li:last-child { border-right: none; }

.home-link-item a { background: var(--acid-lime); color: var(--void-black); display: flex; justify-content: center; align-items: center; padding: 0 25px; transition: 0.2s; font-size: 20px; width: 100%; }
.home-link-item a:hover { background: var(--static-white); color: var(--void-black); }

/* CENTRALIZANDO TEXTO DENTRO DOS LINKS ESTICADOS */
.nav-links a:not(.home-link-item a) { width: 100%; justify-content: center; text-align: center; color: var(--static-white); text-decoration: none; font-family: 'Space Mono', monospace; font-size: 15px; font-weight: bold; padding: 0 10px; display: flex; align-items: center; transition: 0.2s; white-space: nowrap; }
.nav-links a:hover:not(.home-link-item a), .nav-links a.active:not(.home-link-item a) { background: rgba(207, 255, 4, 0.1); color: var(--acid-lime); }

/* MOBILE MENU TOGGLE ICON (HIDDEN ON DESKTOP) */
.mobile-menu-toggle { display: none; background: transparent; color: var(--acid-lime); border: none; font-size: 28px; padding: 0 25px; cursor: pointer; transition: 0.2s; }
.mobile-menu-toggle:hover { color: var(--static-white); }

/* ==========================================================================
   HERO EDITORIAL (THE COVER STORY)
   ========================================================================== */
.hero-editorial { margin: 40px auto; display: grid; grid-template-columns: 1fr 1.2fr; background: var(--void-black); border: var(--border-heavy); box-shadow: 20px 20px 0px var(--acid-lime); position: relative; }
.hero-image { border-right: var(--border-heavy); position: relative; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; filter: grayscale(100%) contrast(1.2); transition: 0.5s ease-out; }
.hero-editorial:hover .hero-image img { filter: grayscale(0%) contrast(1); transform: scale(1.03); }
.hero-content { padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.hero-meta { display: flex; gap: 15px; margin-bottom: 20px; font-size: 12px; font-weight: bold; }
.tag-primary { background: var(--acid-lime); color: black; padding: 4px 10px; }
.post-date { color: #888; border: 1px dashed #555; padding: 4px 10px; }
.hero-headline { font-size: clamp(40px, 5vw, 70px); margin-bottom: 20px; line-height: 1.05; }
.hero-excerpt { font-size: 18px; color: #ddd; margin-bottom: 40px; line-height: 1.6; border-left: 4px solid var(--acid-lime); padding-left: 20px; font-family: 'Space Mono', monospace; }
.btn-editorial { align-self: flex-start; background: transparent; color: var(--static-white); border: 2px solid var(--static-white); padding: 15px 30px; font-family: 'Anton', sans-serif; font-size: 20px; text-decoration: none; transition: 0.2s; }
.btn-editorial:hover { background: var(--acid-lime); border-color: var(--acid-lime); color: var(--void-black); }

/* ==========================================================================
   MAIN LAYOUT (FEED + SIDEBAR)
   ========================================================================== */
.layout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 60px; margin-bottom: 100px; }

/* THE FEED */
.feed-header { font-size: 40px; border-bottom: 4px solid var(--static-white); padding-bottom: 10px; margin-bottom: 40px; }
.post-list-item { display: grid; grid-template-columns: 280px 1fr; gap: 30px; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px dashed #444; transition: transform 0.2s; }
.post-list-item:hover { transform: translateX(10px); }
.list-img { height: 200px; border: 2px solid #333; overflow: hidden; background: #000; }
.list-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.3s; }
.post-list-item:hover .list-img { border-color: var(--acid-lime); }
.post-list-item:hover .list-img img { filter: grayscale(0%); }
.list-content { display: flex; flex-direction: column; }
.list-meta { font-size: 10px; color: var(--acid-lime); margin-bottom: 10px; text-transform: uppercase; }
.list-title { font-size: 30px; margin-bottom: 15px; text-decoration: none; color: var(--static-white); transition: 0.2s; line-height: 1.1; }
.post-list-item:hover .list-title { color: var(--acid-lime); }
.list-excerpt { font-size: 15px; color: #bbb; flex-grow: 1; font-family: 'Space Mono', monospace; }
.read-link { font-size: 12px; font-weight: bold; color: #fff; text-decoration: none; margin-top: 15px; display: inline-block; text-transform: uppercase; }
.post-list-item:hover .read-link { color: var(--acid-lime); }

/* THE SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 40px; }
.widget { background: var(--void-black); border: 1px solid #444; padding: 30px; position: relative; }
.widget::before { content: ''; position: absolute; top: 0; left: 0; width: 30px; height: 4px; background: var(--acid-lime); }
.widget-title { font-size: 24px; margin-bottom: 20px; color: var(--acid-lime); letter-spacing: 1px; }

.author-widget p { font-size: 14px; margin-bottom: 15px; color: #ccc; font-family: 'Space Mono', monospace; }
.author-widget img { width: 100px; height: 100px; border: 2px solid #fff; float: left; margin: 0 15px 15px 0; filter: grayscale(100%); object-fit: cover; }

.subscribe-widget { border-color: var(--acid-lime); box-shadow: 5px 5px 0px var(--acid-lime); }
.subscribe-widget .widget-title { color: #fff; }
.subscribe-form { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.subscribe-form input { background: transparent; border: 1px solid #555; padding: 12px; color: white; font-family: 'Space Mono', monospace; font-size: 14px; }
.subscribe-form input:focus { border-color: var(--acid-lime); outline: none; }
.subscribe-form button { background: var(--acid-lime); color: black; border: none; padding: 12px; font-family: 'Anton', sans-serif; font-size: 20px; transition: 0.2s; }
.subscribe-form button:hover { background: #fff; }

.trending-list { list-style: decimal inside; font-family: 'Space Mono', monospace; color: var(--acid-lime); font-size: 12px; }
.trending-list li { margin-bottom: 15px; border-bottom: 1px dashed #333; padding-bottom: 10px; cursor: pointer; }
.trending-list span { color: #fff; font-family: 'Space Mono', monospace; font-size: 14px; display: block; margin-top: 5px; transition: 0.2s; font-weight: bold; }
.trending-list li:hover span { color: var(--acid-lime); }

/* ==========================================================================
   MOBILE RESPONSIVENESS (NOW WITH HAMBURGER MAGIC)
   ========================================================================== */

/* Breakpoint for Tablets and below */
@media (max-width: 1024px) {
    /* SHOW THE HAMBURGER */
    .mobile-menu-toggle { display: flex; align-items: center; }
    
    /* CONVERT NAV TO VERTICAL DROPDOWN */
    .nav-links { 
        display: none; /* Escondido por padrão */
        flex-direction: column; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: var(--void-black); 
        border-bottom: 2px solid var(--acid-lime);
        box-shadow: 0 20px 30px rgba(0,0,0,0.8);
        z-index: 999;
    }
    
    /* Quando o botão é clicado, o JS adiciona essa classe */
    .nav-links.active { display: flex; }
    
    .nav-links li { border-right: none; border-bottom: 1px solid #333; width: 100%; }
    .nav-links li:last-child { border-bottom: none; }
    
    .nav-links a:not(.home-link-item a) { justify-content: flex-start; padding: 20px; font-size: 18px; }
    .home-link-item a { justify-content: flex-start; padding: 20px; background: transparent; color: var(--acid-lime); border-left: 4px solid var(--acid-lime); }
    .home-link-item a:hover { background: rgba(207, 255, 4, 0.1); color: var(--acid-lime); }
    
    .logo-area { border-right: none; }
    
    .layout-grid { grid-template-columns: 1fr; }
    .sidebar { margin-top: 20px; }
    .hero-editorial { grid-template-columns: 1fr; }
    .hero-image img { min-height: 300px; border-right: none; border-bottom: var(--border-heavy); }
}

/* Breakpoint for Phones */
@media (max-width: 768px) {
    .hero-editorial { margin: 20px auto; box-shadow: 10px 10px 0px var(--acid-lime); }
    .hero-content { padding: 30px 20px; }
    .hero-headline { font-size: 36px; }
    .hero-excerpt { font-size: 16px; border-left: 2px solid var(--acid-lime); padding-left: 10px; }
    .post-list-item { grid-template-columns: 1fr; gap: 15px; padding-bottom: 30px; }
    .list-img { height: 220px; }
    .list-title { font-size: 26px; }
    .sidebar { display: contents; } 
    .subscribe-widget { order: -1; margin: 40px 0; } 
    .top-bar { display: none; }
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }