/* ═══════════════════════════════════════════════════════════════════════
   COOKIE CONSENT BANNER (shared across all pages)
   variables (--ink, --cyan, --font-display, --font-mono) come from style.css
   ═══════════════════════════════════════════════════════════════════════ */

#cookie-consent {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    background: var(--ink);
    color: white;
    border-radius: 6px;
    box-shadow: 0 24px 60px -12px rgba(7, 17, 31, 0.55), 0 0 0 1px rgba(255,255,255,0.08);
    padding: 24px 28px;
    z-index: 9000;
    transform: translateY(140%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s;
}
#cookie-consent.visible {
    transform: translateY(0);
    opacity: 1;
}
.cc-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.cc-icon {
    width: 36px;
    height: 36px;
    background: rgba(10,166,194,0.12);
    border: 1px solid rgba(10,166,194,0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    flex-shrink: 0;
}
.cc-icon svg {
    width: 18px;
    height: 18px;
}
.cc-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: white;
}
.cc-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    background: rgba(10,166,194,0.15);
    color: var(--cyan);
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.cc-body {
    font-size: 12.5px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 18px;
}
.cc-body a {
    color: var(--cyan);
    border-bottom: 1px solid rgba(10,166,194,0.4);
    padding-bottom: 1px;
    transition: opacity 0.2s;
}
.cc-body a:hover {
    opacity: 0.8;
}
.cc-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.cc-btn {
    padding: 10px 18px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 5px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}
.cc-btn.primary {
    background: white;
    color: var(--ink);
}
.cc-btn.primary:hover {
    background: var(--cyan);
    color: white;
}
.cc-btn.ghost {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.2);
}
.cc-btn.ghost:hover {
    border-color: rgba(255,255,255,0.5);
    color: white;
}
.cc-btn.text {
    background: transparent;
    color: rgba(255,255,255,0.6);
    padding: 10px 8px;
    margin-left: auto;
    font-size: 12px;
}
.cc-btn.text:hover {
    color: white;
}

/* Settings panel (expanded) */
.cc-settings {
    display: none;
    margin: 16px 0 18px;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
#cookie-consent.expanded .cc-settings {
    display: block;
}
.cc-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cc-row:last-child {
    border-bottom: none;
}
.cc-row-text {
    flex: 1;
}
.cc-row-name {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cc-row-required {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.1em;
    font-weight: 500;
}
.cc-row-desc {
    font-size: 11.5px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}
.cc-toggle {
    flex-shrink: 0;
    width: 38px;
    height: 22px;
    background: rgba(255,255,255,0.15);
    border-radius: 22px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 2px;
}
.cc-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
}
.cc-toggle.on {
    background: var(--cyan);
}
.cc-toggle.on::after {
    transform: translateX(16px);
}
.cc-toggle.locked {
    background: rgba(10,166,194,0.4);
    cursor: not-allowed;
    opacity: 0.7;
}
.cc-toggle.locked::after {
    transform: translateX(16px);
}

@media (max-width: 600px) {
    #cookie-consent {
        bottom: max(12px, env(safe-area-inset-bottom));
        left: max(12px, env(safe-area-inset-left));
        right: max(12px, env(safe-area-inset-right));
        padding: 18px 20px;
        border-radius: 12px;
    }
    .cc-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .cc-btn {
        width: 100%;
        justify-content: center;
    }
    .cc-btn.text {
        margin-left: 0;
    }
}
