/* =====================================================
   Cookie Consent - DinnerVideoJourney (pt-BR)
   Version: v1.0_20260317_dv7j2n5r
   LGPD / GDPR Compliant
   ===================================================== */

.CookieConsent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: #1a1712;
    border-top: 2px solid #c9a227;
    padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 3vw, 2rem);
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: clamp(0.8rem, 1.8vw, 0.875rem);
    color: #f0ece2;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.7);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.CookieConsent.is-visible { transform: translateY(0); }

.CookieConsent-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    flex-wrap: wrap;
}

.CookieConsent-text {
    flex: 1;
    min-width: 260px;
    line-height: 1.55;
    color: #b8af9a;
}
.CookieConsent-text a {
    color: #c9a227;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.CookieConsent-text a:hover { color: #f0c84a; }

.CookieConsent-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.CookieConsent-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: clamp(0.8rem, 1.8vw, 0.875rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}
.CookieConsent-btn--accept {
    background: #c9a227;
    color: #0d0b08;
    border: 2px solid #c9a227;
}
.CookieConsent-btn--accept:hover {
    background: #f0c84a;
    border-color: #f0c84a;
    box-shadow: 0 0 12px rgba(201,162,39,0.4);
}
.CookieConsent-btn--reject {
    background: transparent;
    color: #f0ece2;
    border: 2px solid #3d3520;
}
.CookieConsent-btn--reject:hover { border-color: #7a7060; }

.CookieConsent-btn--settings {
    background: transparent;
    color: #7a7060;
    border: none;
    font-size: 0.8rem;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0.25rem 0;
}
.CookieConsent-btn--settings:hover { color: #b8af9a; }
.CookieSettings {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9991;
    background: #1a1712;
    border-top: 2px solid #c9a227;
    padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 3vw, 2rem);
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: clamp(0.8rem, 1.8vw, 0.875rem);
    color: #f0ece2;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.85);
    max-height: 80vh;
    overflow-y: auto;
}
.CookieSettings.is-open { display: block; }

.CookieSettings-inner { max-width: 600px; margin: 0 auto; }

.CookieSettings-title {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 800;
    color: #c9a227;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.CookieSettings-category {
    border: 1px solid #2e2920;
    border-radius: 8px;
    padding: clamp(0.75rem, 2vw, 1rem);
    margin-bottom: 0.6rem;
    transition: border-color 0.2s;
}
.CookieSettings-category:hover { border-color: #3d3520; }

.CookieSettings-categoryHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}
.CookieSettings-categoryName { font-weight: 700; color: #f0ece2; }
.CookieSettings-categoryDesc { font-size: 0.8rem; color: #7a7060; line-height: 1.5; }
.CookieToggle { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.CookieToggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.CookieToggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #2e2920;
    border-radius: 24px;
    transition: 0.3s;
}
.CookieToggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #5a5240;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: 0.3s;
}
.CookieToggle input:checked + .CookieToggle-slider { background: #c9a227; }
.CookieToggle input:checked + .CookieToggle-slider::before {
    background: #0d0b08;
    transform: translateX(18px);
}
.CookieToggle input:disabled + .CookieToggle-slider { opacity: 0.5; cursor: not-allowed; }

.CookieSettings-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
@media (max-width: 600px) {
    .CookieConsent-inner { flex-direction: column; align-items: flex-start; }
    .CookieConsent-actions { width: 100%; }
    .CookieConsent-btn--accept,
    .CookieConsent-btn--reject { flex: 1; text-align: center; }
}
