/*
 * TopFoodReels — Cookie Consent Banner
 * Version: v1.0_20260318_fr7c2e9a
 * GDPR / LGPD Compliant | Google Consent Mode v2
 */

.cc-banner {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: none;
    animation: ccSlideUp 0.4s ease both;
}
.cc-banner.cc-visible { display: block; }

@keyframes ccSlideUp {
    from { opacity: 0; transform: translateY(1.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}

.cc-container {
    background: #1e1030;
    border: 1px solid rgba(212, 76, 170, 0.3);
    border-radius: 1rem;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(16px);
}

.cc-text { flex: 1; min-width: 16rem; }
.cc-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ede9f7;
    margin: 0 0 0.375rem;
    font-family: 'Lato', sans-serif;
}
.cc-description {
    font-size: 0.8rem;
    color: #b9a8d4;
    margin: 0;
    line-height: 1.5;
    font-family: 'Lato', sans-serif;
}
.cc-description a {
    color: #d44caa;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cc-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cc-btn {
    padding: 0.5rem 1.125rem;
    border-radius: 999px;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}
.cc-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.cc-btn:active { transform: translateY(0); }

.cc-btn-accept {
    background: linear-gradient(135deg, #d44caa, #a855f7);
    color: #fff;
    box-shadow: 0 4px 12px rgba(212, 76, 170, 0.35);
}
.cc-btn-reject {
    background: rgba(255,255,255,0.07);
    color: #b9a8d4;
    border: 1px solid rgba(255,255,255,0.15);
}
.cc-btn-settings {
    background: transparent;
    color: #7c6b9a;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.75rem;
}
.cc-btn-settings:hover { color: #b9a8d4; }
.cc-settings-panel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 4, 18, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.cc-settings-panel.cc-visible { display: flex; animation: fadeIn 0.3s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.cc-settings-container {
    background: #2a1848;
    border: 1px solid rgba(212, 76, 170, 0.3);
    border-radius: 1.25rem;
    padding: 1.75rem;
    width: 100%;
    max-width: 32rem;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
    animation: ccSlideUp 0.35s ease both;
}

.cc-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(197, 98, 232, 0.2);
}
.cc-settings-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: #ede9f7;
    margin: 0;
    font-family: 'Lato', sans-serif;
}
.cc-settings-close {
    background: rgba(255,255,255,0.07);
    border: none;
    color: #7c6b9a;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}
.cc-settings-close:hover { background: rgba(255,255,255,0.14); color: #ede9f7; }

.cc-categories { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.25rem; }

.cc-category {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(197, 98, 232, 0.15);
    border-radius: 0.875rem;
    padding: 1rem;
}
.cc-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.375rem;
}
.cc-category-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ede9f7;
    font-family: 'Lato', sans-serif;
}
.cc-category-desc {
    font-size: 0.75rem;
    color: #7c6b9a;
    margin: 0;
    line-height: 1.5;
    font-family: 'Lato', sans-serif;
}
.cc-toggle {
    position: relative;
    display: inline-flex;
    width: 2.75rem;
    height: 1.5rem;
    flex-shrink: 0;
}
.cc-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cc-toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s ease;
}
.cc-toggle-slider::before {
    content: '';
    position: absolute;
    width: 1.125rem;
    height: 1.125rem;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
}
.cc-toggle input:checked + .cc-toggle-slider { background: linear-gradient(135deg, #d44caa, #a855f7); }
.cc-toggle input:checked + .cc-toggle-slider::before { transform: translateX(1.25rem); }
.cc-toggle input:disabled + .cc-toggle-slider { cursor: not-allowed; opacity: 0.6; }
.cc-toggle input:focus + .cc-toggle-slider { outline: 2px solid #d44caa; outline-offset: 2px; }

.cc-settings-actions {
    display: flex;
    gap: 0.625rem;
}
.cc-settings-actions .cc-btn { flex: 1; padding: 0.625rem 1rem; text-align: center; }

@media (max-width: 600px) {
    .cc-banner { bottom: 0; left: 0; right: 0; }
    .cc-container { border-radius: 1rem 1rem 0 0; }
    .cc-actions { width: 100%; }
    .cc-btn { flex: 1; text-align: center; }
}
