/**
 * Cookie Consent Banner Styling
 */

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    font-size: 14px;
    display: none;
}

/* Dark mode friendly */
@media (prefers-color-scheme: dark) {
    #cookie-consent-banner {
        background-color: #2d2d2d;
    }
}

/* Light backgrounds */
@media (prefers-color-scheme: light) {
    #cookie-consent-banner {
        background-color: #f8f9fa;
        color: #333333;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    }
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-consent-text {
    flex: 1;
    min-width: 250px;
}

.cookie-consent-text p {
    margin: 0;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

.cookie-consent-text a:hover {
    text-decoration: underline;
}

@media (prefers-color-scheme: light) {
    .cookie-consent-text a {
        color: #0068d8;
    }
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 250px;
    justify-content: flex-end;
}

.cookie-consent-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#cookie-consent-accept {
    background-color: #0d6efd;
    color: white;
}

#cookie-consent-accept:hover {
    background-color: #0a58ca;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

#cookie-consent-decline {
    background-color: #6c757d;
    color: white;
}

#cookie-consent-decline:hover {
    background-color: #5c636a;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    #cookie-consent-banner {
        padding: 1rem;
    }

    .cookie-consent-container {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-buttons {
        justify-content: stretch;
    }

    .cookie-consent-btn {
        flex: 1;
        padding: 0.75rem;
    }
}

/* Animation on appear */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#cookie-consent-banner {
    animation: slideUp 0.4s ease-out;
}

/* Accessibility */
.cookie-consent-btn:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    #cookie-consent-banner {
        animation: none;
    }
}
