/*
    global.css
    Definizioni di font e variabili CSS comuni a tutte le versioni (desktop e mobile).
*/

/* Importa i fonts locali */
@font-face {
    font-family: 'Act Of Rejection';
    src: url('/fonts/Act_Of_Rejection.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Sigmar';
    src: url('/fonts/Sigmar-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BlockCraftMedium-PVLzd';
    src: url('/fonts/BlockCraftMedium-PVLzd.otf') format('opentype');
    /* MODIFICATO: Estensione del file da .ttf a .otf e formato da truetype a opentype */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Press Start 2P';
    src: url('/fonts/PressStart2P-Regular.ttf') format('truetype');
    /* AGGIUNTO: Definizione locale per 'Press Start 2P' */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Rajdhani Regular';
    src: url('/fonts/Rajdhani-Regular.ttf') format('truetype');
    /* AGGIUNTO: Definizione locale per 'Rajdhani Regular' */
    font-weight: normal;
    font-style: normal;
}


/* Definizione di variabili CSS */
:root {
    --cyan: #00ffff;
    --color-primary: #2c5aa2;
    --color-secondary: #1a192e;
    --color-tertiary: #2d2c41;
    --color-quaternary: #3f3e54;
    --color-quinary: #525167;
    --color-text: #cccccc;
    --color-accent: #00BFFF;

    /* Colori menu hamburger */
    --hamburger-bg: #fcbd4b;
    --hamburger-border: #e21c06;
    --hamburger-text: #ffffff;

    /* Colori link menu */
    --menu-link-color: #feca07;
    --menu-link-hover: #234488;
    --menu-background-color: transparent;

    /* Variabili per il pulsante skeuomorfo */
    --button-skeuo-light: #e74c3c;
    --button-skeuo-medium: #c0392b;
    --button-skeuo-dark: #922b21;
    --button-skeuo-active-medium: #a93226;
    --button-skeuo-active-dark: #7b241c;

    /* Ho aggiunto questi colori neon, come nella tua index_mobile.html */
    --color-neon-blue: #00ffff;
    --color-neon-green: #00ff00;
    --color-neon-pink: #ff00ff;

    --separator-color1: #0000ff;
    /* Puoi impostarle come i neon o personalizzarle */
    --separator-color2: #00ff00;
    --separator-color3: #ff0000;

}

/* Aggiunte */

/* =============================
   AOL Modal — Robust + Neon UI
   ============================= */

/* Reset di sicurezza: la modale vince su tutto */
.aol-modal[hidden] {
    display: none !important;
}

.aol-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2147483640;
    /* molto alto */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Evita stacking strani ereditati */
    transform: none !important;
    filter: none !important;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    /* -moz-osx-font-smoothing: grayscale; - Proprietà deprecata, rimossa */
}

.aol-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(2px);
    pointer-events: all;
    /* cattura i click: blocca la pagina dietro */
}

.aol-dialog {
    position: relative;
    z-index: 2147483641;
    /* sopra al backdrop */
    width: min(92vw, 520px);
    max-height: calc(100vh - 12vh);
    overflow: auto;

    background: radial-gradient(120% 120% at 0% 0%, #171717 0%, #0e0e0e 60%, #0a0a0a 100%);
    color: #e8f0ff;
    border-radius: 18px;
    padding: 26px 22px 28px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, .65),
        0 0 0 1px rgba(255, 255, 255, .06),
        0 0 25px rgba(46, 160, 255, .08);
    outline: none;
}

.aol-dialog:focus {
    outline: none;
}

#aol-login-title {
    margin: 0 0 8px;
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 800;
    letter-spacing: .2px;
    text-shadow: 0 0 6px rgba(79, 209, 255, .35);
}

.aol-sub {
    color: #b8c8ff;
    margin: 6px 0 18px;
    font-size: 15px;
}

.aol-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin: 12px 0 8px;
    flex-wrap: wrap;
}

/* Bottoni — Neon + Glitch leggero */
.aol-btn {
    position: relative;
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .3px;
    transition: transform .15s ease, filter .15s ease, box-shadow .2s ease;
    user-select: none;
    will-change: transform, box-shadow;
    outline: none;
}

.aol-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(79, 209, 255, .35), 0 0 0 6px rgba(79, 209, 255, .18);
}

