/**
 * Tracking Component CSS - Sistema Tracking SaintChannel
 * 
 * Stili per:
 * - Floating Action Buttons
 * - Banner Cookie Laterale  
 * - Modale Cookie Dettagliata
 * - Elementi UI tracking
 * 
 * @version 1.0
 * @date 2025-09-10
 * @framework SaintChannel v2.10.22
 */

/* ==========================================
   FLOATING ACTION BUTTONS - COOKIES TRACKING
   ========================================== */

.st-cookies-floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.st-cookies-floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--st-primary, #00ff9d);
    background: rgba(0, 0, 0, 0.7);
    color: var(--st-primary, #00ff9d);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
    position: relative;
}

.st-cookies-floating-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 255, 157, 0.1);
    box-shadow: 0 5px 20px rgba(0, 255, 157, 0.3);
}

.st-cookies-floating-btn.scroll-top {
    background: rgba(22, 33, 62, 0.95);
}

/* Tooltip specifico per cookies */
.st-cookies-floating-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.95);
    color: var(--st-text, #ffffff);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--st-border, #374151);
    pointer-events: none;
    z-index: 1070;
}

.st-cookies-floating-btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

/* ==========================================
   BANNER COOKIE LATERALE - SPECIFICO
   ========================================== */

.st-cookies-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(15px);
    border: 2px solid var(--st-primary, #00ff9d);
    border-radius: 12px;
    padding: 1.5rem;
    z-index: 9998;
    transform: translateX(110%);
    transition: transform 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.st-cookies-banner.show {
    transform: translateX(0);
}

.st-cookies-banner h6 {
    color: var(--st-primary, #00ff9d);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.st-cookies-banner p {
    color: var(--st-text, #ffffff);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.st-cookies-banner .btn-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.st-cookies-banner .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.st-cookies-banner .btn-outline-light {
    color: var(--st-text, #ffffff);
    border-color: var(--st-border, #374151);
    background: transparent;
}

.st-cookies-banner .btn-outline-light:hover {
    background: rgba(51, 65, 85, 0.3);
    color: var(--st-text, #ffffff);
}

.st-cookies-banner .btn-primary {
    background: var(--st-primary, #00ff9d);
    border: none;
    color: var(--st-darker, #0f172a);
    font-weight: 600;
}

.st-cookies-banner .btn-success {
    background: var(--st-primary, #00ff9d);
    border: 2px solid var(--st-primary, #00ff9d);
    color: var(--st-darker, #0f172a);
    font-weight: 600;
}

.st-cookies-banner .btn-success:hover {
    background: rgba(0, 255, 157, 0.9);
    border-color: var(--st-primary, #00ff9d);
    color: var(--st-darker, #0f172a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3);
}

/* ==========================================
   MODALE COOKIE DETTAGLIATA - SPECIFICO
   ========================================== */

.st-cookies-modal {
    --bs-modal-bg: rgba(26, 26, 46, 0.98);
    --bs-modal-border-color: var(--st-border, #374151);
}

.st-cookies-modal .modal-content {
    background: rgba(26, 26, 46, 0.98) !important;
    backdrop-filter: blur(20px);
    border: 2px solid var(--st-primary, #00ff9d);
    border-radius: 12px;
}

.st-cookies-modal .modal-header {
    border-bottom: 1px solid var(--st-border, #374151);
    background: rgba(0, 255, 157, 0.1);
}

.st-cookies-modal .modal-footer {
    border-top: 1px solid var(--st-border, #374151);
    background: rgba(15, 23, 42, 0.5);
}

/* Cookie Categories */
.st-cookies-categories {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.st-cookies-category {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid var(--st-border, #374151);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.st-cookies-category h6 {
    color: var(--st-primary, #00ff9d);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.st-cookies-category p {
    color: var(--st-text-muted, #cbd5e1);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

/* Descrizioni cookie più chiare */
.st-cookies-category small.text-muted {
    color: #e2e8f0 !important;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* ==========================================
   TOGGLE SWITCHES - COOKIES SPECIFICO
   ========================================== */

.st-cookies-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.st-cookies-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.st-cookies-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--st-dark, #1e293b);
    transition: 0.4s;
    border-radius: 24px;
    border: 1px solid var(--st-border, #374151);
}

.st-cookies-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: var(--st-text-muted, #cbd5e1);
    transition: 0.4s;
    border-radius: 50%;
}

.st-cookies-toggle input:checked + .st-cookies-slider {
    background-color: var(--st-primary, #00ff9d);
    border-color: var(--st-primary, #00ff9d);
}

.st-cookies-toggle input:disabled + .st-cookies-slider {
    background-color: var(--st-primary, #00ff9d);
    opacity: 0.6;
    cursor: not-allowed;
}

.st-cookies-toggle input:checked + .st-cookies-slider:before {
    transform: translateX(26px);
    background-color: var(--st-darker, #0f172a);
}

.st-cookies-toggle input:focus + .st-cookies-slider {
    box-shadow: 0 0 0 2px rgba(0, 255, 157, 0.3);
}

/* ==========================================
   RESPONSIVE - COOKIES TRACKING
   ========================================== */

@media (max-width: 768px) {
    .st-cookies-banner {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        bottom: 20px;
    }
    
    .st-cookies-floating-buttons {
        bottom: 15px;
        right: 15px;
    }
    
    .st-cookies-floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .st-cookies-categories {
        max-height: 300px;
    }
}
