/* ============================================================================
   SCELZI PRIVACY CONTROLLER — STYLES  v1.0  (2026-09-23)
   Upload to:  /css/scelzi-privacy.css
   Load with:  <link rel="stylesheet" href="/css/scelzi-privacy.css">

   Every class is prefixed sz- so nothing here can collide with the existing
   site CSS, and every value is explicit so the pages' `* { margin:0; padding:0 }`
   reset cannot strip it. Colors are hardcoded rather than taken from
   --scelzi-red, because not every page on the site declares that variable.
   ========================================================================= */

/* ---------- notice bar ---------------------------------------------------- */

.sz-privacy-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;
    background: #1a1a1a;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
    padding: 1rem 1.5rem;
    display: none;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.sz-privacy-bar.is-open {
    display: block;
    animation: szPrivacySlideUp 0.35s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .sz-privacy-bar.is-open { animation: none; }
}

.sz-privacy-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.sz-privacy-bar-text {
    flex: 1 1 300px;
    margin: 0;
    color: #cfcfcf;
    font-size: 0.85rem;
    line-height: 1.6;
}

.sz-privacy-bar-text a {
    color: #ff5a72;
    text-decoration: underline;
}

.sz-privacy-bar-text a:hover {
    color: #ffffff;
}

.sz-privacy-bar-btns {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.sz-btn {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    line-height: 1.2;
}

.sz-btn-solid {
    background: #C8102E;
    color: #ffffff;
    border: 1px solid #C8102E;
}

.sz-btn-solid:hover {
    background: #A30D25;
    border-color: #A30D25;
}

.sz-btn-ghost {
    background: transparent;
    color: #e6e6e6;
    border: 1px solid #6a6a6a;
}

.sz-btn-ghost:hover {
    border-color: #ffffff;
    color: #ffffff;
}

.sz-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ---------- modal --------------------------------------------------------- */

.sz-privacy-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.62);
    z-index: 2147483100;
}

.sz-privacy-overlay.is-open { display: block; }

.sz-privacy-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 2rem);
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    z-index: 2147483200;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: #333333;
}

.sz-privacy-modal.is-open { display: block; }

.sz-privacy-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 3px solid #C8102E;
}

.sz-privacy-modal-head h3 {
    font-family: 'Oswald', 'Open Sans', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #222222;
    margin: 0;
}

.sz-privacy-close {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #666666;
    padding: 0;
}

.sz-privacy-close:hover { background: #e0e0e0; }

.sz-privacy-close:focus-visible {
    outline: 2px solid #C8102E;
    outline-offset: 2px;
}

.sz-privacy-modal-body { padding: 1.5rem; }

.sz-privacy-modal-body p {
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 1.25rem 0;
}

/* ---------- opt-out row --------------------------------------------------- */

.sz-privacy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem;
    background: #f7f7f7;
    border-left: 4px solid #C8102E;
    border-radius: 8px;
    margin: 0 0 1.25rem 0;
}

.sz-privacy-row-label strong {
    display: block;
    color: #222222;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.35rem 0;
}

.sz-privacy-row-label span {
    display: block;
    font-size: 0.85rem;
    color: #777777;
    line-height: 1.5;
}

/* ---------- switch -------------------------------------------------------- */

.sz-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
    margin: 0;
}

.sz-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.sz-switch-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #c4c4c4;
    border-radius: 28px;
    transition: background 0.25s ease;
    pointer-events: none;
}

.sz-switch-track::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.sz-switch input:checked + .sz-switch-track {
    background: #C8102E;
}

.sz-switch input:checked + .sz-switch-track::before {
    transform: translateX(24px);
}

.sz-switch input:focus-visible + .sz-switch-track {
    outline: 2px solid #C8102E;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .sz-switch-track,
    .sz-switch-track::before { transition: none; }
}

/* ---------- notes --------------------------------------------------------- */

.sz-privacy-gpc {
    background: #fff5f5;
    border-left: 4px solid #C8102E;
    border-radius: 4px;
    padding: 0.9rem 1rem;
    font-size: 0.88rem !important;
    color: #7a1f27 !important;
    margin: 0 0 1.25rem 0 !important;
}

.sz-privacy-status {
    font-size: 0.88rem !important;
    color: #2E7D4F !important;
    font-weight: 600;
    margin: 0 0 1.25rem 0 !important;
}

.sz-privacy-fine {
    font-size: 0.8rem !important;
    color: #888888 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.sz-privacy-fine a {
    color: #C8102E;
    text-decoration: underline;
}

[hidden] { display: none !important; }

/* ---------- small screens ------------------------------------------------- */

@media (max-width: 600px) {
    .sz-privacy-bar { padding: 1rem; }

    .sz-privacy-bar-btns {
        width: 100%;
        flex-direction: column;
    }

    .sz-btn { width: 100%; }

    .sz-privacy-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
