/* =========================================
   FONTES E CORES RETRÔ
========================================= */

:root {
    --background-dark: #0c142c;
    --container-bg: #f0eada;
    --text-main: #102c54;

    --retro-orange: #e67e22;
    --retro-orange-light: #f39c12;

    --retro-red: #e74c3c;
    --retro-blue: #1abc9c;
    --retro-green: #2ecc71;
    --retro-psblue: #0004ff;

    --border-color: #3e2723;

    --nintendo-bg: #fdecea;
    --xbox-bg: #e8f8f0;

    --font-pixel: 'VT323', monospace;
    --font-title: 'Press Start 2P', cursive;
}

/* =========================================
   RESET E CONFIGURAÇÕES GERAIS
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('pointer.png'), auto;
}

a, button, .game-tag, .console-thumb {
    cursor: url('pointer.png'), pointer !important;
}

a *, button *, .game-tag *, .console-thumb * {
    cursor: url('pointer.png'), pointer !important;
}

body {
    font-family: var(--font-pixel);
    background-color: var(--background-dark);
    color: var(--text-main);

    display: flex;
    justify-content: center;
    align-items: flex-start;

    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;

    image-rendering: pixelated;
    transition: 0.4s ease;
}

/* =========================================
   TIPOGRAFIA ESPECÍFICA
========================================= */

h1, h2, h3, h4, h5, h6, .game-tag {
    font-family: var(--font-title);
    line-height: 1.4;
}

p, li, .news-item, .article-content, .news-meta {
    font-family: var(--font-pixel);
}

.news-item a {
    font-family: var(--font-title);
    font-size: 0.6rem;
    text-transform: uppercase;
}

/* =========================================
   CRT EFFECT
========================================= */

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(0,0,0,0.10) 50%,
        rgba(255,255,255,0) 100%
    );

    background-size: 100% 4px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 10;
}

/* =========================================
   CONTAINER PRINCIPAL (TELA CHEIA)
========================================= */

.main-container {
    width: 100vw;
    min-height: 100vh;

    background-color: var(--container-bg);
    border: none;

    box-shadow: inset 0 0 50px rgba(0,0,0,0.15);

    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* =========================================
   HEADER
========================================= */

.retro-header {
    background-color: var(--retro-orange);
    border-bottom: 6px solid var(--border-color);
    padding: 1.5rem 1rem;
    text-align: center;
}

.pixel-title {
    font-size: 2.2rem;
    color: white;
    text-shadow: 4px 4px 0 var(--border-color);
}

.retro-nav ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.retro-nav a {
    font-family: var(--font-title);
    font-size: 0.7rem;
    text-decoration: none;
    color: white;
    padding: 8px 12px;
    border: 3px solid transparent;
    display: inline-block;
}

.retro-nav a:hover,
.retro-nav a.active {
    background-color: var(--retro-blue);
    border-color: var(--border-color);
}

/* =========================================
   LAYOUT DINÂMICO E RESPONSIVO
========================================= */

.content-area {
    display: flex;
    flex: 1;
    gap: 2rem;
    padding: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.news-feed { 
    flex: 2.5; 
    min-width: 0;
}

.sidebar { 
    flex: 1; 
    min-width: 280px;
}

@media (max-width: 768px) {
    .content-area {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .sidebar {
        min-width: 100%;
    }
}

/* =========================================
   BOXES
========================================= */

.retro-box {
    background-color: white;
    border: 4px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.orange-border { border-color: var(--retro-orange-light); }
.blue-border { border-color: var(--retro-blue); }

.box-header {
    font-family: var(--font-title);
    background-color: var(--border-color);
    color: white;
    padding: 1rem;
    font-size: 0.8rem;
    text-align: center;
}

/* =========================================
   NEWS ITEMS
========================================= */

.news-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border-bottom: 2px solid #eee;
}

.news-item p {
    font-size: 1.6rem;
    line-height: 1.3;
}

.news-item a {
    color: var(--retro-orange);
    font-weight: bold;
    white-space: nowrap;
}

/* ICONS */
.pixel-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border: 3px solid var(--border-color);
}

.joystick { background-color: var(--retro-red); } 
.ship { background-color: var(--retro-green); }   
.ps-icon { background-color: var(--retro-psblue); } 

/* =========================================
   NINTENDO / XBOX / ACERVO CARDS
========================================= */

.nintendo-bg { background-color: var(--nintendo-bg); }
.xbox-bg { background-color: var(--xbox-bg); }
.nintendo-border { border-color: var(--retro-red); }
.xbox-border { border-color: var(--retro-green); }

.console-thumb {
    min-width: 80px;
    height: 60px;
    background: #222;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 0.5rem;
    text-align: center;
    border: 2px solid var(--border-color);
}

.game-tag {
    display: inline-block;
    background: var(--border-color);
    color: white;
    padding: 8px 12px;
    margin: 5px;
    font-family: var(--font-title);
    font-size: 0.7rem;
    border: 2px solid transparent;
    transition: 0.2s;
}

.game-tag:hover {
    background: var(--retro-orange);
    transform: scale(1.05);
}

/* =========================================
   SIDEBAR
========================================= */

.pixel-list {
    list-style: none;
    padding: 1rem;
}

.pixel-list li {
    font-size: 1.4rem;
    padding: 0.6rem 0;
    border-bottom: 1px dashed #ccc;
    transition: 0.2s;
}

.pixel-list li:hover {
    transform: translateX(6px);
    color: var(--retro-orange);
}

/* =========================================
   FOOTER
========================================= */

.retro-footer {
    background-color: var(--border-color);
    color: white;
    text-align: center;
    padding: 1.2rem;
    margin-top: auto;
}

.retro-footer p {
    font-family: var(--font-title);
    font-size: 0.6rem;
}

/* =========================================
   PÁGINA DE NOTÍCIA E ARTIGOS
========================================= */

.news-meta {
    padding: 1rem;
    background: linear-gradient(90deg, #ddd, #f5f5f5);
    font-size: 1.2rem;
    border-bottom: 3px solid var(--border-color);
}

.fake-image {
    height: 320px;
    max-height: 40vh;
    background: repeating-linear-gradient(
        45deg,
        #222,
        #222 10px,
        #333 10px,
        #333 20px
    );
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: var(--font-title);
    font-size: 0.8rem;
    position: relative;
    border-bottom: 5px solid var(--border-color);
}

.fake-image::after {
    content: "EXCLUSIVO";
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--retro-red);
    color: white;
    padding: 6px;
    font-size: 0.6rem;
    border: 3px solid var(--border-color);
}

.article-content {
    padding: 2rem;
    background: #fffdf6;
}

.article-content p {
    font-size: 1.7rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    border-left: 4px solid var(--retro-orange);
    padding-left: 1rem;
}

.article-content p::first-letter {
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--retro-orange);
}

.article-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 2rem 2rem;
}

