/* ============================================
   COOKIE CONSENT BANNER
   GDPR/DSGVO Compliant
   ============================================ */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 2px solid var(--accent);
    padding: var(--space-lg);
    z-index: 10000;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-banner.hidden {
    display: none;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cookie-consent-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.cookie-consent-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.cookie-consent-description {
    font-size: var(--font-small);
    color: var(--text-secondary);
    line-height: 1.6;
}

.cookie-consent-description a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-consent-description a:hover {
    color: var(--accent-dark);
}

.cookie-consent-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: var(--font-small);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: inherit;
}

.cookie-btn-accept {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.cookie-btn-accept:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.cookie-btn-reject:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
    text-decoration: underline;
}

.cookie-btn-settings:hover {
    color: var(--accent);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: var(--space-md);
}

.cookie-settings-modal.hidden {
    display: none;
}

.cookie-settings-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: var(--space-lg);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.cookie-settings-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.cookie-settings-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.cookie-settings-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.cookie-category {
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.cookie-category-name {
    font-size: var(--font-body);
    font-weight: 600;
    color: var(--text-primary);
}

.cookie-category-description {
    font-size: var(--font-small);
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-toggle {
    position: relative;
    width: 48px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-color);
    border-radius: 24px;
    transition: var(--transition);
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--accent);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-settings-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: var(--space-md);
    }

    .cookie-consent-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-settings-content {
        padding: var(--space-md);
    }
}
