/* ─── WP Soundscape Frontend v3.1 ─── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=UnifrakturMaguntia&family=IM+Fell+English:ital@0;1&display=swap');

/* ══ CONSENT PORTAL ══════════════════════════════════ */
#wpss-portal-overlay {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.55s ease;
}
#wpss-portal-overlay.wpss-hidden { opacity: 0; pointer-events: none; }

#wpss-portal-backdrop {
    position: absolute; inset: 0;
    backdrop-filter: blur(var(--wpss-blur, 8px));
    -webkit-backdrop-filter: blur(var(--wpss-blur, 8px));
    background: rgba(0,0,0,0.5);
}

#wpss-portal-box {
    position: relative; z-index: 1;
    padding: 46px 50px; border-radius: 16px; text-align: center;
    max-width: 440px; width: 90%;
    animation: wpssSlideUp 0.45s cubic-bezier(.16,1,.3,1) both;
}
@keyframes wpssSlideUp {
    from { opacity:0; transform:translateY(22px) scale(0.97); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}

/* DARK */
[data-wpss-theme="dark"] #wpss-portal-box {
    background: rgba(9,9,18,0.96);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 30px 70px rgba(0,0,0,0.75);
}
/* LIGHT */
[data-wpss-theme="light"] #wpss-portal-box {
    background: rgba(255,255,255,0.97);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 22px 55px rgba(0,0,0,0.13);
}
/* GOTHIC */
[data-wpss-theme="gothic"] #wpss-portal-backdrop { background: rgba(0,0,0,0.8); }
[data-wpss-theme="gothic"] #wpss-portal-box {
    background: #000; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0; box-shadow: none; padding: 50px 54px 46px;
}
[data-wpss-theme="gothic"] #wpss-portal-box::before {
    content: ''; position: absolute; top: 10px; left: 10px;
    width: 17px; height: 17px;
    border-top: 1px solid rgba(255,255,255,0.32);
    border-left: 1px solid rgba(255,255,255,0.32);
}
[data-wpss-theme="gothic"] #wpss-portal-box::after {
    content: ''; position: absolute; bottom: 10px; right: 10px;
    width: 17px; height: 17px;
    border-bottom: 1px solid rgba(255,255,255,0.32);
    border-right: 1px solid rgba(255,255,255,0.32);
}

/* ICON */
.wpss-portal-icon { display: block; margin: 0 auto 16px; }
[data-wpss-theme="dark"]  .wpss-portal-icon { color: rgba(255,255,255,0.6); }
[data-wpss-theme="light"] .wpss-portal-icon { color: rgba(0,0,0,0.4); }

/* GOTHIC EYEBROW */
.wpss-portal-eyebrow {
    display: block; font-family: 'Syne', sans-serif;
    font-size: 9.5px; font-weight: 600; letter-spacing: 4px;
    text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 14px;
}

/* VISUALIZER */
.wpss-portal-viz {
    display: flex; align-items: flex-end; justify-content: center;
    gap: 4px; height: 24px; margin-bottom: 18px;
}
.wpss-portal-viz-bar { width: 3px; border-radius: 2px; animation: wpssBar 1.3s ease infinite; }
.wpss-portal-viz-bar:nth-child(1) { animation-delay: 0s;    height: 35%; }
.wpss-portal-viz-bar:nth-child(2) { animation-delay: .10s;  height: 65%; }
.wpss-portal-viz-bar:nth-child(3) { animation-delay: .20s;  height: 90%; }
.wpss-portal-viz-bar:nth-child(4) { animation-delay: .15s;  height: 55%; }
.wpss-portal-viz-bar:nth-child(5) { animation-delay: .05s;  height: 75%; }
.wpss-portal-viz-bar:nth-child(6) { animation-delay: .25s;  height: 45%; }
.wpss-portal-viz-bar:nth-child(7) { animation-delay: .08s;  height: 30%; }
@keyframes wpssBar {
    0%,100% { transform: scaleY(.22); }
    50%      { transform: scaleY(1);  }
}
[data-wpss-theme="dark"]   .wpss-portal-viz-bar { background: rgba(255,255,255,0.4); }
[data-wpss-theme="light"]  .wpss-portal-viz-bar { background: rgba(0,0,0,0.18); }
[data-wpss-theme="gothic"] .wpss-portal-viz-bar { background: rgba(255,255,255,0.16); border-radius: 0; }

/* TITLE */
#wpss-portal-title {
    font-family: 'Syne', sans-serif; font-weight: 800;
    font-size: 22px; margin: 0 0 10px; letter-spacing: -0.4px; line-height: 1.15;
}
[data-wpss-theme="dark"]  #wpss-portal-title { color: #e8eaf4; }
[data-wpss-theme="light"] #wpss-portal-title { color: #0f0f1a; }
[data-wpss-theme="gothic"] #wpss-portal-title {
    font-family: 'UnifrakturMaguntia', serif; font-weight: 400;
    font-size: 36px; color: #fff; letter-spacing: 1px; line-height: 1.1; margin-bottom: 7px;
}

