/* =========================================
   VARIABILI DEL BRAND E RESET
========================================= */
:root {
    --brand-primary: #FF3366;    /* Rosa/Rosso acceso */
    --brand-secondary: #c9a00a;  /* Oro profondo */
    --bg-color: #F8F9FA;         /* Sfondo chiaro */
    --text-dark: #1A1A1D;        /* Testo scurissimo */
    --text-light: #FFFFFF;       /* Testo bianco */

    /* Colori di stato per la Dashboard */
    --status-green: #10b981;
    --status-gold: #f5c518;
    --status-red: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

body {
    /* Usiamo il testo scuro come sfondo per l'app di voto per mantenere un look da "sala cinema" */
    background-color: var(--text-dark);
    color: var(--text-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================
   TITOLI E TESTI BRANDIZZATI
========================================= */

/* --- 1. Titolo del Login (Verticale) --- */
.brand-title {
    font-weight: 900;
    font-size: 3.5rem;
    line-height: 0.75; /* <-- 1. MODIFICA QUI per la distanza generale delle righe (più basso = più vicine) */
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 5px;
    color: var(--text-light);
}

.brand-title span {
    display: block;
    margin-top: 3px; /* <-- 2. MODIFICA QUI per "tirare su" o "spingere giù" solo la parola AWARDS */
    font-size: 1.8rem;
}

/* --- 2. Titolo della Dashboard (Orizzontale) --- */
.nav-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    text-align: center;
    white-space: nowrap; /* Evita che il testo vada a capo se si stringe lo schermo */
}

.nav-brand span {
    font-size: 1.5rem; /* Manteniamo la grandezza proporzionata */
    margin-left: 2px; /* <-- 3. MODIFICA QUI per avvicinare AWARDS ad ARIETE in orizzontale */
}

/* --- Effetto Sfumatura Condiviso --- */
.brand-title span, .nav-brand span {
    color: #efc110;
    letter-spacing: 2px;
}

.subtitle {
    color: #a1a1aa;
    font-size: 1rem;
    margin-top: 15px;
    margin-bottom: 40px;
    font-weight: 400;
}

/* =========================================
   PAGINA DI LOGIN E RECUPERO
========================================= */
.login-wrapper {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.input-container {
    position: relative;
    margin-bottom: 24px;
    text-align: left;
}

.input-container input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 22px 16px 10px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-container input:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 51, 102, 0.15);
}

.input-container label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a1a1aa;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.2s ease;
}

.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label {
    top: 14px;
    font-size: 0.7rem;
    color: var(--brand-primary);
    font-weight: 600;
}

/* Pulsante in stile Archivio (Arrotondato e sfumato) */
.btn-modern {
    width: 100%;
    background: linear-gradient(45deg, var(--brand-primary), var(--brand-secondary));
    color: var(--text-light);
    border: none;
    padding: 16px;
    border-radius: 50px; /* Arrotondamento stile pillola */
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 51, 102, 0.3);
}

.btn-modern:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 25px rgba(201, 160, 10, 0.4);
}

