/**
 * Cookie Consent Styles - Sistema Tracking SaintChannel v2
 * 
 * Stili aggiornati per banner, modale e pulsanti flottanti
 * con design system Verde Neon SaintChannel.
 * 
 * @version 2.0
 * @date 2025-09-15
 * @framework SaintChannel v2.10.22
 */

/* ==========================================
   VARIABILI CSS TRACKING
   ========================================== */
:root {
    --st-cookie-modal-bg: rgba(0, 0, 0, 0.95);
    --st-cookie-content-bg: #1a1a1a;
    --st-cookie-border: var(--st-primary);
    --st-cookie-text: #ffffff;
    --st-cookie-text-muted: #cccccc;
    --st-cookie-accent: var(--st-primary);
    --st-cookie-secondary: #6c757d;
    --st-cookie-success: #28a745;
    --st-cookie-warning: #ffc107;
    --st-cookie-shadow: 0 10px 30px rgba(0, 255, 157, 0.3);
}

/* ==========================================
   COOKIE BANNER (Mini finestra in basso)
   ========================================== */

.st-cookies-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 400px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid var(--st-primary);
    border-radius: 15px;
    padding: 20px;
    color: white;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.4);
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.st-cookies-banner.show {
    transform: translateX(0);
    opacity: 1;
}

.st-banner-header h6 {
    color: var(--st-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.st-banner-text {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.st-banner-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.st-banner-buttons .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* ==========================================
   COOKIE MODAL (Modale completa)
   ========================================== */

.st-cookies-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.st-cookies-modal.show {
    opacity: 1;
}

.st-cookies-modal .modal-content {
    border: 2px solid var(--st-primary);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 255, 157, 0.3);
}

.st-cookies-modal .modal-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 13px 13px 0 0;
}

.st-cookies-modal .modal-title {
    font-weight: 600;
    font-size: 1.2rem;
}

.st-cookies-modal .btn-close {
    background-size: 1.2em;
    opacity: 0.8;
}

.st-cookies-modal .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Categorie cookie nella modale */
.st-cookies-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.st-cookies-category:hover {
    background: rgba(0, 255, 157, 0.1);
    border-color: var(--st-primary);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.category-title {
    color: var(--st-primary);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.st-cookies-category .category-description {
    color: #dbdbdb !important;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 8px 0;
}

.st-cookies-category .category-cookies {
    color: #dbdbdb !important;
    font-size: 0.8rem;
    font-style: italic;
    margin: 0;
    padding-top: 5px;
    border-top: 1px solid rgba(0, 255, 157, 0.2);
}

/* Toggle switch per categorie */
.st-cookies-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

/* Tag style per badge necessario */
.st-tag {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    border: 1px solid;
}

.st-tag-success {
    background-color: var(--st-primary);
    color: #1a1a1a;
    border-color: var(--st-primary);
}

.st-cookies-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.st-cookies-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #666;
    border-radius: 24px;
    transition: 0.3s;
}

.st-cookies-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.st-cookies-toggle input:checked + .st-cookies-slider {
    background-color: var(--st-primary);
}

.st-cookies-toggle input:checked + .st-cookies-slider:before {
    transform: translateX(26px);
}

.st-cookies-toggle input:disabled + .st-cookies-slider {
    background-color: var(--st-primary);
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==========================================
   PULSANTI FLOTTANTI
   ========================================== */

.st-floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.st-float-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--st-primary);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--st-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
}

.st-float-btn:hover {
    background: linear-gradient(135deg, var(--st-primary) 0%, #00cc7a 100%);
    color: #1a1a1a;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 255, 157, 0.5);
}

.st-float-btn i {
    font-size: 1.1rem;
}

/* Animazioni */
@keyframes cookieSlideIn {
    from {
        transform: translateX(-120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes cookieModalSlideIn {
    from {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .st-cookies-banner {
        left: 10px;
        right: 10px;
        max-width: none;
        bottom: 10px;
    }
    
    .st-floating-buttons {
        bottom: 10px;
        right: 10px;
    }
    
    .st-float-btn {
        width: 45px;
        height: 45px;
    }
    
    .st-cookies-modal .modal-dialog {
        margin: 0.5rem;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ==========================================
   SCROLLBAR PERSONALIZZATA PER MODALE
   ========================================== */

/* Scrollbar per la modale */
.st-cookies-modal .modal-body::-webkit-scrollbar {
    width: 12px;
}

.st-cookies-modal .modal-body::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 6px;
}

.st-cookies-modal .modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--st-primary) 0%, #00cc7a 100%);
    border-radius: 6px;
    border: 2px solid #1a1a1a;
}

.st-cookies-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00cc7a 0%, var(--st-primary) 100%);
}

.st-cookies-modal .modal-body::-webkit-scrollbar-corner {
    background: #1a1a1a;
}

/* Scrollbar per Firefox */
.st-cookies-modal .modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--st-primary) #1a1a1a;
}