/* Primario: blu ciano neon */
.aol-btn-primary {
    color: #06121c;
    background: linear-gradient(135deg, #46eaff 0%, #4da3ff 45%, #7a6bff 100%);
    box-shadow:
        0 6px 18px rgba(77, 163, 255, .45),
        0 0 18px rgba(70, 234, 255, .35),
        inset 0 0 10px rgba(255, 255, 255, .18);
}

/* Outline: magenta neon */
.aol-btn-outline {
    color: #f5e8ff;
    background: transparent;
    border: 2px solid #ff47c0;
    box-shadow:
        0 6px 18px rgba(255, 71, 192, .35),
        0 0 14px rgba(255, 71, 192, .25),
        inset 0 0 8px rgba(255, 71, 192, .2);
}

/* Effetto glow + micro-glitch on hover */
.aol-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.aol-btn-primary:hover {
    box-shadow:
        0 10px 24px rgba(77, 163, 255, .55),
        0 0 22px rgba(70, 234, 255, .45),
        inset 0 0 12px rgba(255, 255, 255, .22);
}

.aol-btn-outline:hover {
    box-shadow:
        0 10px 24px rgba(255, 71, 192, .5),
        0 0 22px rgba(255, 71, 192, .45),
        inset 0 0 10px rgba(255, 71, 192, .28);
}

/* Glitch: barra rapida (al passaggio) */
.aol-btn::before,
.aol-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
}

.aol-btn-primary::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
}

.aol-btn-outline::before {
    background: linear-gradient(90deg, transparent, rgba(255, 71, 192, .65), transparent);
}

.aol-btn:hover::before {
    opacity: 1;
    animation: aol-scan 800ms ease;
}

@keyframes aol-scan {
    0% {
        transform: translateX(-120%) skewX(-10deg);
        opacity: 0;
    }

    35% {
        opacity: .9;
    }

    100% {
        transform: translateX(120%) skewX(-10deg);
        opacity: 0;
    }
}

/* Neon pulse molto leggero */
.aol-btn-primary::after {
    box-shadow: 0 0 18px 6px rgba(77, 163, 255, .22);
}

.aol-btn-outline::after {
    box-shadow: 0 0 18px 6px rgba(255, 71, 192, .22);
}

/* Testo legale */
.aol-terms {
    color: #98a4c7;
    font-size: 12px;
    margin-top: 14px;
    text-align: center;
}

.aol-terms a {
    color: #7fd0ff;
    text-decoration: underline;
}

/* Focus */
.aol-dialog *:focus {
    outline: 2px solid #4da3ff;
    outline-offset: 2px;
}

/* Riduci animazioni per accessibilità */
@media (prefers-reduced-motion: reduce) {

    .aol-btn,
    .aol-btn::before,
    .aol-btn::after {
        transition: none !important;
        animation: none !important;
    }
}

/* === AOL Modal – Overrides: centratura + spacing + bottoni uguali e più allegri === */

/* Centra tutto il contenuto della dialog */
.aol-dialog {
    text-align: center;
    padding: 30px 24px 30px;
    /* un filo più ariosa */
}

/* Titolo centrato e un po' più distanziato dai bottoni */
#aol-login-title {
    text-align: center;
    margin: 0 0 12px;
    font-size: clamp(22px, 3vw, 28px);
}

/* Sottotitolo con più respiro verso i bottoni */
.aol-sub {
    margin: 8px 0 24px;
    font-size: 16px;
}

/* Contenitore bottoni: centrato, responsive, gap leggermente maggiore */
.aol-actions {
    justify-content: center;
    align-items: stretch;
    gap: 14px;
    margin: 16px 0 10px;
}

/* Bottoni: stessa larghezza/altezza responsive, testo centrato */
.aol-actions .aol-btn {
    flex: 1 1 240px;
    /* occupano spazio uguale, vanno a capo se serve */
    max-width: 300px;
    /* limite per schermi larghi */
    min-width: 220px;
    /* mantiene proporzioni su schermi medi */
    padding: 14px 20px;
    /* un filo più alti */
    font-size: 16px;
    text-align: center;
}

/* Palette più allegra + glow morbido */

/* Primario: menta → azzurro (happy neon) */
.aol-btn-primary {
    color: #06121c;
    background: linear-gradient(135deg, #7CFFCB 0%, #42EADD 45%, #2BB1FF 100%);
    border: 0;
    box-shadow:
        0 8px 22px rgba(67, 199, 255, .45),
        0 0 22px rgba(66, 234, 221, .35),
        inset 0 0 14px rgba(255, 255, 255, .20);
}

.aol-btn-primary:hover {
    box-shadow:
        0 12px 28px rgba(67, 199, 255, .55),
        0 0 28px rgba(66, 234, 221, .45),
        inset 0 0 16px rgba(255, 255, 255, .24);
}

/* Secondario (ex outline): arancio → rosa (party neon) */
.aol-btn-outline {
    color: #1b0a11;
    background: linear-gradient(135deg, #FFD56E 0%, #FF9A62 40%, #FF6FB5 75%, #FF5ACD 100%);
    border: 0;
    box-shadow:
        0 8px 22px rgba(255, 106, 185, .40),
        0 0 22px rgba(255, 165, 96, .30),
        inset 0 0 14px rgba(255, 255, 255, .15);
}

.aol-btn-outline:hover {
    box-shadow:
        0 12px 28px rgba(255, 106, 185, .50),
        0 0 28px rgba(255, 165, 96, .40),
        inset 0 0 16px rgba(255, 255, 255, .20);
}

/* Effetto scan/glitch leggero: aggiornato per nuovi colori */
.aol-btn-primary::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
}

.aol-btn-outline::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
}

