/* ========================================
   PadelWorldClub - Cookie Consent Banner
   Global: all layouts (public, dashboard, clubs, admin)
   ======================================== */

.cb-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 10000;
    background: #1a1a2e;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.cb-banner--visible {
    transform: translateY(0);
}

/* Main bar */
.cb-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.cb-text {
    flex: 1;
    min-width: 280px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    line-height: 1.5;
}
.cb-text a {
    color: #FFD700;
    text-decoration: underline;
}

.cb-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cb-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.cb-btn--accept {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}
.cb-btn--accept:hover { filter: brightness(1.1); }
.cb-btn--essential {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.2);
}
.cb-btn--essential:hover { background: rgba(255,255,255,0.15); }
.cb-btn--settings {
    background: transparent;
    color: rgba(255,255,255,0.5);
    text-decoration: underline;
    padding: 10px 12px;
}
.cb-btn--settings:hover { color: rgba(255,255,255,0.8); }

/* Settings panel */
.cb-settings {
    display: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.cb-settings--open { display: block; }

.cb-settings__title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px;
}

.cb-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cb-category:last-child { border-bottom: none; }

.cb-category__info { flex: 1; }
.cb-category__name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px;
}
.cb-category__desc {
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    margin: 0;
}

/* Toggle switch */
.cb-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 16px;
}
.cb-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cb-toggle__slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    transition: 0.3s;
}
.cb-toggle__slider::before {
    content: '';
    position: absolute;
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}
.cb-toggle input:checked + .cb-toggle__slider { background: #FFD700; }
.cb-toggle input:checked + .cb-toggle__slider::before { transform: translateX(20px); }
.cb-toggle input:disabled + .cb-toggle__slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cb-settings__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.cb-btn--save {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}
.cb-btn--save:hover { filter: brightness(1.1); }

/* Responsive */
@media (max-width: 600px) {
    .cb-main { flex-direction: column; align-items: stretch; padding: 14px 16px; }
    .cb-text { min-width: 0; }
    .cb-actions { flex-direction: column; }
    .cb-btn { text-align: center; }
    .cb-settings { padding: 16px; }
}