.links-modern {
    margin-top: 30px;
    font-size: 0.9rem;
}
.links-modern a { color: #a1a1aa; text-decoration: none; transition: color 0.2s; }
.links-modern a:hover { color: var(--brand-primary); }
.dot { margin: 0 10px; opacity: 0.3; }

/* Messaggi di Errore */
.flash-messages { margin-bottom: 20px; }
.flash-error {
    background-color: var(--status-red);
    color: var(--text-light);
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* =========================================
   DASHBOARD GIURATO
========================================= */
.dashboard-body {
    padding-top: 100px;
}

.glass-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: rgba(26, 26, 29, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
}

.nav-brand {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-actions { display: flex; gap: 15px; align-items: center; }

.btn-icon, .btn-logout {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-icon:hover { border-color: var(--text-light); }
.btn-logout:hover {
    background: var(--status-red);
    border-color: var(--status-red);
}

.dashboard-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a1a1aa;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.status-dot { width: 10px; height: 10px; border-radius: 50%; }
.status-dot.green { background-color: var(--status-green); box-shadow: 0 0 10px var(--status-green); }
.status-dot.yellow { background-color: var(--status-gold); box-shadow: 0 0 10px var(--status-gold); }
.status-dot.red { background-color: var(--status-red); box-shadow: 0 0 10px var(--status-red); }

.welcome-section { text-align: center; margin-bottom: 60px; }
.welcome-title { font-size: 2rem; font-weight: 300; margin: 0; line-height: 1.3; }
.welcome-title span { font-weight: 900; font-size: 3rem; color: var(--text-light); }
.text-admin { color: var(--brand-primary); font-weight: 900; }

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    width: 100%;
}

.action-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 35px 30px;
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 6px; height: 100%;
    background: linear-gradient(to bottom, var(--brand-primary), var(--brand-secondary));
    opacity: 0.5;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.2);
}

.action-card:hover::before {
    opacity: 1;
    width: 8px;
}

.card-icon { font-size: 2.8rem; }
.card-text { font-size: 1.2rem; font-weight: 800; letter-spacing: 1px; }

.card-disabled {
    opacity: 0.4; filter: grayscale(100%); cursor: not-allowed;
}
.card-disabled:hover { transform: none; box-shadow: none; }
.card-disabled::before { background: #555; }

/* Colori specifici per le action card della Dashboard */
.card-gold::before { background: linear-gradient(to bottom, #efc110, #c9a00a); }
.card-blue::before { background: linear-gradient(to bottom, #3b82f6, #1d4ed8); }
.card-green::before { background: linear-gradient(to bottom, var(--status-green), #059669); }
.card-pink::before { background: linear-gradient(to bottom, var(--brand-primary), #e6194b); }
.card-orange::before { background: linear-gradient(to bottom, #eb855a, #d16b42); }

/* Responsive Base */
@media (max-width: 768px) {
    .glass-navbar { padding: 0 20px; height: 70px; }
    .welcome-title { font-size: 1.5rem; }
    .welcome-title span { font-size: 2.2rem; }
    .action-grid { grid-template-columns: 1fr; }
    .brand-title { font-size: 2.8rem; }
    .glass-card { padding: 40px 25px; border-radius: 20px; border: none; background: transparent; box-shadow: none; }
}

/* =========================================
   PAGINA CANDIDATURE
========================================= */

/* --- Form di Inserimento --- */
.nomination-form-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
}

/* Stile specifico per il menu a tendina (Select) */
.input-container select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    appearance: none; /* Rimuove la freccia di default brutta dei browser */
    cursor: pointer;
}

.input-container select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(255, 51, 102, 0.15);
}

.input-container select option {
    background-color: var(--text-dark); /* Sfondo scuro per le opzioni a tendina */
    color: white;
}

/* --- Sezione Attori --- */
.actor-section-wrapper {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.actor-section-title {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

.actors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* --- Griglia Colonne Film Salvati --- */
.nominations-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.col-header {
    text-align: center;
    font-weight: 800;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Colori delle tre categorie */
.header-live { background-color: #efc110; color: #1A1A1D; }
.header-anim { background-color: var(--brand-primary); color: white; }
.header-doc  { background-color: #eb855a; color: white; }

/* Singola scheda del film salvato */
.nomination-item {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box; /* Evita che sbordi dalla colonna */
}

.nomination-title {
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--text-light);
    line-height: 1.2;
}

.nomination-director {
    font-size: 0.9rem;
    color: #a1a1aa;
}

/* Bottone Elimina */
.btn-delete {
    width: 100%;
    background: rgba(239, 68, 68, 0.1);
    color: var(--status-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.btn-delete:hover {
    background: var(--status-red);
    color: white;
}

/* Adattamento per i telefoni */
@media (max-width: 768px) {
    .nomination-form-grid, .actors-grid, .nominations-columns {
        grid-template-columns: 1fr; /* Mette tutto su una singola colonna su mobile */
    }
}

/* =========================================
   LISTA FILM DA VOTARE
========================================= */

.movie-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Spinge il bottone in basso */
    height: 180px; /* Altezza fissa per pareggiare le schede */
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
}

.movie-card.live-action:hover { border-color: #efc110; box-shadow: 0 10px 20px rgba(239, 193, 16, 0.2); }
.movie-card.animation:hover { border-color: var(--brand-primary); box-shadow: 0 10px 20px rgba(255, 51, 102, 0.2); }
.movie-card.documentary:hover { border-color: #eb855a; box-shadow: 0 10px 20px rgba(235, 133, 90, 0.2); }

.movie-card-title {
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Taglia i titoli troppo lunghi con i puntini... */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-director {
    font-size: 0.85rem;
    color: #a1a1aa;
    margin-bottom: 15px;
}

.btn-vote {
    width: 100%;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: filter 0.2s;
}

.btn-vote:hover { filter: brightness(1.2); }

.btn-live { background-color: #efc110; color: #1A1A1D; }
.btn-anim { background-color: var(--brand-primary); }
.btn-doc  { background-color: #eb855a; }

.btn-reset-docs {
    background-color: transparent;
    color: var(--status-red);
    border: 1px solid var(--status-red);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-reset-docs:hover {
    background-color: var(--status-red);
    color: white;
}

/* =========================================
   SCHEDA DI VALUTAZIONE (SINGOLO FILM)
========================================= */

.vote-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vote-label {
    font-size: 1rem;
    color: #e2e8f0;
    font-weight: 600;
}

.vote-label span {
    color: #888;
    font-size: 0.8rem;
    font-weight: 400;
    margin-left: 10px;
}

.vote-input {
    width: 80px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    appearance: none;
}

.vote-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.2);
}

/* Rimuove le freccette antiestetiche dai campi numerici nei vari browser */
.vote-input::-webkit-outer-spin-button,
.vote-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.vote-input[type=number] {
    -moz-appearance: textfield;
}

/* --- LOGICA MASCHERATA PUNTI DOCUMENTARIO --- */
.doc-radio {
    display: none; /* Nasconde il pallino standard del radio button */
}

.doc-btn {
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 900;
    border-radius: 12px;
    cursor: pointer;
    background-color: #eb855a;
    color: white;
    transition: all 0.2s;
}

/* Selezionato */
.doc-radio:checked + .doc-btn {
    background-color: #333;
    color: #eb855a;
    border: 4px solid #eb855a;
    line-height: 72px; /* Aggiusta l'altezza per compensare il bordo di 4px */
}

/* Disabilitato (punti già usati in altri film) */
.doc-radio:disabled + .doc-btn {
    background-color: #222;
    color: #555;
    cursor: not-allowed;
    border: none;
}


/* =========================================
   PAGINE AUTH (REGISTRAZIONE & RECUPERO)
========================================= */

/* Le pagine di registro/recupero usano la stessa classe wrapper del login */
.register-success-box {
    background: rgba(0,0,0,0.8);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    border: 1px solid var(--status-gold);
    text-align: center;
}

.recovery-code-display {
    color: var(--status-gold);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    font-family: monospace;
    display: block;
    margin: 15px 0;
}

/* =========================================
   PREMIO MERIDA (CLASSIFICA)
========================================= */

.merida-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.merida-row:hover {
    transform: translateX(10px);
    border-color: var(--status-green);
    box-shadow: -5px 0 15px rgba(16, 185, 129, 0.1);
}

.merida-rank {
    font-size: 2rem;
    font-weight: 900;
    color: var(--status-green);
    width: 40px;
    text-align: center;
}

.merida-inputs {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    flex-grow: 1;
}

/* Adattamento Mobile per Merida */
@media (max-width: 768px) {
    .merida-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 20px;
    }
    .merida-inputs {
        grid-template-columns: 1fr;
        width: 100%;
    }
    .merida-rank {
        width: 100%;
        text-align: left;
        border-bottom: 1px dashed rgba(255,255,255,0.1);
        padding-bottom: 10px;
    }
}

/* =========================================
   PAGINE REGISTRAZIONE E RECUPERO
========================================= */

/* Box speciale per mostrare la chiave di recupero */
.success-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 16px;
    margin: 30px 0;
    border: 1px solid var(--status-gold);
    text-align: center;
}

.recovery-code-label {
    display: block;
    color: #a1a1aa;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.recovery-code-box {
    display: inline-block;
    background: rgba(0, 0, 0, 0.4);
    color: var(--status-gold);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 3px;
    font-family: 'Poppins', monospace;
    padding: 15px 25px;
    border-radius: 8px;
    margin: 10px 0;
    border: 1px dashed var(--status-gold);
}

.btn-copy {
    background: #333;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.btn-copy:hover {
    background: #444;
}

/* Messaggi di successo (usati in register_success) */
.success-msg {
    color: var(--status-green);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* =========================================
   MOBILE OPTIMIZATION (Schermi Stretti)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Riduzione globale delle dimensioni */
    html { font-size: 14px; } /* Tutto diventa leggermente più piccolo */

    /* 2. Barra di navigazione "non buggata" */
    .glass-navbar {
        padding: 0 15px !important;
        height: 60px !important; /* Barra più sottile */
    }

    .nav-brand {
        font-size: 1.1rem !important; /* Titolo più piccolo per non sovrapporsi */
    }

    .nav-brand span {
        font-size: 1.1rem !important;
    }

    /* Rende i tasti logout/genere più compatti */
    .btn-icon, .btn-logout {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    /* 3. Dashboard più compatta */
    .dashboard-body {
        padding-top: 80px; /* Spazio ridotto per la navbar */
    }

    .glass-card {
        padding: 25px 20px !important; /* Meno padding interno */
    }

    .action-grid {
        gap: 15px !important;
    }

    .action-card {
        padding: 20px !important;
        gap: 15px !important;
    }

    .card-icon { font-size: 1.8rem; }
    .card-text { font-size: 1rem; }

    /* 4. Candidature e Liste Film */
    .nomination-form-grid {
        grid-template-columns: 1fr !important; /* Tutto su una colonna */
        gap: 10px;
    }

    .movie-card {
        height: auto; /* Lascia che la card si adatti al contenuto */
        padding: 15px;
    }

    .vote-row {
        padding: 10px 0;
    }

    /* 5. Riduzione font titoli globali su mobile */
    .brand-title { font-size: 2.2rem !important; }
    .brand-title span { font-size: 1.2rem !important; }
}

@media (max-width: 768px) {
    /* 1. Reset del posizionamento assoluto per la Navbar */
    .glass-navbar {
        display: flex;
        justify-content: space-between !important; /* Spinge i contenuti agli estremi */
        align-items: center;
        padding: 0 15px !important;
    }

    .nav-brand {
        position: static !important; /* Rimuove l'absolute, torna nel flusso flex */
        transform: none !important;
        font-size: 1rem !important;
        margin: 0;
        text-align: left; /* Allineato a sinistra */
    }

    /* 2. Riduce i tasti per farli stare tutti nella riga */
    .nav-actions {
        display: flex;
        gap: 8px !important; /* Ridotto il gap */
    }

    .btn-icon, .btn-logout {
        padding: 6px 10px !important;
        font-size: 0.7rem !important; /* Font leggermente più piccolo per evitare a capo */
        white-space: nowrap; /* Impedisce al testo del bottone di andare a capo */
    }
}

.voting-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.ranking-item {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.ranking-item label {
    font-weight: bold;
    margin-bottom: 5px;
}

.doc-selector {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn-save {
    margin-top: 20px;
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-save:hover {
    background-color: #218838;
}

/* --- GRIGLIA FILM: LISTA VOTAZIONI --- */
.nominations-columns {
    display: grid;
    grid-template-columns: 1fr; /* Su telefono: Live Action e Animazione in colonna singola */
    gap: 40px;
}

.movies-inner-grid {
    display: grid;
    grid-template-columns: 1fr; /* Su telefono: 1 film per riga */
    gap: 15px;
}

/* Solo su schermi grandi (PC e Tablet in orizzontale) */
@media (min-width: 992px) {
    .nominations-columns {
        grid-template-columns: 1fr 1fr; /* PC: 2 mega colonne (Live Action | Animazione) */
    }
    .movies-inner-grid {
        grid-template-columns: 1fr 1fr; /* PC: 2 film per riga dentro ogni colonna */
    }
}

/* =========================================
   CLASSIFICA DOCUMENTARI (Stile Merida Premium)
========================================= */

.doc-page-container {
    max-width: 900px !important;
    margin: 0 auto;
    padding: 20px;
}

.doc-header-title {
    text-align: center;
    font-weight: 900;
    font-size: 2.2rem;
    color: #eb855a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 0 15px rgba(235, 133, 90, 0.3);
}

.doc-row-wide {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px 35px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    transition: all 0.3s ease;
}

.doc-row-wide:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(235, 133, 90, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.doc-rank-big {
    font-size: 2.5rem;
    font-weight: 900;
    color: #eb855a;
    width: 60px;
    flex-shrink: 0;
    text-shadow: 0 2px 10px rgba(235, 133, 90, 0.2);
}

.doc-inputs-flex {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.doc-select-wrapper {
    flex-grow: 1;
    width: 100%;
}

.doc-select-wrapper select {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
}

.doc-select-wrapper select:focus {
    outline: none;
    border-color: #eb855a;
    box-shadow: 0 0 0 4px rgba(235, 133, 90, 0.15);
    background: rgba(0, 0, 0, 0.6);
}

.doc-select-wrapper select option {
    background-color: #1A1A1D;
    color: white;
}

.doc-badge-pill {
    background: rgba(235, 133, 90, 0.1);
    color: #eb855a;
    border: 1px solid rgba(235, 133, 90, 0.3);
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- Bottoni Finali (Salva e Azzera) --- */
.btn-mega-save {
    display: inline-block;
    background: linear-gradient(45deg, #eb855a, #d16b42);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(235, 133, 90, 0.3);
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}

.btn-mega-save:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(235, 133, 90, 0.5);
}

.btn-mega-reset {
    display: inline-block;
    background: transparent;
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.4);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    margin-top: 15px;
}

.btn-mega-reset:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    transform: translateY(-2px);
}

/* Adattamento Mobile */
@media (max-width: 768px) {
    .doc-row-wide {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px;
    }
    .doc-inputs-flex {
        flex-direction: column;
        align-items: stretch;
    }
    .doc-badge-pill {
        text-align: center;
    }
    .doc-rank-big {
        border-bottom: 1px dashed rgba(255,255,255,0.1);
        width: 100%;
        padding-bottom: 10px;
    }
}


@keyframes pulsa {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 255, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 0, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 255, 0); }
}
.btn-neon-faq {
    background-color: #FF00FF; /* Magenta Sgargiante */
    color: white;
    border: none;
    padding: 15px 30px;
    font-weight: bold;
    text-transform: uppercase;
    animation: pulsa 2s infinite;
    border-radius: 50px;
}
.btn-neon-faq:hover {
    background-color: #cc00cc;
    color: white;
}

/* =========================================
   STILI PAGINA FAQ (Dark/Glass Theme)
========================================= */

.faq-page-container {
    max-width: 800px;
    margin: 100px auto 40px; /* Spazio per la navbar fissa */
    padding: 40px;
    background: rgba(26, 26, 29, 0.95); /* Stesso colore navbar */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    color: var(--text-light);
}

.faq-title {
    color: var(--text-light);
    font-weight: 900;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--brand-primary);
    padding-bottom: 10px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* Accordion in stile Dark */
.accordion-item {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-bottom: 10px;
    border-radius: 12px !important;
    overflow: hidden;
}

.accordion-button {
    background-color: transparent !important;
    color: var(--text-light) !important;
    font-weight: 600;
    padding: 20px !important;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(255, 51, 102, 0.15) !important; /* Brand primary tenue */
    color: var(--brand-primary) !important;
    box-shadow: none !important;
}

.accordion-button::after {
    filter: invert(1); /* Rende la freccetta bianca invece che nera */
}

.accordion-body {
    background-color: rgba(0, 0, 0, 0.2);
    color: #a1a1aa;
    line-height: 1.6;
    padding: 20px !important;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Bottone Torna Indietro stile navbar */
.btn-back-dashboard {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-block;
    margin-bottom: 30px;
}

.btn-back-dashboard:hover {
    border-color: var(--text-light);
    color: var(--text-light);
    background: rgba(255,255,255,0.1);
}

/* --- Stile Search Bar --- */
.faq-search-wrapper {
    margin-bottom: 30px;
    position: relative;
}

#faqSearch {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 15px 25px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#faqSearch:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.2);
}

/* Stile speciale per la card del gioco RPG */
.card-rpg-neon {
    background: linear-gradient(45deg, #ff007f, #ffaa00, #ff007f);
    background-size: 200% auto;
    color: white !important;
    border: 2px solid #fff;
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.7);
    animation: gradient-pulse 3s linear infinite;
}

.card-rpg-neon:hover {
    box-shadow: 0 0 25px rgba(255, 170, 0, 1);
    transform: scale(1.05); /* Aumenta leggermente l'effetto hover base */
}

.card-rpg-neon .card-text {
    font-family: 'Press Start 2P', cursive; /* Tocco retro sul testo */
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* Rende il testo più leggibile sul gradiente */
}

@keyframes gradient-pulse {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}