/* Testo legale centrato (già lo era), colore leggermente più chiaro per leggibilità */
.aol-terms {
    color: #a9b6da;
    margin-top: 16px;
}

.aol-terms a {
    color: #8fe4ff;
}

/* Micro-tweak per schermi molto piccoli */
@media (max-width: 380px) {
    .aol-actions .aol-btn {
        min-width: 100%;
        max-width: 100%;
    }
}

/* Notifications bell (global) */
.nav-notifications {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-notifications__button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    padding: 6px 10px;
    cursor: pointer;
}

.nav-notifications__button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

.nav-notifications__icon {
    display: inline-flex;
    align-items: center;
}

.nav-notifications__badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e65c4f;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}

.nav-notifications__dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 320px;
    max-width: 90vw;
    background: #151820;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    padding: 10px;
    z-index: 1000;
}

.nav-notifications__dropdown[aria-hidden="true"] {
    display: none;
}

.nav-notifications__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

.nav-notifications__mark-all {
    background: transparent;
    border: 0;
    color: #9bd7ff;
    font-size: 12px;
    cursor: pointer;
}

.nav-notifications__mark-all:disabled {
    opacity: 0.5;
    cursor: default;
}

.nav-notifications__list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    padding: 8px 6px;
    border-radius: 8px;
}

.notification-item.is-unread {
    background: rgba(155, 215, 255, 0.08);
}

.notification-message {
    font-size: 14px;
    font-family: 'Rajdhani Regular', sans-serif;
    letter-spacing: 0.6px;
}

.notification-meta {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Rajdhani Regular', sans-serif;
    letter-spacing: 0.5px;
}

.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.notification-action {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 194, 255, 0.4);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(234, 255, 255, 0.9);
    font-family: 'Rajdhani Regular', sans-serif;
    font-size: 12px;
    letter-spacing: 0.4px;
    cursor: pointer;
}

.notification-action:hover {
    color: #00ffb1;
    border-color: rgba(0, 194, 255, 0.6);
    box-shadow: 0 0 8px rgba(0, 194, 255, 0.35);
}

/* Profile dropdown with notifications */
.nav-profile {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-profile__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    padding: 6px 10px;
    cursor: pointer;
}

.nav-profile__button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

.nav-profile__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e65c4f;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}

.nav-profile__dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 300px;
    max-width: 90vw;
    background: #151820;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    padding: 6px;
    z-index: 1000;
    overflow: hidden;
}

.nav-profile__dropdown[aria-hidden="true"] {
    display: none;
}

.nav-profile__item {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    color: rgba(234, 255, 255, 0.95);
    text-decoration: none;
    background: transparent;
    border: 0;
    font-family: 'Rajdhani Regular', sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.6px;
    line-height: 1.2;
    min-height: 34px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}

.nav-profile__item:visited {
    color: rgba(234, 255, 255, 0.95);
}

.nav-profile__item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.nav-profile__notifications {
    margin: 4px 0 6px 12px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 194, 255, 0.18);
}

.nav-profile__notifications[aria-hidden="true"] {
    display: none;
}

.nav-profile__notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    margin: 2px 4px 6px;
    font-family: 'Rajdhani Regular', sans-serif;
    letter-spacing: 0.6px;
}

.nav-profile__mark-all {
    background: transparent;
    border: 0;
    color: #9bd7ff;
    font-size: 12px;
    cursor: pointer;
}

.nav-profile__mark-all:disabled {
    opacity: 0.5;
    cursor: default;
}

.nav-profile__notifications-list {
    max-height: 240px;
    overflow-y: auto;
}

.nav-profile__notifications .empty-state {
    margin: 0;
    padding: 4px 2px 2px;
    font-family: 'Rajdhani Regular', sans-serif;
    letter-spacing: 0.6px;
}

@media (max-width: 768px) {
    .nav-notifications__label {
        display: none;
    }

    .nav-notifications__dropdown {
        width: 280px;
    }

    .nav-profile__dropdown {
        width: 260px;
    }
}
