/* cookie-consent.css — Banner e modal de consentimento de cookies (LGPD) */

.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .12);
    padding: 16px;
    animation: cookieConsentSlideUp .35s ease, cookieConsentFadeIn .35s ease;
}

.cookie-consent-banner[hidden] {
    display: none;
}

.cookie-consent-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

.cookie-consent-text {
    flex: 1 1 420px;
    margin: 0;
    font-size: .9rem;
    color: #374151;
}

.cookie-consent-links {
    flex: 0 0 100%;
    order: 3;
    font-size: .8rem;
}

.cookie-consent-links a {
    color: #6b7280;
    text-decoration: none;
}

.cookie-consent-links a:hover {
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}

@media (max-width: 576px) {
    .cookie-consent-actions {
        flex: 1 1 100%;
        margin-left: 0;
    }

    .cookie-consent-actions .btn {
        flex: 1 1 auto;
    }
}

@keyframes cookieConsentSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes cookieConsentFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-consent-category {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-consent-category:last-child {
    border-bottom: none;
}

.cookie-consent-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.cookie-consent-category-header i {
    margin-right: 8px;
    color: #6b7280;
}

.cookie-consent-category p {
    margin: 0;
    font-size: .82rem;
    color: #6b7280;
}

.cookie-consent-modal-footer {
    flex-wrap: wrap;
}

/* ===== Dark mode — segue o padrão de modo_dark.css (body.dark-mode) ===== */

body.dark-mode .cookie-consent-banner {
    background: #1f2937;
    border-top-color: #374151;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .4);
}

body.dark-mode .cookie-consent-text {
    color: #e5e7eb;
}

body.dark-mode .cookie-consent-links a {
    color: #9ca3af;
}

body.dark-mode .cookie-consent-category {
    border-bottom-color: #374151;
}

body.dark-mode .cookie-consent-category p {
    color: #9ca3af;
}

body.dark-mode .cookie-consent-category-header i {
    color: #9ca3af;
}

/* data-bs-theme="dark" — usado nas páginas de atleta/admin antes de body.dark-mode ser aplicado via JS */
html[data-bs-theme="dark"] .cookie-consent-banner {
    background: #1f2937;
    border-top-color: #374151;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .4);
}

html[data-bs-theme="dark"] .cookie-consent-text {
    color: #e5e7eb;
}

html[data-bs-theme="dark"] .cookie-consent-links a {
    color: #9ca3af;
}

html[data-bs-theme="dark"] .cookie-consent-category {
    border-bottom-color: #374151;
}

html[data-bs-theme="dark"] .cookie-consent-category p {
    color: #9ca3af;
}