.article-buttons a {
    font-family: var(--font-title);
    text-decoration: none;
    background: var(--retro-orange);
    color: white;
    padding: 1rem;
    border: 3px solid var(--border-color);
    font-size: 0.6rem;
    transition: 0.2s;
}

.article-buttons a:hover {
    background: var(--retro-blue);
    transform: scale(1.05);
}

/* =========================================
   MURAL DE DEPOIMENTOS
========================================= */

.comment-section {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background-color: #fff;
    border-top: 4px solid var(--border-color);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.comment-input {
    font-family: var(--font-pixel);
    font-size: 1.4rem;
    padding: 0.6rem;
    border: 3px solid var(--border-color);
    background-color: #fffdf6;
    color: var(--text-main);
    outline: none;
    width: 100%;
}

.btn-submit-comment {
    font-family: var(--font-title);
    font-size: 0.6rem;
    background-color: var(--retro-green);
    color: white;
    padding: 0.8rem;
    border: 3px solid var(--border-color);
    align-self: flex-start;
    transition: 0.2s;
}

.btn-submit-comment:hover {
    background-color: var(--retro-blue);
    transform: scale(1.05);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.single-comment {
    padding: 0.8rem;
    border: 2px dashed var(--border-color);
    background-color: #faf8f0;
}

.comment-author {
    font-family: var(--font-title);
    font-size: 0.6rem;
    color: var(--retro-orange);
    margin-bottom: 0.4rem;
}

.comment-text {
    font-family: var(--font-pixel);
    font-size: 1.5rem;
    line-height: 1.3;
}

/* =========================================
   TEMAS DINÂMICOS
========================================= */

body.theme-nintendo {
    --background-dark: #2a0808; --container-bg: #fff0f0; 
    --retro-orange: #ff0000; --retro-orange-light: #ff4d4d;
    --retro-blue: #cc0000; --border-color: #5c0000; 
}

body.theme-xbox {
    --background-dark: #091a0f; --container-bg: #f0fff4; 
    --retro-orange: #107c10; --retro-orange-light: #1db954;
    --retro-blue: #0b530b; --border-color: #052e05; 
}

body.theme-ps {
    --background-dark: #00081a; --container-bg: #eef2fa;    
    --retro-orange: #003791; --retro-orange-light: #0055cc;
    --retro-blue: #001a4d; --border-color: #001133;    
}

body.theme-review {
    --background-dark: #1a0b2e; --container-bg: #f4e8ff;
    --retro-orange: #9b59b6; --retro-orange-light: #8e44ad;
    --border-color: #4a235a; --retro-blue: #6c3483;
}

body.theme-guia {
    --background-dark: #2e2b0b; --container-bg: #fffae8;
    --retro-orange: #d4ac0d; --retro-orange-light: #f1c40f;
    --border-color: #7d6608; --retro-blue: #b7950b;
}

body.theme-colecao {
    --background-dark: #0b1d2e; --container-bg: #e8f4ff;
    --retro-orange: #2980b9; --retro-orange-light: #3498db;
    --border-color: #154360; --retro-blue: #1f618d;
}

body.theme-ice {
    --background-dark: #001f3f; --container-bg: #e6ffff;
    --retro-orange: #00c3ff; --retro-orange-light: #66d9ff;
    --border-color: #005c99; --retro-blue: #0088cc;
}

body.theme-virtualboy {
    --background-dark: #000000; --container-bg: #1a0000;
    --retro-orange: #ff0000; --retro-orange-light: #ff3333;
    --border-color: #800000; --retro-blue: #cc0000;
}

body.theme-gameboy {
    --background-dark: #0f380f; --container-bg: #9bbc0f;
    --retro-orange: #306230; --retro-orange-light: #8bac0f;
    --border-color: #0f380f; --retro-blue: #306230;
}

body.theme-pink {
    --background-dark: #3a0022; --container-bg: #ffe6f2;
    --retro-orange: #ff3399; --retro-orange-light: #ff66b3;
    --border-color: #99004d; --retro-blue: #cc0066;
}
