﻿/* ============================================
   PAGINA CREA CACCE (/crea) - CSS BASE
   Layout, struttura, elementi comuni
   TEMA: Blu Petrolio Elegante
   ============================================ */


/* VARIABILI COLORE TEMA */
:root {
    /* BLU VERO - non verde */
    --blu-petrolio-scuro: #0a1a2a; /* Blu notte scuro */
    --blu-petrolio-medio: #1a2a3a; /* Blu notte medio */
    --blu-petrolio-chiaro: #2a3a4a; /* Blu notte chiaro */
    /* Mantieni gli altri */
    --testo-chiaro: #e6e6e6;
    --testo-secondario: #b0b0b0;
    --bordo-scuro: #3e3e42;
    --accento-turchese: #4ec9b0;
    --accento-oro: #ffb300;
}

/* LAYOUT 2 COLONNE */
/* LAYOUT 2 COLONNE - CORRETTO */
.crea-container {
    display: grid;
    grid-template-columns: 2fr 3fr; /* 40% - 60% */
    gap: 0; /* Nessun gap tra le colonne */
    height: calc(100vh - 70px); /* Altezza totale meno l'header */
    width: 100%;
    /* EFFETTO VETRO SCURO */
    background: rgba(26, 28, 30, 0.95);
    backdrop-filter: blur(2px);
    /* BORDI SOTTILI */
    border-top: 1px solid rgba(217, 108, 43, 0.3);
    box-shadow: inset 0 0 0 1px rgba(217, 108, 43, 0.2);
    margin: 0;
    padding: 0;
    /* IMPORTANTE: blocca lo scroll sul contenitore */
    overflow: hidden;
}

/* COLONNA SINISTRA - SOLO QUI LO SCROLL */
.crea-col-main {
    overflow-y: auto; /* SOLO scroll verticale */
    overflow-x: hidden; /* Niente scroll orizzontale */
    height: 100%; /* Occupa tutta l'altezza del container */
    background: transparent;
    border-right: 1px solid rgba(217, 108, 43, 0.2);
    padding: 1rem; /* Padding interno per le card */
    /* Personalizzazione barra di scorrimento (opzionale) */
    scrollbar-width: thin;
    scrollbar-color: #D96C2B #2C2A28;
}

    /* Personalizzazione per Chrome/Safari */
    .crea-col-main::-webkit-scrollbar {
        width: 6px;
    }

    .crea-col-main::-webkit-scrollbar-track {
        background: #2C2A28;
    }

    .crea-col-main::-webkit-scrollbar-thumb {
        background: #D96C2B;
        border-radius: 3px;
    }

        .crea-col-main::-webkit-scrollbar-thumb:hover {
            background: #B85E24;
        }

/* COLONNA DESTRA - MAPPA FISSA, NIENTE SCROLL */
.crea-col-mappa {
    height: 100%; /* Occupa tutta l'altezza */
    overflow: hidden; /* IMPORTANTE: blocca qualsiasi scroll */
    background: transparent;
    position: relative;
}
 
.mappa-viewport {
    height: 100% !important;
    max-height: 100%;
}

/* BARRA DI NAVIGAZIONE SUPERIORE - BLU PETROLIO SCURO */
.crea-subnav {
    background: linear-gradient(135deg, var(--blu-petrolio-scuro) 0%, var(--blu-petrolio-medio) 100%);
    border-bottom: 2px solid #083333;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.crea-subnav-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--testo-chiaro);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.crea-subnav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    /* GLOW SOTTILE E PRECISO */
    filter: brightness(1) drop-shadow(0 0 4px rgba(156, 220, 254, 0.5)) /* Raggio: 4px, Opacità: 50% */
    drop-shadow(0 0 6px rgba(86, 156, 214, 0.1)); /* Raggio: 6px, Opacità: 30% */

    transition: all 0.3s ease;
}

    .crea-subnav-logo:hover {
        /* GLOW LEGGERMENTE PIÙ INTENSO ALL'HOVER */
        filter: brightness(1.3) drop-shadow(0 0 5px rgba(156, 220, 254, 0.7)) drop-shadow(0 0 8px rgba(86, 156, 214, 0.4));
    }


/* BADGE AUTORE NELLA TESTATINA */
.crea-subnav-autore-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--testo-chiaro);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    max-width: 180px;
    overflow: hidden;
    position: relative;
}

    .crea-subnav-autore-badge i {
        font-size: 1.2rem;
        opacity: 0.9;
    }

.autore-nome {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
}

