/* ===============================================
   🍪 COOKIE SYSTEM - PREMIUM COMPLIANCE
   =============================================== */

/* ===== COOKIE SUMMARY ===== */
.cookie-summary {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--background-card);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.summary-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: var(--background-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-btn:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.summary-btn.secondary {
    background: var(--background-primary);
    color: var(--primary-color);
}

.summary-btn.secondary:hover {
    background: var(--primary-50);
}

/* ===== COOKIE TYPES GRID ===== */
.cookie-types-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin: 1.5rem 0;
}

.cookie-type-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.cookie-type-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-type-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cookie-type-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.cookie-type-card li:last-child {
    border-bottom: none;
}

/* ===== COOKIE ANALOGY ===== */
.cookie-analogy {
    background: linear-gradient(135deg, var(--info-50), var(--info-100));
    border: 1px solid var(--info-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1rem 0;
}

.cookie-analogy h5 {
    color: var(--info-700);
    margin-bottom: 0.75rem;
}

.cookie-analogy p {
    color: var(--info-600);
    margin: 0;
}

/* ===== CATEGORY STATS ===== */
.category-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.stat {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    background: var(--background-section);
    border-radius: 1rem;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

/* ===== ENHANCED COOKIE CATEGORIES ===== */
.cookie-categories-detailed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cookie-category-detailed {
    background: var(--background-card);
    border-radius: 1rem;
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.cookie-category-detailed:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(var(--shadow-rgb), 0.1);
}

.essential-category {
    border-left: 4px solid var(--success-color);
}

.analytics-category {
    border-left: 4px solid var(--info-color);
}

.marketing-category {
    border-left: 4px solid var(--warning-color);
}

.category-header {
    background: var(--background-section);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.category-content {
    padding: 2rem;
}

/* ================================
   🍪 COOKIE BANNER SYSTEM
   ================================ */

.cookie-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(20, 20, 30, 0.98) 50%, 
        rgba(0, 0, 0, 0.95) 100%
    );
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 0;
    z-index: 999999 !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    /* Ensure it's always on top and outside any wrapper */
    margin: 0 !important;
    pointer-events: auto !important;
    /* Override any inherited transforms from smooth-wrapper */
    transform: translateY(100%) !important;
}

.cookie-banner.show {
    transform: translateY(0) !important;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-banner-text p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.cookie-banner-text a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cookie-banner-text a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    white-space: nowrap;
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%
    );
    transition: left 0.6s ease;
}

.cookie-btn:hover::before {
    left: 100%;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: 1px solid var(--accent-primary);
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--accent-primary-rgb), 0.4);
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ===== DARK MODE SUPPORT ===== */

.dark-mode .cookie-banner {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.98) 0%, 
        rgba(10, 10, 15, 0.99) 50%, 
        rgba(0, 0, 0, 0.98) 100%
    );
    border-top-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .cookie-banner-text {
        min-width: auto;
    }
    
    .cookie-banner-text h4 {
        font-size: 1.1rem;
        justify-content: center;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
        max-width: 200px;
    }
    
    .summary-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .cookie-types-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1rem 0;
    }
    
    .cookie-banner-content {
        padding: 0 1rem;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        max-width: none;
    }
    
    .cookie-banner-text h4 {
        font-size: 1rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.85rem;
    }
}

/* ===== ACCESSIBILITY & PERFORMANCE ===== */

@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        transition: none;
    }
    
    .cookie-btn::before {
        display: none;
    }
    
    .cookie-btn:hover {
        transform: none;
    }
}

@media (prefers-contrast: high) {
    .cookie-banner {
        background: #000;
        border-top: 2px solid #fff;
    }
    
    .cookie-btn-primary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .cookie-btn-secondary {
        background: transparent;
        color: #fff;
        border: 2px solid #fff;
    }
} 