/* ===================================================
   SHOUTcast Widgets V10 — shared site styles
   Used by pages with <body class="sw-home"> together with sw-nav.php.
=================================================== */

/* TOKENS */
:root {
    --sw-bg: #0b0b0d;
    --sw-bg-2: #111114;
    --sw-surface: #16161a;
    --sw-surface-2: #1d1d22;
    --sw-line: rgba(255,255,255,0.08);
    --sw-line-strong: rgba(255,255,255,0.14);
    --sw-text: #f4f4f5;
    --sw-muted: #a1a1aa;
    --sw-faint: #71717a;
    --sw-accent: #ff6600;
    --sw-accent-2: #ff8a3d;
    --sw-accent-soft: rgba(255,102,0,0.12);
    --sw-green: #22c55e;
    --sw-red: #f87171;
    --sw-radius: 14px;
    --sw-radius-lg: 20px;
    --sw-max: 1200px;
    --sw-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --sw-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sw-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* RESET (overrides legacy theme CSS loaded by top.php) */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { margin: 0 !important; padding: 0 !important; max-width: 100%; overflow-x: hidden; }
body.sw-home { background: var(--sw-bg); color: var(--sw-text); font-family: var(--sw-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.sw-home h1, .sw-home h2, .sw-home h3, .sw-home h4 { font-family: var(--sw-head); color: var(--sw-text); margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; text-transform: none; }
.sw-home p { margin: 0; }
.sw-home img { max-width: 100%; height: auto; display: block; }
.sw-home a { text-decoration: none; }
.sw-home ul { margin: 0; padding: 0; list-style: none; }
.sw-home :focus-visible { outline: 2px solid var(--sw-accent); outline-offset: 3px; border-radius: 6px; }

.sw-wrap { width: 100%; max-width: var(--sw-max); margin: 0 auto; padding: 0 24px; }
.sw-section { padding: 110px 0; position: relative; }
.sw-section--alt { background: var(--sw-bg-2); border-top: 1px solid var(--sw-line); border-bottom: 1px solid var(--sw-line); }

.sw-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sw-accent); }
.sw-eyebrow--pill { background: var(--sw-accent-soft); border: 1px solid rgba(255,102,0,0.35); padding: 7px 14px; border-radius: 999px; }
.sw-new { background: var(--sw-accent); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; padding: 3px 7px; border-radius: 5px; }

.sw-head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.sw-head h2 { font-size: clamp(32px, 4.4vw, 48px); margin: 16px 0 18px; }
.sw-head p { color: var(--sw-muted); font-size: 18px; }
.sw-accent { color: var(--sw-accent); }

/* BUTTONS */
.sw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 28px; border-radius: 10px; font-weight: 600; font-size: 16px; line-height: 1; font-family: var(--sw-body); cursor: pointer; border: 0; transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, color .18s; white-space: nowrap; }
.sw-btn--primary { background: var(--sw-accent); color: #fff !important; box-shadow: 0 8px 28px rgba(255,102,0,0.35); }
.sw-btn--primary:hover { background: #ff7a1f; transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255,102,0,0.45); }
.sw-btn--ghost { background: rgba(255,255,255,0.04); color: var(--sw-text) !important; border: 1px solid var(--sw-line-strong); }
.sw-btn--ghost:hover { border-color: var(--sw-accent); color: var(--sw-accent) !important; }
.sw-btn--sm { padding: 10px 16px; font-size: 14px; border-radius: 9px; }
.sw-btn small { font-weight: 500; opacity: .8; font-size: 14px; }
.sw-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* HEADER (markup in sw-nav.php) */
.boxed { width: 100% !important; max-width: 100% !important; box-shadow: none !important; }
.loading-overlay, #header, .top { display: none !important; }
#fl-header { position: sticky; top: 0; z-index: 9000; background: rgba(11,11,13,0.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--sw-line); font-family: var(--sw-body); }
.fl-bar { max-width: 1300px; margin: 0 auto; padding: 0 24px; height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
/* The logo PNG is 1536x1024 with the artwork in a ~980x370 box at (290,250);
   crop the transparent padding by sizing everything off the visible height --lh. */
.fl-logo-link, .fl-dh-logo-crop { --lh: 54px; position: relative; display: block; flex-shrink: 0; overflow: hidden; height: var(--lh); width: calc(var(--lh) * 2.65); }
.sw-home .fl-logo-link img, .sw-home .fl-dh-logo-crop img { position: absolute; display: block; max-width: none; width: auto; height: calc(var(--lh) * 2.768); left: calc(var(--lh) * -0.784); top: calc(var(--lh) * -0.676); }
.fl-nav { display: flex; align-items: center; gap: 6px; }
.fl-nav #mainnav { display: flex; }
.fl-nav #mainnav .menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.fl-nav #mainnav .menu > li { position: relative; }
.fl-nav #mainnav .menu > li > a { display: block; padding: 9px 12px; color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500; border-radius: 8px; white-space: nowrap; transition: all .2s; }
.fl-nav #mainnav .menu > li > a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.fl-nav #mainnav .submenu { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: var(--sw-surface); border: 1px solid var(--sw-line-strong); border-radius: 12px; min-width: 230px; padding: 8px; list-style: none; margin: 0; box-shadow: 0 18px 50px rgba(0,0,0,0.6); z-index: 9999; }
.fl-nav #mainnav .menu > li:hover > .submenu { display: block; }
.fl-nav #mainnav .submenu li a { display: block; padding: 9px 12px; font-size: 13.5px; color: rgba(255,255,255,0.75); border-radius: 8px; transition: all .15s; }
.fl-nav #mainnav .submenu li a:hover { color: var(--sw-accent); background: var(--sw-accent-soft); }
.fl-sep { width: 1px; height: 22px; background: var(--sw-line-strong); margin: 0 6px; }
.fl-login { color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500; padding: 9px 12px; }
.fl-login:hover { color: #fff; }
.fl-cta { background: var(--sw-accent); color: #fff !important; padding: 10px 18px; border-radius: 9px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .2s; }
.fl-cta:hover { background: #ff7a1f; }
.fl-ham { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 42px; height: 42px; border-radius: 9px; background: rgba(255,255,255,0.05); border: 1px solid var(--sw-line-strong); cursor: pointer; }
.fl-ham span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: all .25s; }
.fl-ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fl-ham.open span:nth-child(2) { opacity: 0; }
.fl-ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.fl-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9998; backdrop-filter: blur(3px); }
.fl-backdrop.open { display: block; }
.fl-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 310px; max-width: 88vw; background: var(--sw-bg-2); z-index: 9999; border-left: 1px solid var(--sw-line-strong); display: flex; flex-direction: column; transform: translateX(110%); transition: transform .3s cubic-bezier(.4,0,.2,1); font-family: var(--sw-body); }
.fl-drawer.open { transform: translateX(0); }
.fl-dh { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--sw-line); }
.fl-dh-logo-crop { --lh: 40px; }
.fl-dh-close { background: transparent; border: 1px solid var(--sw-line-strong); color: #fff; width: 36px; height: 36px; border-radius: 8px; font-size: 20px; cursor: pointer; }
.fl-ds { flex: 1; overflow-y: auto; padding: 6px 0; }
.fl-di { border-bottom: 1px solid var(--sw-line); }
.fl-di-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; cursor: pointer; }
.fl-di-row a { color: rgba(255,255,255,0.9); font-size: 15px; font-weight: 500; flex: 1; text-decoration: none; }
.fl-di-arrow { color: var(--sw-accent); font-size: 18px; transition: transform .2s; }
.fl-di-row.active .fl-di-arrow { transform: rotate(90deg); }
.fl-di-sub { display: none; background: rgba(0,0,0,0.25); }
.fl-di-sub.open { display: block; }
.fl-di-sub a { display: block; padding: 10px 18px 10px 32px; color: rgba(255,255,255,0.65); font-size: 14px; text-decoration: none; }
.fl-di-sub a:hover { color: var(--sw-accent); }
.fl-df { padding: 16px 18px; border-top: 1px solid var(--sw-line); display: grid; gap: 10px; }
.fl-df a { display: block; text-align: center; padding: 13px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.fl-df-login { border: 1px solid var(--sw-line-strong); color: #fff; }
.fl-df-cta { background: var(--sw-accent); color: #fff; }

/* CARDS */
.sw-grid { display: grid; gap: 16px; }
.sw-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sw-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sw-grid--4 { grid-template-columns: repeat(4, 1fr); }
.sw-card { background: var(--sw-surface); border: 1px solid var(--sw-line); border-radius: var(--sw-radius); padding: 26px; transition: border-color .2s, transform .2s, background .2s; }
.sw-card:hover { border-color: rgba(255,102,0,0.4); transform: translateY(-3px); background: var(--sw-surface-2); }
.sw-card h3 { font-size: 19px; margin: 16px 0 8px; letter-spacing: -0.01em; }
.sw-card p { color: var(--sw-muted); font-size: 15px; line-height: 1.6; }
.sw-ico { width: 44px; height: 44px; border-radius: 11px; background: var(--sw-accent-soft); border: 1px solid rgba(255,102,0,0.28); display: flex; align-items: center; justify-content: center; font-size: 21px; }

.sw-checks li { position: relative; padding: 7px 0 7px 30px; color: #d4d4d8; font-size: 15.5px; }
.sw-checks li::before { content: ''; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--sw-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6600' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat; }
.sw-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; color: var(--sw-accent) !important; font-weight: 600; transition: gap .15s; }
.sw-link:hover { gap: 10px; }
.sw-center { text-align: center; margin-top: 40px; }

/* FAQ */
.sw-faq { max-width: 820px; margin: 0 auto; }
.sw-faq details { border-bottom: 1px solid var(--sw-line); }
.sw-faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-family: var(--sw-head); font-size: 18.5px; font-weight: 600; color: var(--sw-text); }
.sw-faq summary::-webkit-details-marker { display: none; }
.sw-faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--sw-accent); transition: transform .2s; }
.sw-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.sw-faq details p { color: var(--sw-muted); padding: 0 40px 22px 0; font-size: 16px; }
.sw-faq details a { color: var(--sw-accent); }

/* CTA PANEL */
.sw-cta { position: relative; overflow: hidden; text-align: center; border-radius: 28px; padding: 80px 30px; background: radial-gradient(ellipse 60% 90% at 50% 0%, rgba(255,102,0,0.35), transparent 70%), var(--sw-surface); border: 1px solid rgba(255,102,0,0.3); }
.sw-cta h2 { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 16px; }
.sw-cta p { color: var(--sw-muted); font-size: 18px; max-width: 620px; margin: 0 auto 32px; }
.sw-cta .sw-actions { margin: 0 0 18px; }
.sw-cta-login { font-size: 15px; color: var(--sw-faint); }
.sw-cta-login a { color: var(--sw-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* REVEAL ON SCROLL (driven by sw-nav.php) */
.sw-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.sw-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .sw-reveal { opacity: 1; transform: none; transition: none; }
    .sw-card, .sw-btn { transition: none; }
}

/* RESPONSIVE */
@media (max-width: 1080px) {
    .fl-nav { display: none; }
    .fl-ham { display: flex; }
    .fl-bar { height: 62px; }
    .fl-logo-link { --lh: 46px; }
}
@media (max-width: 1024px) {
    .sw-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .sw-section { padding: 80px 0; }
    .sw-grid--2, .sw-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .sw-wrap, .fl-bar { padding: 0 16px; }
    .sw-grid--4 { grid-template-columns: 1fr 1fr; }
    .sw-actions .sw-btn { width: 100%; }
    .sw-cta { padding: 56px 20px; border-radius: 20px; }
    .sw-card { padding: 22px; }
}
