/* ============================================
   STYLE.CSS - VOX P2P (Estilos Comuns)
   ============================================ */

/* VARIÁVEIS DE CORES - ATUALIZADAS PARA LOGO */
:root {
    --primary: #0a0a0f;          /* Preto azulado mais escuro */
    --secondary: #111827;        /* Cinza azulado escuro */
    --accent: #00f2ff;           /* AZUL ELÉTRICO DA LOGO */
    --text: #f8fafc;             /* Branco mais suave */
    --highlight: #94a3b8;        /* Cinza azulado claro */
    --warning: #f59e0b;          /* Amarelo/laranja */
    --success: #10b981;          /* Verde */
    --danger: #ef4444;           /* Vermelho */
}

/* RESET E BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--primary) url('https://wispy-night-752e.voxfilms.workers.dev/1:/site%20playdown/fundo.jpg') repeat;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

/* CONTAINERS */
.container {
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* HEADER E NAVEGAÇÃO */
.header {
    background: var(--secondary);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-weight: 700;
    font-size: 22px;
    color: var(--text);
}

.logo span {
    color: var(--accent);
}

/* MENU DE NAVEGAÇÃO - SEMPRE VISÍVEL */
nav {
    flex: 1;
    min-width: 200px;
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

nav a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a:hover {
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent);
}

/* ÍCONES DOS MENUS (Desktop) */
nav a::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ÍCONE DE HOME (CASA) - CORRETO */
nav a[href*="index"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2300f2ff"><path d="M12 3L2 12h3v8h6v-6h2v6h5v-8h3L12 3z"/></svg>');
}

/* ÍCONE DE FILMES - JÁ CORRETO (mas você tem 2 vezes) */
nav a[href*="filmes"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2300f2ff"><path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/></svg>');
}

/* ÍCONE DE SÉRIES - JÁ CORRETO */
nav a[href*="series"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2300f2ff"><path d="M21 6h-7.59l3.29-3.29L16 2l-4 4-4-4-.71.71L10.59 6H3c-1.1 0-2 .89-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.11-.9-2-2-2zm0 14H3V8h18v12zM9 10v8l7-4z"/></svg>');
}

/* BUSCA */
.search {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search input {
    padding: 10px 16px;
    border-radius: 25px;
    border: none;
    background: rgba(0, 242, 255, 0.05);
    color: var(--text);
    width: 250px;
    font-size: 14px;
    border: 1px solid rgba(0, 242, 255, 0.3);
}

.search input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* BOTÕES */
.btn {
    background: var(--accent);
    color: #000;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    background: #00d4e0;
    transform: translateY(-2px);
}

.back-btn {
    background: #2d3748;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #4a5568;
    text-decoration: none;
}

/* HERO/BANNER */
.hero {
    height: 220px;
    border-radius: 10px;
    margin: 20px 0;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* CARDS (ESTILO COMUM PARA TODOS) */
.card {
    background: var(--secondary);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 242, 255, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.1);
    border-color: var(--accent);
}

.card-img-container {
    width: 100%;
    padding-top: 150%;
    position: relative;
    background: var(--primary);
    overflow: hidden;
}

.card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.3s;
}

.card:hover img {
    transform: scale(1.05);
}

.card .info {
    padding: 15px;
    border-top: 1px solid rgba(0, 242, 255, 0.1);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card .info strong {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* GRID RESPONSIVO */
.grid {
    display: grid;
    gap: 16px;
    width: 100%;
}

/* Mobile: 2 colunas */
.grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Tablet pequeno: 3 colunas */
@media (min-width: 481px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

/* Tablet grande: 4 colunas */
@media (min-width: 641px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

/* Desktop pequeno: 5 colunas */
@media (min-width: 769px) {
    .grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Desktop médio: 6 colunas */
@media (min-width: 1025px) {
    .grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 18px;
    }
}

/* Desktop grande: 8 colunas (perfeito para 48 itens) */
@media (min-width: 1281px) {
    .grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 20px;
    }
}

/* 4K/TV: 10 colunas */
@media (min-width: 1921px) {
    .grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 22px;
    }
}

/* SEÇÕES E TÍTULOS */
.section-title {
    font-size: 22px;
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 242, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* BADGES */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.badge.featured {
    background: var(--warning);
    color: #000;
}

.badge.recent {
    background: var(--success);
    color: white;
}

/* PAGINAÇÃO */
.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 15px;
    border-radius: 6px;
    border: 0;
    background: var(--accent);
    color: #000;
    cursor: pointer;
    min-width: 45px;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    background: #00d4e0;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    background: #2d3748;
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-current {
    background: var(--warning);
    color: #000;
    font-weight: bold;
}

.pagination-info {
    text-align: center;
    margin: 15px 0;
    color: var(--accent);
    font-size: 14px;
}

/* LOADING E ESTADOS */
.loading {
    padding: 40px;
    text-align: center;
    background: rgba(0, 242, 255, 0.05);
    border-radius: 10px;
    grid-column: 1 / -1;
    color: var(--accent);
}

.error-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    grid-column: 1 / -1;
}

.error-box p {
    margin-bottom: 15px;
    color: var(--text);
}

/* FOOTER */
.footer {
    padding: 30px 0;
    text-align: center;
    background: var(--secondary);
    margin-top: 50px;
    border-top: 1px solid rgba(0, 242, 255, 0.2);
    color: var(--accent);
    font-size: 14px;
}

/* META INFO */
.meta {
    background: rgba(0, 242, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
    color: var(--accent);
}

/* OVERVIEW BOX */
.overview-box {
    background: rgba(0, 242, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--accent);
    line-height: 1.7;
}

.overview-box h3 {
    margin-top: 0;
    color: var(--text);
    margin-bottom: 10px;
}

/* BOTÃO ASSISTIR */
.watch-btn {
    display: inline-block;
    background: var(--accent);
    color: #000;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s;
    font-size: 16px;
}

.watch-btn:hover {
    background: #00d4e0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.4);
    text-decoration: none;
}

/* LAYOUT FLEX */
.flex {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

/* ====================
   RESPONSIVIDADE MOBILE
   ==================== */

@media (max-width: 768px) {
    .header .inner {
        display: grid;
        grid-template-areas:
            "logo"
            "nav"
            "search";
        gap: 15px;
        align-items: center;
    }
    
    .logo {
        grid-area: logo;
        text-align: center;
        font-size: 20px;
    }
    
    nav {
        grid-area: nav;
        width: 100%;
    }
    
    nav ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        justify-content: stretch;
    }
    
    nav a {
        flex-direction: column;
        padding: 12px 5px;
        font-size: 12px;
        text-align: center;
        gap: 5px;
        border-radius: 8px;
        background: rgba(0, 242, 255, 0.05);
    }
    
    /* ÍCONES MAIORES NO MOBILE */
    nav a::before {
        width: 24px;
        height: 24px;
        margin: 0 auto;
    }
    
    .search {
        grid-area: search;
        width: 100%;
    }
    
    .search input {
        width: 100%;
    }
    
    .flex {
        flex-direction: column;
        gap: 20px;
    }
}

/* Telas muito pequenas (iPhone SE etc) */
@media (max-width: 375px) {
    .container {
        width: 95%;
        padding: 15px;
    }
    
    nav a {
        padding: 10px 3px;
        font-size: 11px;
    }
    
    nav a::before {
        width: 20px;
        height: 20px;
    }
    
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .card .info {
        padding: 10px;
    }
    
    .card .info strong {
        font-size: 14px;
    }
}

/* UTILITÁRIOS */
.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }