/* Cookie Consent & Privacy Styles */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    border-top: 2px solid var(--accent-cyan);
    padding: 1.5rem 2rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 243, 255, 0.2);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.cookie-consent-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
}

.cookie-consent-text p {
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-consent-text a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.cookie-modal-content {
    position: relative;
    max-width: 800px;
    max-height: 90vh;
    width: 100%;
    overflow-y: auto;
    padding: 2.5rem;
    z-index: 1;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.cookie-modal-header h2 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--accent-cyan);
}

.cookie-modal-close {
    background: none;
    border: none;
    color: var(--accent-cyan);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.cookie-modal-close:hover {
    transform: rotate(90deg);
}

.cookie-modal-body {
    margin-bottom: 2rem;
}

.cookie-intro {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cookie-category {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-cyan);
}

.cookie-category-header {
    margin-bottom: 1rem;
}

.cookie-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-toggle-wrapper input[type="checkbox"] {
    width: 50px;
    height: 26px;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-glass);
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-toggle-wrapper input[type="checkbox"]:checked {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.cookie-toggle-wrapper input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.cookie-toggle-wrapper input[type="checkbox"]:checked::before {
    transform: translateX(24px);
}

.cookie-toggle-wrapper input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle-wrapper label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    flex: 1;
}

.cookie-toggle-wrapper label strong {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.cookie-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(112, 0, 255, 0.2);
    color: var(--accent-cyan);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-badge.required {
    background: rgba(0, 243, 255, 0.2);
    color: var(--accent-cyan);
}

.cookie-description {
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.cookie-providers {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

.cookie-providers strong {
    color: var(--text-secondary);
}

.privacy-rights {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(0, 243, 255, 0.05);
    border-left: 3px solid var(--accent-cyan);
    border-radius: 4px;
}

.privacy-rights h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

.privacy-rights ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.privacy-rights li {
    padding: 0.5rem 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

.privacy-rights li strong {
    color: var(--text-primary);
}

.privacy-rights p {
    line-height: 1.6;
    color: var(--text-secondary);
}

.privacy-rights a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.privacy-compliance {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
    font-size: 0.9rem;
}

.cookie-modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1rem;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-consent-text h3 {
        font-size: 1rem;
    }
    
    .cookie-consent-text p {
        font-size: 0.9rem;
    }
    
    .cookie-consent-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-consent-actions button {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .cookie-modal {
        padding: 0.5rem;
    }
    
    .cookie-modal-content {
        padding: 1rem;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .cookie-modal-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .cookie-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .cookie-category {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .cookie-toggle-wrapper label strong {
        font-size: 1rem;
    }
    
    .cookie-description {
        font-size: 0.9rem;
    }
    
    .privacy-rights {
        margin-top: 2rem;
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .privacy-rights h3 {
        font-size: 1.2rem;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-modal-footer button {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 0.75rem;
    }
    
    .cookie-consent-text h3 {
        font-size: 0.95rem;
    }
    
    .cookie-consent-text p {
        font-size: 0.85rem;
    }
    
    .cookie-modal-content {
        padding: 0.75rem;
    }
    
    .cookie-modal-header h2 {
        font-size: 1.1rem;
    }
    
    .cookie-toggle-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .cookie-toggle-wrapper input[type="checkbox"] {
        width: 44px;
        height: 24px;
    }
    
    .cookie-toggle-wrapper input[type="checkbox"]::before {
        width: 16px;
        height: 16px;
    }
    
    .cookie-toggle-wrapper input[type="checkbox"]:checked::before {
        transform: translateX(20px);
    }
}
