/* ================================================
   STREAM2WATCH - POLICY PAGE SHARED CSS
   Mobile-first, matches main site design system
   ================================================ */

/* ---- Variables (mirror global.css) ---- */
:root {
    --bg-color: #06080a;
    --surface-color: #12141c;
    --surface-hover: #1b1f29;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --border-color: rgba(255, 255, 255, 0.06);
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.4);
    --accent: #3b82f6;
    --accent-green: #22c55e;
    --live-red: #ef4444;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(67, 56, 202, 0.07) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* ---- Links (body content only — NOT header nav) ---- */
.policy-container a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
.policy-container a:hover { color: #fff; }

/* ================================================================
   SHARED HEADER / SPORT NAV — exact match to index.php
   Added here (policy.css) because global.css may be CDN-cached.
   policy.css is loaded in <head>, giving it full cascade authority.
   ================================================================ */

/* CSS vars not in global.css on policy pages */
:root {
    --bg-color:       #06080a;
    --surface-color:  #12141c;
    --surface-hover:  #1b1f29;
    --text-secondary: #94a3b8;
    --primary:        #2563eb;
    --primary-glow:   rgba(37,99,235,0.4);
    --border-color:   rgba(255,255,255,0.06);
    --shadow:         0 10px 15px -3px rgba(0,0,0,0.4);
}

/* Header bar */
header {
    background-color: rgba(6, 8, 10, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    overflow: visible !important;
}

/* Override policy.css a{color} for header links */
header a, header a:visited, header a:hover {
    color: inherit !important;
    text-decoration: none !important;
}

/* Top bar row */
.top-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 72px !important;
    padding: 0 !important;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.05));
}
.logo img { height: 44px; width: auto; display: block; }

/* Container inside header */
header .container, .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Nav scroll wrapper */
.nav-container {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 -20px !important;
    padding: 0 20px !important;
}

/* Horizontal scroll track */
.sport-nav {
    overflow-x: auto !important;
    white-space: nowrap !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
    padding: 14px 0 !important;
    display: flex !important;
    gap: 10px !important;
    scroll-behavior: smooth !important;
    flex: 1 !important;
}
.sport-nav::-webkit-scrollbar { display: none !important; }

/* SPORT PILLS — exact copy of index.php values */
.sport-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    background-color: #12141c !important;   /* --surface-color */
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;               /* --text-secondary */
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1) !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    min-height: 44px !important;
}
.sport-pill i { font-size: 18px !important; }
.sport-pill:hover {
    background-color: #1b1f29 !important;  /* --surface-hover */
    transform: translateY(-1px) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #94a3b8 !important;
}
.sport-pill.active {
    background-color: #f8fafc !important;  /* --text-primary */
    color: #06080a !important;             /* --bg-color */
    border-color: #f8fafc !important;
    box-shadow: 0 4px 12px rgba(255,255,255,0.1) !important;
}

/* Fade gradients at edges */
.nav-fade-left, .nav-fade-right {
    position: absolute;
    top: 0; bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s;
}
.nav-fade-left  { left: 20px;  background: linear-gradient(to right, #06080a, transparent); opacity: 0; }
.nav-fade-right { right: 20px; background: linear-gradient(to left, #06080a, transparent); }

/* Scroll arrows */
.nav-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px;
    background: #12141c;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10;
    color: #f8fafc;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.4);
    opacity: 0; pointer-events: none;
}
.nav-arrow:hover { background: #2563eb; border-color: #2563eb; transform: translateY(-50%) scale(1.1); }
.nav-arrow.visible { opacity: 1 !important; pointer-events: auto !important; }
.nav-arrow-left  { left: 4px; }
.nav-arrow-right { right: 4px; }

@media (max-width: 768px) {
    .sport-pill { padding: 8px 16px !important; font-size: 13px !important; }
    .top-bar    { height: 64px !important; }
}


/* ---- Layout ---- */
.policy-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 20px 100px;   /* bottom pad for mobile bottom bar */
}

/* ---- Back Link ---- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 32px;
    padding: 8px 0;             /* tap target */
    transition: color 0.2s;
}
.back-link:hover { color: var(--primary); }

/* ---- Page Badge ---- */
.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.badge-blue  { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: #60a5fa; }
.badge-green { background: rgba(34,197,94,0.1);  border: 1px solid rgba(34,197,94,0.3);  color: #4ade80; }
.badge-red   { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); color: #f87171; }
.badge-amber { background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3); color: #fbbf24; }

/* ---- Page Heading ---- */
.policy-h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.policy-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    padding-left: 16px;
    border-left: 4px solid var(--accent);
    line-height: 1.7;
}

/* ---- Section Cards ---- */
.policy-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}
.policy-card:hover { border-color: rgba(255,255,255,0.1); }

.policy-card h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}
.policy-card h2 i { color: var(--accent); font-size: 1.3rem; flex-shrink: 0; }

.policy-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 20px 0 8px;
}

