/**
 * Cookie Consent Banner Styles
 * Responsive, accessible banner with slide-up animation
 */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.cookie-consent-banner.visible {
    transform: translateY(0);
}

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

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: white;
}

.cookie-consent-description {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-consent-link {
    color: #60a5fa;
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-consent-link:hover {
    color: #93c5fd;
}

.cookie-consent-link:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
    border-radius: 2px;
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-consent-btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-consent-btn-primary {
    background: #2563eb;
    color: white;
}

.cookie-consent-btn-primary:hover {
    background: #1d4ed8;
}

.cookie-consent-btn-primary:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

.cookie-consent-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-consent-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-consent-btn-secondary:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Responsive design - stack on mobile */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1rem;
    }

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

    .cookie-consent-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-consent-btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .cookie-consent-title {
        font-size: 1rem;
    }

    .cookie-consent-description {
        font-size: 0.813rem;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner {
        transition: none;
    }

    .cookie-consent-banner.visible {
        transform: translateY(0);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-consent-banner {
        background: black;
        border-top: 2px solid white;
    }

    .cookie-consent-btn-primary {
        background: #1e40af;
        border: 2px solid white;
    }

    .cookie-consent-btn-secondary {
        background: transparent;
        border: 2px solid white;
    }
}

/* Focus visible - modern browsers */
.cookie-consent-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Print styles - hide banner */
@media print {
    .cookie-consent-banner {
        display: none;
    }
}
