/**
 * Cookie Banner Styles - Minimal Dark Theme
 *
 * @package TeenSerie
 * @version 1.0.0
 */

/* Cookie Banner Container */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    padding: 0;
}

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

/* Banner Container */
.cookie-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
}

/* Content Wrapper */
.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Text Content */
.cookie-banner-text {
    flex: 1 1 auto;
    min-width: 250px;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #e2e8f0;
    font-weight: 400;
}

/* Cookie Policy Link */
.cookie-policy-link {
    color: #a3e635;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
    display: inline-block;
    margin-left: 0.25rem;
}

.cookie-policy-link:hover {
    color: #bef264;
    border-bottom-color: #bef264;
}

.cookie-policy-link:focus {
    outline: 2px solid #a3e635;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Actions Container */
.cookie-banner-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 0.75rem;
}

/* Cookie Buttons */
.cookie-btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.01em;
}

/* Accept Button */
.cookie-btn-accept {
    background: linear-gradient(135deg, #a3e635 0%, #84cc16 100%);
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(163, 230, 53, 0.2);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #bef264 0%, #a3e635 100%);
    box-shadow: 0 4px 12px rgba(163, 230, 53, 0.3);
    transform: translateY(-1px);
}

.cookie-btn-accept:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(163, 230, 53, 0.2);
}

.cookie-btn-accept:focus {
    outline: 2px solid #a3e635;
    outline-offset: 2px;
}

/* Hide class for JavaScript control */
.cookie-banner.cookie-banner-hidden {
    display: none !important;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .cookie-banner-container {
        padding: 1rem 1rem;
    }

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

    .cookie-banner-text {
        text-align: left;
        min-width: 100%;
    }

    .cookie-banner-text p {
        font-size: 0.875rem;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }

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

@media screen and (max-width: 480px) {
    .cookie-banner-container {
        padding: 0.875rem 1rem;
    }

    .cookie-banner-text p {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .cookie-btn {
        font-size: 0.875rem;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        animation: none;
    }

    .cookie-btn {
        transition: none;
    }

    .cookie-btn-accept:hover {
        transform: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .cookie-banner {
        border-top: 2px solid #ffffff;
    }

    .cookie-banner-text p {
        color: #ffffff;
    }

    .cookie-policy-link {
        border-bottom: 2px solid #a3e635;
    }
}

/* Dark Mode Specific Adjustments (if theme has light mode toggle) */
html.dark .cookie-banner {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
}

html.dark .cookie-banner-text p {
    color: #e2e8f0;
}

/* Print Styles */
@media print {
    .cookie-banner {
        display: none !important;
    }
}