/* Icona freccia nel menu */
.menu-chevron {
    font-size: 0.8rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

/* Rotazione della freccia quando menu è aperto */
.crea-subnav-autore-badge.menu-open .menu-chevron {
    transform: rotate(180deg);
}

/* Hover per feedback visivo */
.crea-subnav-autore-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

/* Overlay per chiudere il menu cliccando fuori */
.menu-autore-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999; /* Aumentato a 9999 */
    background: transparent;
}

/* Menu a tendina */
.menu-autore-tendina {
    position: absolute;
    top: 75px;
    right: 20px;
    background: var(--blu-petrolio-scuro);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    z-index: 10000; /* Aumentato a 10000 - primo piano assoluto */
    min-width: 250px;
    overflow: hidden;
}

/* Header del menu */
.menu-autore-header {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-autore-nome {
    font-weight: 600;
    color: var(--testo-chiaro);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.menu-autore-email {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.menu-autore-livello {
    font-size: 0.8rem;
    color: var(--verde-acqua);
    font-weight: 500;
}

/* Separatore */
.menu-autore-separatore {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Voci del menu */
.menu-autore-voce {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    color: var(--testo-chiaro);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 0.95rem;
}

    .menu-autore-voce:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .menu-autore-voce i {
        width: 20px;
        text-align: center;
        opacity: 0.8;
    }

/* Voce logout con colore speciale */
.menu-autore-logout {
    color: #ff6b6b;
}

    .menu-autore-logout:hover {
        background: rgba(255, 107, 107, 0.1);
    }


.crea-subnav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
}


/* FINE BADGE AUTORE NELLA TESTATINA */




.crea-subnav-home-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--testo-chiaro);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .crea-subnav-home-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

.crea-subnav-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--testo-chiaro);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .crea-subnav-menu-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

/* TESTATINA SEZIONE "LE MIE CACCE" - BLU PETROLIO MEDIO */
.crea-col-sezione-header {
    background: linear-gradient(135deg, #1a2a3a 0%, #2a3a4a 100%);
    border: 1px solid #3e3e42;
    border-left: 3px solid #4ec9b0;
    border-radius: 8px;
    padding: 0.75rem 1rem !important;
    margin-bottom: 1rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.crea-col-sezione-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem !important;
}

    .crea-col-sezione-title i {
        font-size: 1.75rem;
        color: var(--accento-turchese);
    }

    .crea-col-sezione-title h3 {
        margin: 0;
        font-size: 1.50rem !important;
        font-weight: 600;
        color: var(--testo-chiaro);
        margin-bottom: 0.125rem !important;
    }

.crea-col-sezione-subtitle {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem !important;
    margin: 0 !important;
    color: var(--testo-secondario);
    font-weight: 400;
}

.crea-col-sezione-action-btn {
    background: var(--accento-turchese);
    color: var(--blu-petrolio-scuro);
    border: none;
    width: 32px !important;
    height: 32px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem !important;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

    .crea-col-sezione-action-btn:hover {
        background: var(--accento-oro);
        color: var(--blu-petrolio-scuro);
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 4px 8px rgba(255, 179, 0, 0.3);
    }

/* RESPONSIVE BASE */
@media (max-width: 1200px) {
    .crea-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .crea-col-mappa {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .crea-subnav-title {
        font-size: 1.2rem;
    }

    .crea-subnav-logo {
        height: 40px;
    }

    .crea-col-sezione-title h3 {
        font-size: 1.25rem;
    }

    .crea-container {
        padding: 0.25rem;
        gap: 0.75rem;
    }
}

/* STILE PER TITOLO CACCE IN HEADER MODIFICA */
.caccia-edit-titolo {
    color: var(--accento-oro);
    font-weight: 700;
    background: rgba(255, 179, 0, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    border: 1px solid rgba(255, 179, 0, 0.3);
}

/* UTILITY CLASSI PER TEMA */
.text-tema-chiaro {
    color: var(--testo-chiaro) !important;
}

.text-tema-secondario {
    color: var(--testo-secondario) !important;
}

.bg-tema-primario {
    background: var(--blu-petrolio-scuro) !important;
}

.bg-tema-secondario {
    background: var(--blu-petrolio-medio) !important;
}

.border-tema {
    border-color: var(--bordo-scuro) !important;
}




/* ============================================
   FIX SFONDO PAGINA COMPLETO
   ============================================ */

/* Tinta tutto lo sfondo della pagina */
body {
    background: #0a1a2a !important; /* Blu petrolio scuro */
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Assicurati che il layout principale copra tutto */
.pagina {
    background: #0a1a2a !important;
    min-height: 100vh;
}

/* Se c'è un wrapper extra */
.main, .content, #app {
    background: #0a1a2a !important;
}