.policy-card p,
.policy-card li {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.75;
    margin-bottom: 10px;
}
.policy-card ul, .policy-card ol {
    padding-left: 20px;
    margin-bottom: 12px;
}
.policy-card li { margin-bottom: 6px; }
.policy-card a { color: #60a5fa; }
.policy-card a:hover { color: #fff; text-decoration: underline; }

/* ---- Warning / Alert Box ---- */
.alert-box {
    border-radius: 12px;
    padding: 18px 22px;
    margin: 24px 0;
}
.alert-box.red   { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.25); border-left: 4px solid #f87171; }
.alert-box.amber { background: rgba(251,191,36,0.08);  border: 1px solid rgba(251,191,36,0.25);  border-left: 4px solid #fbbf24; }
.alert-box.blue  { background: rgba(59,130,246,0.08);  border: 1px solid rgba(59,130,246,0.25);  border-left: 4px solid #3b82f6; }
.alert-box h3    { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.alert-box.red   h3 { color: #f87171; }
.alert-box.amber h3 { color: #fbbf24; }
.alert-box.blue  h3 { color: #60a5fa; }
.alert-box p, .alert-box li { color: #cbd5e1; font-size: 0.92rem; margin-bottom: 6px; }

/* ---- Grid Layouts ---- */
.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.policy-grid-item {
    background: #0f1117;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}
.policy-grid-item strong { display: block; color: var(--text-primary); font-size: 0.9rem; margin-bottom: 4px; }
.policy-grid-item span  { color: var(--text-secondary); font-size: 0.82rem; display: block; }

/* ---- Process Steps ---- */
.process-steps { display: flex; flex-direction: column; gap: 16px; }
.process-step  { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
    width: 36px; height: 36px; min-width: 36px;
    border-radius: 50%;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.3);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #60a5fa; font-size: 0.9rem;
}
.step-content strong { display: block; color: var(--text-primary); font-size: 0.95rem; margin-bottom: 4px; }
.step-content span   { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }

/* ---- Status Badges ---- */
.status-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 20px; margin-bottom: 8px;
}
.status-ok      { background: rgba(34,197,94,0.1); color: #4ade80; }
.status-partial { background: rgba(251,191,36,0.1); color: #fbbf24; }

/* ---- Disclaimer ---- */
.policy-disclaimer {
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    line-height: 1.6;
}

/* ----------------------------------------
   MOBILE-FIRST RESPONSIVE
   ---------------------------------------- */

/* Small phones (≤ 400px) */
@media (max-width: 400px) {
    .policy-container { padding: 20px 16px 100px; }
    .policy-card { padding: 20px 16px; }
    .policy-h1 { font-size: 1.6rem; }
    .policy-grid { grid-template-columns: 1fr; }
}

/* Tablets up */
@media (min-width: 640px) {
    .policy-container { padding: 40px 32px 80px; }
    .policy-card { padding: 32px 28px; }
}
