/* ========== GDPR Consent Banner ========== */
#gdpr-banner {
    position: fixed;
    left: 0; right: 0;
    background: var(--gdpr-bg, #1a1a2e);
    color: var(--gdpr-text, #fff);
    padding: 1.2rem 1.5rem;
    z-index: 99999;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
    font-size: 0.95rem;
    display: none;
}
#gdpr-banner.show { display: block; }
#gdpr-banner.gdpr-banner--bottom { bottom: 0; }
#gdpr-banner.gdpr-banner--top { top: 0; }

#gdpr-banner .gdpr-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
#gdpr-banner p { margin: 0; line-height: 1.5; flex: 1; }
#gdpr-banner a { color: var(--gdpr-link, #7ec8e3); text-decoration: underline; }
#gdpr-banner .gdpr-btns { display: flex; gap: 0.6rem; flex-wrap: wrap; }

#gdpr-banner button {
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s;
}
#gdpr-banner button:hover { opacity: 0.85; }
#gdpr-btn-accept { background: var(--gdpr-accept, #4CAF50); color: #fff; }
#gdpr-btn-reject { background: var(--gdpr-reject, #666); color: #fff; }
#gdpr-btn-manage { background: transparent; color: var(--gdpr-text, #fff); border: 1px solid var(--gdpr-text, #fff); }

/* ========== Overlay ========== */
.gdpr-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
}
.gdpr-overlay.show { display: block; }

/* ========== Preferences Modal ========== */
.gdpr-prefs {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gdpr-bg, #1a1a2e);
    color: var(--gdpr-text, #fff);
    border-radius: 10px;
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 100001;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.gdpr-prefs.show { display: block; }

.gdpr-prefs__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.gdpr-prefs__header h3 { margin: 0; font-size: 1.15rem; }
#gdpr-prefs-close {
    background: none; border: none; color: var(--gdpr-text, #fff);
    font-size: 1.6rem; cursor: pointer; padding: 0; line-height: 1;
}

.gdpr-prefs__body {
    padding: 0.5rem 1.5rem;
}

/* ========== Toggle Rows ========== */
.gdpr-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    gap: 1rem;
}
.gdpr-toggle-row:last-child { border-bottom: none; }

.gdpr-toggle-info { flex: 1; }
.gdpr-toggle-info strong { display: block; margin-bottom: 0.2rem; font-size: 0.95rem; }
.gdpr-toggle-info p { margin: 0; font-size: 0.82rem; opacity: 0.7; line-height: 1.4; }

/* ========== Toggle Switch ========== */
.gdpr-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}
.gdpr-switch input { opacity: 0; width: 0; height: 0; }
.gdpr-slider {
    position: absolute;
    inset: 0;
    background: #555;
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.25s;
}
.gdpr-slider::before {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
}
.gdpr-switch input:checked + .gdpr-slider {
    background: var(--gdpr-accept, #4CAF50);
}
.gdpr-switch input:checked + .gdpr-slider::before {
    transform: translateX(20px);
}
.gdpr-switch input:disabled + .gdpr-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== Prefs Footer ========== */
.gdpr-prefs__footer {
    display: flex;
    gap: 0.6rem;
    padding: 1.2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}
.gdpr-prefs__footer button {
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    flex: 1;
    transition: opacity 0.2s;
}
.gdpr-prefs__footer button:hover { opacity: 0.85; }
#gdpr-prefs-accept { background: var(--gdpr-accept, #4CAF50); color: #fff; }
#gdpr-prefs-reject { background: var(--gdpr-reject, #666); color: #fff; }
#gdpr-prefs-save { background: transparent; color: var(--gdpr-text, #fff); border: 1px solid var(--gdpr-text, #fff); }

/* ========== Mobile ========== */
@media (max-width: 600px) {
    #gdpr-banner .gdpr-inner { flex-direction: column; text-align: center; }
    #gdpr-banner .gdpr-btns { justify-content: center; width: 100%; }
    #gdpr-banner button { flex: 1; }

    .gdpr-prefs { width: 95%; }
    .gdpr-prefs__footer { flex-direction: column; }
}
