/* Free Fire Simulator - shared styles for the Training Videos hub and watch pages.
   Loaded after /dd.css (navigation). Palette matches the building construction pages. */

:root {
    --bg-primary:    #11263F;
    --bg-secondary:  #0D1F33;
    --bg-section:    #162D47;
    --bg-card:       #1A3352;
    --gold:          #D89A1E;
    --orange:        #C44A2A;
    --link:          #4FB4FF;
    --text:          #FFFFFF;
    --text-soft:     #E6EAF0;
    --text-muted:    #A8B8CC;
    --border:        rgba(216,154,30,0.35);
    --border-solid:  rgba(216,154,30,0.60);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-primary); color: var(--text); margin: 0; padding: 0; font-family: Verdana, Arial, Helvetica, sans-serif; }

/* ── Header (logo/search/ad bar) ── */
.header-container { width:100%; display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:14px; padding:10px 20px; background:var(--bg-secondary); border-bottom:2px solid var(--border); }
.header-container .logo-section { text-align:left; }
.header-container .logo-section img { max-width:280px; height:auto; border:1px solid var(--gold); border-radius:3px; }
.header-container .search-slot { flex:0 0 auto; text-align:center; margin:0 auto; }
.header-container .ad-slot { text-align:right; }
.header-feedback-btn { margin-top:10px; background:rgba(216,154,30,0.18); border:1px solid rgba(216,154,30,0.75); border-radius:5px; color:#F4F7FA; font-family:Verdana,Arial,Helvetica,sans-serif; font-size:12px; letter-spacing:0.04em; padding:6px 16px; cursor:pointer; transition:all 0.18s ease; white-space:nowrap; font-weight:bold; box-shadow:0 0 6px rgba(0,0,0,0.35); }
.header-feedback-btn:hover { background:rgba(216,154,30,0.32); border-color:#D89A1E; color:#FFE7C2; }
@media (max-width: 900px) {
    .header-container { justify-content:center; text-align:center; }
    .header-container .logo-section, .header-container .search-slot, .header-container .ad-slot { margin:0 auto; text-align:center; }
}

/* ── Breadcrumb & footer ── */
.breadcrumb { background: var(--bg-secondary); padding: 8px 24px; font-size: 12px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.breadcrumb a:link, .breadcrumb a:visited { color: var(--link); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--text-muted); margin: 0 6px; }
.site-footer { background: var(--bg-secondary); border-top: 2px solid var(--border); padding: 16px 24px; text-align: center; font-size: 0.85em; color: var(--text-muted); line-height: 1.7; }
.site-footer a:link, .site-footer a:visited { color: var(--link); }
.site-footer a:hover { color: var(--gold); }

/* ── Page wrapper & header ── */
.page-wrapper { max-width: 1100px; margin: 0 auto; padding: 28px 24px 40px; }
.page-header { text-align: center; padding: 28px 0 20px; border-bottom: 2px solid var(--border); margin-bottom: 32px; }
.page-header h1 { color: var(--gold); font-size: 2em; margin: 0 0 10px; letter-spacing: 0.02em; line-height: 1.3; }
.page-header .subtitle { color: var(--text-soft); font-size: 1em; line-height: 1.6; max-width: 760px; margin: 0 auto; }

.intro-callout { background: var(--bg-card); border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; padding: 18px 22px; margin-bottom: 28px; font-size: 1em; line-height: 1.7; color: var(--text-soft); }
.intro-callout strong { color: var(--text); }

/* ── On this page ── */
.toc { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 14px 22px; margin-bottom: 32px; font-size: 0.92em; }
.toc strong { color: var(--gold); }
.toc ol { margin: 8px 0 0; padding-left: 1.3em; columns: 2; column-gap: 32px; line-height: 1.9; }
.toc a:link, .toc a:visited { color: var(--link); }
.toc a:hover { color: var(--gold); }

/* ── Section cards ── */
.section-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 28px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.section-card-header { display: flex; align-items: center; gap: 14px; padding: 16px 22px; background: linear-gradient(135deg, var(--bg-secondary), #1B3754); border-bottom: 1px solid var(--border); }
.section-icon { font-size: 1.6em; flex-shrink: 0; }
.section-card-header h2 { margin: 0; color: var(--gold); font-size: 1.15em; letter-spacing: 0.02em; }
.section-body { padding: 20px 22px; font-size: 0.95em; line-height: 1.75; color: var(--text-soft); }
.section-body p { margin: 0 0 14px; }
.section-body p:last-child { margin-bottom: 0; }
.section-body a { color: var(--link); }
.section-body a:hover { color: var(--gold); }
.section-body h3 { color: var(--gold); font-size: 1.02em; margin: 0 0 8px; }

/* ── Size-up callout (original "Emergency Scene Size-Up" text) ── */
.sizeup { background: var(--bg-secondary); border-left: 4px solid var(--orange); border-radius: 0 8px 8px 0; padding: 12px 18px; margin: 16px 0; }
.sizeup h3 { color: #FF9A7A; margin: 0 0 4px; font-size: 0.9em; text-transform: uppercase; letter-spacing: 0.05em; }
.sizeup p { margin: 0; }

/* ── Verified data block ── */
.by-numbers { background: rgba(79,180,255,0.07); border: 1px solid rgba(79,180,255,0.35); border-radius: 8px; padding: 14px 18px 12px; margin: 18px 0 4px; }
.by-numbers h3 { color: var(--link); font-size: 0.9em; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 8px; }
.by-numbers ul { margin: 0; padding-left: 1.2em; }
.by-numbers li { margin: 0 0 8px; }
.by-numbers li:last-child { margin-bottom: 4px; }
.by-numbers .note { font-size: 0.85em; color: var(--text-muted); margin: 8px 0 0; }
.ref { font-size: 0.8em; white-space: nowrap; }

/* ── Tables ── */
.table-scroll { overflow-x: auto; margin: 6px 0 14px; border: 1px solid var(--border); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.92em; line-height: 1.5; }
caption { text-align: left; padding: 10px 14px; color: var(--text-muted); font-size: 0.85em; caption-side: bottom; }
th { background: var(--bg-secondary); color: var(--gold); text-align: left; }
th, td { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); vertical-align: top; }
tbody tr:nth-child(even) { background: rgba(255,255,255,0.03); }
td:nth-child(2) { color: var(--text); font-weight: bold; white-space: nowrap; }

.strategy-list { margin: 8px 0 14px; padding-left: 1.3em; }
.strategy-list li { margin-bottom: 8px; }

/* ── In-content ad ── */
.in-content-ad { margin: 4px 22px 20px; text-align: center; }

/* ── Related links ── */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 20px 22px; }
.related-link { display: block; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; text-decoration: none; }
.related-link:hover { background: rgba(216,154,30,0.12); border-color: var(--gold); }
.related-link b { display: block; color: var(--gold); font-size: 0.95em; }
.related-link span { display: block; color: var(--text-muted); font-size: 0.82em; line-height: 1.45; margin-top: 2px; }

/* ── Sources ── */
.sources { font-size: 0.88em; line-height: 1.65; color: var(--text-muted); padding-left: 1.6em; margin: 0; }
.sources li { margin-bottom: 10px; }
.sources a { color: var(--link); word-break: break-word; }

/* ── Prev/next ── */
.page-nav-strip { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 20px 0; border-top: 1px solid var(--border); margin-top: 40px; }
.page-nav-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border-solid); border-radius: 6px; padding: 10px 18px; font-size: 0.88em; font-weight: bold; transition: all 0.2s ease; }
.page-nav-btn:link, .page-nav-btn:visited { color: var(--gold); }
.page-nav-btn:hover { background: rgba(216,154,30,0.12); color: var(--text); transform: translateY(-1px); text-decoration: none; }

.source-note { max-width: 1100px; margin: 0 auto; padding: 0 24px 30px; color: var(--text-muted); font-size: 0.85em; line-height: 1.6; text-align: center; }

@media (max-width: 768px) {
    .page-header h1 { font-size: 1.5em; }
    .toc ol { columns: 1; }
    .page-nav-strip { flex-direction: column; }
}

/* ── Video pages ── */
.video-shell { background:#000; border:1px solid var(--border-solid); border-radius:10px; overflow:hidden; box-shadow:0 4px 20px rgba(0,0,0,0.5); }
.video-shell video { width:100%; height:auto; display:block; aspect-ratio:16/9; background:#000; }
.video-meta { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:14px 0 4px; }
.chip { display:inline-block; background:rgba(216,154,30,0.18); border:1px solid var(--border-solid); color:var(--gold); border-radius:999px; padding:2px 12px; font-size:0.78em; font-weight:bold; letter-spacing:0.03em; }
.video-meta .audience { color:var(--text-muted); font-size:0.85em; }
.watch-title { color:var(--gold); font-size:1.8em; line-height:1.3; margin:18px 0 6px; }
.download-line { font-size:0.85em; color:var(--text-muted); margin:8px 0 0; }
.download-line a { color:var(--link); }

.prompts { margin:0; padding-left:1.3em; }
.prompts li { margin-bottom:9px; }

.sponsor-box { text-align:center; margin:0 0 28px; padding:12px; background:var(--bg-secondary); border:1px solid var(--border); border-radius:8px; }
.sponsor-box small { display:block; color:var(--text-muted); font-size:0.7em; letter-spacing:0.08em; text-transform:uppercase; margin-bottom:6px; }
.sponsor-box img { max-width:100%; height:auto; border:0; }

/* ── Video grid ── */
.video-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:22px; padding:20px 22px; }
.video-grid.standalone { padding:0; margin-bottom:28px; }
.v-card { background:var(--bg-card); border:1px solid var(--border); border-radius:10px; overflow:hidden; display:flex; flex-direction:column; box-shadow:0 4px 16px rgba(0,0,0,0.35); }
.v-card:hover { border-color:var(--gold); }
.v-thumb { position:relative; display:block; aspect-ratio:16/9; background:#000; }
.v-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.play-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,0.28); transition:background 0.2s; }
.v-thumb:hover .play-overlay, .v-thumb:focus .play-overlay { background:rgba(0,0,0,0.1); }
.play-icon { width:64px; height:64px; border-radius:50%; background:rgba(196,74,42,0.92); color:#fff; font-size:26px; display:flex; align-items:center; justify-content:center; padding-left:5px; box-shadow:0 2px 10px rgba(0,0,0,0.6); }
.v-body { padding:14px 16px 16px; display:flex; flex-direction:column; flex:1; }
.v-body h2, .v-body h3 { margin:8px 0 6px; font-size:1.05em; line-height:1.35; }
.v-body h2 a, .v-body h3 a { color:var(--gold); text-decoration:none; }
.v-body h2 a:hover, .v-body h3 a:hover { text-decoration:underline; }
.v-body p { margin:0 0 12px; font-size:0.88em; line-height:1.65; color:var(--text-soft); }
.v-body .watch-link { margin-top:auto; align-self:flex-start; }
.v-card.compact .v-body { padding:10px 14px 14px; }
.v-card.compact .v-body h3 { font-size:0.95em; }
