/* Audienced — Cookie consent styling (SLO).
   Palette mirrors the theme tokens (assets/scss/base/variables.scss):
     primary           #742FFF
     secondary         #FF4F81
     font color        #09031D
     font color light  #5B5B5B
     light bg          #F9F7FC
     light bg pink     #FCF7FA
     dark bg           #101b33
     light border      #EADEED
     gray              #dddddd
     neutral-50        #F2F2F3
     neutral-200       #D0D0D2
*/

/* ── Cookie Banner ── */
.cc-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: #101b33;
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 -8px 32px rgba(9, 3, 29, .25);
    color: #fff;
    animation: ccSlideUp .4s ease;
}

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

.cc-inner {
    max-width: 1340px; margin: 0 auto;
    padding: 24px 40px;
    display: flex; align-items: center; gap: 32px;
}

.cc-text h4 {
    font-family: "Rubik", sans-serif;
    font-size: 21px; font-weight: 600; color: #fff;
    margin: 0 0 6px;
    letter-spacing: -1px;
    line-height: 120%;
}

.cc-text p {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px; color: rgba(255, 255, 255, .72);
    font-weight: 300;
    line-height: 1.65; margin: 0; max-width: 640px;
}

.cc-actions {
    display: flex; gap: 10px; flex-shrink: 0; margin-left: auto;
}

.cc-btn {
    padding: 13px 24px; border-radius: 30px;
    font-family: "Rubik", sans-serif;
    font-size: 14px; font-weight: 600;
    cursor: pointer; border: 1px solid transparent;
    transition: background .4s ease-in-out, color .4s ease-in-out, border-color .4s ease-in-out, background-position .4s ease-in-out;
    white-space: nowrap;
    line-height: 1.2;
    text-indent: -1px;
}

/* Primary action — theme gradient (purple → pink). */
.cc-btn-accept {
    background-image: linear-gradient(to right, #742FFF, #FF4F81, #FF4F81, #742FFF);
    background-size: 300% 100%;
    color: #fff;
}
.cc-btn-accept:hover {
    background-position: 100% 0;
}

/* Ghost on dark surfaces (banner). */
.cc-btn-reject,
.cc-btn-settings {
    background: transparent; color: rgba(255, 255, 255, .75);
    border-color: rgba(255, 255, 255, .25);
}
.cc-btn-reject:hover,
.cc-btn-settings:hover {
    border-color: #FF4F81;
    color: #FF4F81;
}

/* "Save settings" inside the modal sits on a light surface. */
.cc-btn-save {
    background: transparent;
    color: #742FFF;
    border-color: #742FFF;
}
.cc-btn-save:hover {
    background: #742FFF;
    color: #fff;
    border-color: #742FFF;
}

/* ── Cookie Modal ── */
.cc-modal-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(9, 3, 29, .55);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}

.cc-modal {
    background: #fff; border-radius: 20px;
    width: 100%; max-width: 560px; max-height: 85vh;
    display: flex; flex-direction: column;
    box-shadow: 0 24px 56px rgba(9, 3, 29, .25);
    overflow: hidden;
}

.cc-modal-header {
    padding: 24px 28px 16px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid #EADEED;
}

.cc-modal-header h3 {
    font-family: "Rubik", sans-serif;
    font-size: 28px; font-weight: 600; color: #09031D; margin: 0;
    letter-spacing: -2px;
    line-height: 120%;
}

.cc-modal-close {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid #EADEED; background: transparent;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .2s, border-color .2s;
}
.cc-modal-close:hover { background: #F9F7FC; border-color: #742FFF; }
.cc-modal-close svg {
    width: 14px; height: 14px; stroke: #5B5B5B; fill: none;
    stroke-width: 2; stroke-linecap: round;
}

.cc-modal-body {
    padding: 20px 28px; overflow-y: auto; flex: 1;
}

/* Intro paragraph rendered inside the modal body by JS. */
.cc-intro {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px; color: #5B5B5B; line-height: 1.65;
    font-weight: 300;
    margin: 0 0 16px;
}
.cc-intro a {
    color: #742FFF; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.cc-intro a:hover { color: #FF4F81; }

.cc-category {
    padding: 18px 0; border-bottom: 1px solid #EADEED;
}
.cc-category:last-child { border: none; padding-bottom: 0; }

.cc-cat-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 6px;
}

.cc-cat-name {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 15px; font-weight: 600; color: #09031D;
}

.cc-cat-desc {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px; color: #5B5B5B; line-height: 1.6;
    font-weight: 300;
    margin: 0;
}

.cc-cat-badge {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 10px; font-weight: 600; color: #742FFF;
    background: #F9F7FC; padding: 4px 10px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}

/* Toggle switch */
.cc-toggle {
    position: relative; width: 44px; height: 24px; flex-shrink: 0;
}
.cc-toggle input { opacity: 0; width: 0; height: 0; }
.cc-toggle-slider {
    position: absolute; inset: 0; cursor: pointer;
    background: #EADEED; border-radius: 24px;
    transition: background .2s;
}
.cc-toggle-slider::after {
    content: ''; position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: #fff; border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(9, 3, 29, .18);
}
.cc-toggle input:checked + .cc-toggle-slider {
    background: linear-gradient(90deg, #742FFF 0%, #FF4F81 100%);
}
.cc-toggle input:checked + .cc-toggle-slider::after { transform: translateX(20px); }
.cc-toggle input:disabled + .cc-toggle-slider { opacity: .6; cursor: not-allowed; }

.cc-modal-footer {
    padding: 16px 28px 24px;
    display: flex; gap: 10px; justify-content: flex-end;
    border-top: 1px solid #EADEED;
}

/* In the modal, "reject" sits on a light card so swap to grey ghost. */
.cc-modal-footer .cc-btn-reject {
    color: #5B5B5B;
    border-color: #EADEED;
}
.cc-modal-footer .cc-btn-reject:hover {
    background: #F9F7FC;
    color: #09031D;
    border-color: #D0D0D2;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .cc-inner { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px 5%; }
    .cc-actions { margin-left: 0; flex-wrap: wrap; }
    .cc-actions .cc-btn { flex: 1; text-align: center; min-width: 0; }
    .cc-modal-footer { flex-wrap: wrap; }
    .cc-modal-footer .cc-btn { flex: 1; text-align: center; }

    .cc-text h4 { font-size: 18px; letter-spacing: -.5px; }
    .cc-modal-header h3 { font-size: 22px; letter-spacing: -1px; }
}
