/* ============================================================
   Lucid Nepal — Cookie Consent Banner
   Matches theme: --coral #E85D5D  --dark #0A0A0A  --gray #1A1A1A
   ============================================================ */

:root {
    --lcc-coral: #E85D5D;
    --lcc-dark:  #0A0A0A;
    --lcc-gray:  #1A1A1A;
    --lcc-light: #B8B8B8;
}

/* ── Banner ── */
.lucid-cc-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 860px;
    background: var(--lcc-gray);
    border: 1px solid rgba(232,93,93,.25);
    border-left: 3px solid var(--lcc-coral);
    box-shadow: 0 8px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(232,93,93,.08);
    z-index: 999999;
    animation: lucid-cc-slide-up .4s cubic-bezier(.16,1,.3,1) both;
}

@keyframes lucid-cc-slide-up {
    from { opacity:0; transform: translateX(-50%) translateY(20px); }
    to   { opacity:1; transform: translateX(-50%) translateY(0); }
}

.lucid-cc-banner.lucid-cc-top {
    bottom: auto;
    top: 1.5rem;
    animation-name: lucid-cc-slide-down;
}
@keyframes lucid-cc-slide-down {
    from { opacity:0; transform: translateX(-50%) translateY(-20px); }
    to   { opacity:1; transform: translateX(-50%) translateY(0); }
}

.lucid-cc-banner.lucid-cc-center {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    animation-name: lucid-cc-fade-in;
}
@keyframes lucid-cc-fade-in {
    from { opacity:0; }
    to   { opacity:1; }
}

/* Center-mode overlay */
.lucid-cc-banner.lucid-cc-center::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: -1;
}

.lucid-cc-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
}

@media (max-width: 700px) {
    .lucid-cc-inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .lucid-cc-icon { display: none; }
    .lucid-cc-actions {
        flex-direction: column;
    }
    .lucid-cc-btn { width: 100%; text-align: center; }
}

/* ── Icon ── */
.lucid-cc-icon svg {
    width: 36px;
    height: 36px;
    color: var(--lcc-coral);
    flex-shrink: 0;
}

/* ── Text ── */
.lucid-cc-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 .35rem;
}

.lucid-cc-desc {
    font-size: .82rem;
    color: var(--lcc-light);
    line-height: 1.6;
    margin: 0 0 .85rem;
}

.lucid-cc-desc a {
    color: var(--lcc-coral);
    text-decoration: underline;
}
.lucid-cc-desc a:hover { color: #fff; }

/* ── Toggles ── */
.lucid-cc-toggles {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.lucid-cc-toggle-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
}

.lucid-cc-toggle-label {
    font-size: .78rem;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
}

.lucid-cc-toggle-note {
    font-size: .72rem;
    color: var(--lcc-light);
}

/* Hide real checkbox */
.lucid-cc-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom toggle pill */
.lucid-cc-toggle {
    display: inline-flex;
    width: 40px;
    height: 22px;
    background: rgba(255,255,255,.1);
    border-radius: 11px;
    border: 1px solid rgba(255,255,255,.15);
    position: relative;
    transition: background .25s, border-color .25s;
    flex-shrink: 0;
}

.lucid-cc-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--lcc-light);
    transition: transform .25s, background .25s;
}

/* Checked state */
.lucid-cc-checkbox:checked + .lucid-cc-toggle {
    background: var(--lcc-coral);
    border-color: var(--lcc-coral);
}
.lucid-cc-checkbox:checked + .lucid-cc-toggle .lucid-cc-toggle-knob {
    transform: translateX(18px);
    background: #fff;
}

/* Locked (Essential — always on) */
.lucid-cc-toggle--locked {
    background: rgba(232,93,93,.3);
    border-color: rgba(232,93,93,.4);
    cursor: not-allowed;
    opacity: .7;
}
.lucid-cc-toggle--locked .lucid-cc-toggle-knob {
    transform: translateX(18px);
    background: var(--lcc-coral);
}

/* Focus ring */
.lucid-cc-checkbox:focus + .lucid-cc-toggle {
    outline: 2px solid var(--lcc-coral);
    outline-offset: 2px;
}

/* ── Buttons ── */
.lucid-cc-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex-shrink: 0;
}

.lucid-cc-btn {
    display: inline-block;
    padding: .65rem 1.4rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all .25s;
    white-space: nowrap;
    text-align: center;
}

.lucid-cc-btn--accept {
    background: var(--lcc-coral);
    color: #fff;
}
.lucid-cc-btn--accept:hover {
    background: #c94e4e;
}

.lucid-cc-btn--essential {
    background: transparent;
    color: var(--lcc-light);
    border: 1px solid rgba(255,255,255,.15);
}
.lucid-cc-btn--essential:hover {
    border-color: var(--lcc-coral);
    color: var(--lcc-coral);
}

.lucid-cc-btn--save {
    background: transparent;
    color: var(--lcc-coral);
    border: 1px solid var(--lcc-coral);
    font-size: .78rem;
    padding: .4rem 1rem;
}
.lucid-cc-btn--save:hover {
    background: var(--lcc-coral);
    color: #fff;
}

/* ── Re-open floating button ── */
.lucid-cc-reopen {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 42px;
    height: 42px;
    background: var(--lcc-gray);
    border: 1px solid rgba(232,93,93,.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    transition: border-color .2s, background .2s;
    box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.lucid-cc-reopen:hover {
    background: var(--lcc-coral);
    border-color: var(--lcc-coral);
}
.lucid-cc-reopen svg {
    width: 20px;
    height: 20px;
    color: var(--lcc-coral);
    transition: color .2s;
}
.lucid-cc-reopen:hover svg {
    color: #fff;
}

/* ── Dismiss animation ── */
.lucid-cc-banner.lucid-cc-hiding {
    animation: lucid-cc-slide-down-out .3s cubic-bezier(.4,0,1,1) forwards;
}
@keyframes lucid-cc-slide-down-out {
    from { opacity:1; transform: translateX(-50%) translateY(0); }
    to   { opacity:0; transform: translateX(-50%) translateY(20px); }
}
