/* ===============================
   Spinomera Cookie Consent
   =============================== */

:root {
    --cc-bg: rgba(12, 14, 22, 0.95);
    --cc-panel: #141826;
    --cc-border: rgba(255, 255, 255, 0.08);
    --cc-text: rgba(255, 255, 255, 0.95);
    --cc-muted: rgba(255, 255, 255, 0.65);
    --cc-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    --cc-radius: 16px;

    /* Spinomera gold accent */
    --cc-primary: #d6b35e;
    --cc-primary-dark: #c3a14c;
    --cc-primary-text: #111;
}

.cc-wrapper {
    position: relative;
    z-index: 9999;
    font-family: inherit;
}

/* ===============================
   Bottom Bar
   =============================== */

.cc-bar {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 10000;
    background: var(--cc-bg);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius);
    box-shadow: var(--cc-shadow);
    backdrop-filter: blur(12px);
    animation: ccSlideUp 0.35s ease;
}

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

.cc-bar[hidden] {
    display: none !important;
}

.cc-bar__content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding: 18px 22px;
    align-items: center;
}

.cc-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--cc-text);
}

.cc-desc {
    margin: 6px 0 10px;
    color: var(--cc-muted);
    font-size: 13px;
    line-height: 1.4;
    max-width: 60ch;
}

.cc-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-link {
    color: var(--cc-primary);
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}

.cc-link:hover {
    text-decoration: underline;
}

.cc-dot {
    color: rgba(255,255,255,0.3);
}

.cc-bar__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===============================
   Buttons
   =============================== */

.cc-btn {
    border: 1px solid var(--cc-border);
    background: rgba(255,255,255,0.05);
    color: var(--cc-text);
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cc-btn:hover {
    background: rgba(255,255,255,0.12);
}

.cc-btn--primary {
    background: var(--cc-primary);
    border: none;
    color: var(--cc-primary-text);
}

.cc-btn--primary:hover {
    background: var(--cc-primary-dark);
}

/* ===============================
   Modal
   =============================== */

.cc-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.cc-modal.is-open {
    display: block;
}

.cc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

.cc-modal__panel {
    position: relative;
    max-width: 680px;
    margin: 8vh auto 0;
    background: var(--cc-panel);
    border-radius: 20px;
    border: 1px solid var(--cc-border);
    box-shadow: var(--cc-shadow);
    overflow: hidden;
}

.cc-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 22px;
    border-bottom: 1px solid var(--cc-border);
}

.cc-modal__title {
    font-size: 18px;
    font-weight: 800;
    color: var(--cc-text);
}

.cc-modal__subtitle {
    margin-top: 5px;
    font-size: 13px;
    color: var(--cc-muted);
}

.cc-iconbtn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--cc-border);
    background: rgba(255,255,255,0.05);
    color: var(--cc-text);
    font-size: 22px;
    cursor: pointer;
}

.cc-iconbtn:hover {
    background: rgba(255,255,255,0.15);
}

.cc-modal__body {
    padding: 20px;
}

.cc-group {
    border: 1px solid var(--cc-border);
    border-radius: 14px;
    padding: 16px;
    margin-top: 14px;
    background: rgba(255,255,255,0.03);
}

.cc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cc-row__title {
    font-weight: 700;
    color: var(--cc-text);
}

.cc-row__desc {
    margin-top: 5px;
    font-size: 13px;
    color: var(--cc-muted);
    max-width: 55ch;
}

.cc-toggle__pill {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    border: 1px solid var(--cc-border);
}

/* ===============================
   Toggle Switch
   =============================== */

.cc-switch {
    position: relative;
    width: 54px;
    height: 30px;
}

.cc-switch input {
    display: none;
}

.cc-slider {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s ease;
}

.cc-slider:before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 4px;
    top: 4px;
    background: white;
    border-radius: 50%;
    transition: 0.2s ease;
}

.cc-switch input:checked + .cc-slider {
    background: var(--cc-primary);
}

.cc-switch input:checked + .cc-slider:before {
    transform: translateX(24px);
    background: #fff;
}

/* ===============================
   Footer
   =============================== */

.cc-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 22px;
    border-top: 1px solid var(--cc-border);
}

.cc-footnote {
    margin-top: 15px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 768px) {
    .cc-bar__content {
        grid-template-columns: 1fr;
    }

    .cc-bar__actions {
        justify-content: flex-start;
    }

    .cc-modal__panel {
        margin: 6vh 15px 0;
    }

    .cc-row {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =====================================
   Floating Cookie Preferences Chip
   ===================================== */

.cc-chip{
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    border-radius: 999px;

    display: none; /* shown by JS after decision */
    place-items: center;

    background: rgba(18, 21, 32, 0.70);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);

    color: rgba(255,255,255,0.90);
    cursor: pointer;

    transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
    z-index: 9999;
}

.cc-chip:hover{
    transform: translateY(-1px);
    background: rgba(18, 21, 32, 0.85);
    border-color: rgba(214,179,94,0.26);
    box-shadow: 0 22px 52px rgba(0,0,0,0.55), 0 0 18px rgba(214,179,94,0.10);
}

.cc-chip:active{ transform: translateY(0); }

.cc-chip__icon{
    display: block;
    opacity: 0.95;
}

.cc-chip__dot{
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d6b35e; /* gold dot for limited mode */
    box-shadow: 0 0 0 3px rgba(18, 21, 32, 0.95), 0 0 14px rgba(214,179,94,0.25);
    display: none; /* JS toggles this */
}