/* DIVIDER */
.wpss-portal-divider {
    display: block; width: 32px; height: 1px;
    background: rgba(255,255,255,0.2); margin: 0 auto 16px;
}

/* MESSAGE */
#wpss-portal-msg { font-size: 13.5px; line-height: 1.65; margin: 0 0 26px; }
[data-wpss-theme="dark"]  #wpss-portal-msg { color: rgba(180,185,210,0.72); font-family: 'Syne', sans-serif; }
[data-wpss-theme="light"] #wpss-portal-msg { color: rgba(60,65,90,0.62);   font-family: 'Syne', sans-serif; }
[data-wpss-theme="gothic"] #wpss-portal-msg {
    font-family: 'IM Fell English', serif; font-style: italic;
    font-size: 12.5px; color: rgba(255,255,255,0.32); margin-bottom: 28px;
}

/* BUTTONS */
.wpss-portal-btns { display: flex; flex-direction: column; gap: 9px; }
#wpss-btn-accept,
#wpss-btn-decline {
    border-radius: 999px; padding: 12px 26px;
    font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13.5px;
    cursor: pointer; transition: all 0.17s; letter-spacing: 0.2px; border: none;
}
/* dark */
[data-wpss-theme="dark"] #wpss-btn-accept  { background: #fff; color: #000; }
[data-wpss-theme="dark"] #wpss-btn-accept:hover { background: #e2e5f0; }
[data-wpss-theme="dark"] #wpss-btn-decline { background: transparent; color: rgba(255,255,255,0.26); border: 1px solid rgba(255,255,255,0.08); font-size: 12px; }
[data-wpss-theme="dark"] #wpss-btn-decline:hover { color: rgba(255,255,255,0.5); }
/* light */
[data-wpss-theme="light"] #wpss-btn-accept  { background: #0f0f1a; color: #fff; }
[data-wpss-theme="light"] #wpss-btn-accept:hover { background: #1e1e2e; }
[data-wpss-theme="light"] #wpss-btn-decline { background: transparent; color: rgba(0,0,0,0.28); border: 1px solid rgba(0,0,0,0.08); font-size: 12px; }
[data-wpss-theme="light"] #wpss-btn-decline:hover { color: rgba(0,0,0,0.5); }
/* gothic */
[data-wpss-theme="gothic"] #wpss-btn-accept  { background: #fff; color: #000; border-radius: 999px; font-size: 10.5px; letter-spacing: 2.5px; text-transform: uppercase; padding: 13px 30px; }
[data-wpss-theme="gothic"] #wpss-btn-accept:hover { background: #e5e5e5; transform: none; }
[data-wpss-theme="gothic"] #wpss-btn-decline { background: transparent; color: rgba(255,255,255,0.26); border: 1px solid rgba(255,255,255,0.09); border-radius: 999px; font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; padding: 11px 26px; }
[data-wpss-theme="gothic"] #wpss-btn-decline:hover { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.26); }

/* ══ FLOATING CONTROLLER ═════════════════════════════ */
#wpss-controls {
    position: fixed; bottom: 20px; right: 20px; z-index: 9999;
    display: flex; flex-direction: column; align-items: flex-end; gap: 7px;
    font-family: 'Syne', sans-serif;
}
#wpss-toggle-btn {
    width: 42px; height: 42px; border-radius: 50%; border: none;
    background: #fff; color: #000; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
#wpss-toggle-btn svg { width: 18px; height: 18px; transition: opacity 0.2s; }
#wpss-toggle-btn:hover { transform: scale(1.07); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
#wpss-toggle-btn.muted { background: #18182a; color: rgba(255,255,255,0.32); }

#wpss-volume-panel {
    background: rgba(9,9,20,0.96); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 11px; padding: 12px 14px; min-width: 180px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.5); display: none;
    backdrop-filter: blur(12px);
}
#wpss-volume-panel.visible { display: block; animation: wpssFadeUp 0.17s ease; }
@keyframes wpssFadeUp {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wpss-vol-row { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.wpss-vol-row:last-child { margin-bottom: 0; }
.wpss-vol-icon { width: 15px; height: 15px; color: rgba(255,255,255,0.28); flex-shrink: 0; }
.wpss-vol-icon svg { width: 15px; height: 15px; }
.wpss-vol-label {
    color: rgba(255,255,255,0.32); font-size: 9.5px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.8px; flex: 1;
}
.wpss-mini-range {
    -webkit-appearance: none; width: 72px; height: 3px;
    background: rgba(255,255,255,0.1); border-radius: 2px; outline: none; cursor: pointer;
}
.wpss-mini-range::-webkit-slider-thumb {
    -webkit-appearance: none; width: 10px; height: 10px;
    border-radius: 50%; background: #fff; cursor: pointer;
}
