/**
 * Cookie Consent Banner Styles
 * GDPR-compliant cookie consent UI
 */

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    padding: 12px 20px;
    animation: slideUp 0.3s ease-out;
}

#cookie-consent-banner.hiding {
    animation: slideDown 0.3s ease-out forwards;
}

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

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

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.cookie-consent-text {
    flex: 1;
    min-width: 280px;
}

.cookie-consent-text h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text);
}

.cookie-consent-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.4;
}

.cookie-consent-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.cookie-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.2s, background-color 0.2s;
}

.cookie-option:hover {
    border-color: var(--primary);
}

.cookie-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.cookie-option input[type="checkbox"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-option-label {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cookie-option-label strong {
    font-size: 0.85rem;
    color: var(--text);
}

.cookie-option-label small {
    display: none;
}

.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.cookie-btn-primary {
    background: var(--primary);
    color: white;
}

.cookie-btn-primary:hover {
    background: var(--primary-hover);
}

.cookie-btn-secondary {
    background: var(--bg-hover);
    color: var(--text);
    border: 1px solid var(--border);
}

.cookie-btn-secondary:hover {
    background: var(--bg);
    border-color: var(--primary);
}

.cookie-btn-outline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.cookie-btn-outline:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.cookie-consent-footer {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
}

.cookie-consent-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.cookie-consent-footer a:hover {
    color: var(--primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #cookie-consent-banner {
        padding: 12px;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .cookie-consent-text {
        min-width: 100%;
    }

    .cookie-consent-buttons {
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}

/* Cookie settings link in footer */
.cookie-settings-link {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.cookie-settings-link:hover {
    color: var(--primary);
}
