/*
Theme Name: Red Thunder
Theme URI: https://example.com/red-thunder
Author: Strike Lab
Author URI: https://example.com
Description: An aggressive, high-energy sports theme built on black, red and orange. Brutal typography, angular section breaks, sticky top nav with live scores and a 2-column news split.
Version: 1.0.0
License: GPL v2 or later
Text Domain: red-thunder
Tags: sports, betting, dark, bold, angular, sticky-menu, two-columns, custom-menu, featured-images
*/

:root {
    --bg: #111111;
    --bg-dark: #0a0a0a;
    --surface: #1f1f1f;
    --surface-hi: #2a2a2a;
    --line: #353535;
    --red: #dc2626;
    --red-bright: #ef4444;
    --orange: #f97316;
    --yellow: #facc15;
    --ink: #ffffff;
    --muted: #9ca3af;
    --display: "Archivo Black", "Anton", "Impact", sans-serif;
    --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    background-image:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 4px),
        radial-gradient(700px 400px at 90% -10%, rgba(220,38,38,0.18), transparent 70%),
        radial-gradient(800px 600px at -10% 50%, rgba(249,115,22,0.07), transparent 60%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--yellow); }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0 0 0.4em; line-height: 1.02; text-transform: uppercase; letter-spacing: -0.01em; }
h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; line-height: 1.15; }
p { margin: 0 0 1em; color: #d1d5db; }

.container { width: min(1280px, 92%); margin: 0 auto; }

/* === STICKY TOP === */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(10,10,10,0.95); backdrop-filter: blur(12px); border-bottom: 2px solid var(--red); }

.header-top { background: var(--red); color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; padding: 6px 0; overflow: hidden; }
.live-scores { display: flex; gap: 28px; flex-wrap: nowrap; white-space: nowrap; animation: scroll-scores 32s linear infinite; }
.live-scores-item { display: inline-flex; gap: 8px; align-items: center; }
.live-scores-item .pulse { width: 6px; height: 6px; background: var(--yellow); display: inline-block; border-radius: 50%; box-shadow: 0 0 0 0 rgba(250,204,21,0.7); animation: pulse 1.4s infinite; }
.live-scores-item strong { font-family: var(--display); font-weight: 400; }
@keyframes scroll-scores { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(250,204,21,0.7);} 70% { box-shadow: 0 0 0 8px rgba(250,204,21,0);} 100% { box-shadow: 0 0 0 0 rgba(250,204,21,0);} }

.header-main { padding: 18px 0; }
.header-main .container { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.site-logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 1.55rem; color: var(--ink); text-transform: uppercase; letter-spacing: 0.02em; }
.site-logo .bolt { width: 38px; height: 38px; background: var(--red); display: flex; align-items: center; justify-content: center; transform: skewX(-15deg); color: var(--ink); font-family: var(--display); font-size: 22px; }
.site-logo .bolt span { transform: skewX(15deg); }
.site-logo em { color: var(--red); font-style: normal; }

.main-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; align-items: center; }
.main-navigation a { display: inline-flex; padding: 12px 18px; color: var(--ink); font-family: var(--display); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; position: relative; transition: all 0.2s ease; }
.main-navigation a:not(.btn-primary)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.main-navigation a:not(.btn-primary):hover::after { transform: scaleX(1); }
.main-navigation a:hover { color: var(--orange); }
.nav-login a { background: var(--red); color: var(--ink) !important; padding: 12px 22px !important; font-family: var(--display); clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); margin-left: 12px; }
.nav-login a:hover { background: var(--orange); color: var(--bg) !important; }
.nav-login a::after { display: none !important; }

/* === HERO === */
.hero-section { padding: 80px 0 0; position: relative; overflow: hidden; }
.hero-section::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 0 60%, rgba(220,38,38,0.18) 60% 70%, transparent 70%); pointer-events: none; }
.hero-shell { position: relative; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); background: linear-gradient(135deg, #1a0606 0%, #111 50%, #2a0a0a 100%); padding: 80px 0 130px; border-top: 4px solid var(--red); }
.hero-shell::before { content: ""; position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: linear-gradient(225deg, rgba(220,38,38,0.18), transparent); pointer-events: none; }
.hero-shell::after { content: "STRIKE"; position: absolute; top: 30%; right: -50px; font-family: var(--display); font-size: clamp(6rem, 14vw, 14rem); color: rgba(220,38,38,0.06); letter-spacing: -0.03em; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 12px; padding: 6px 14px; background: var(--red); color: var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); margin-bottom: 22px; font-weight: 600; }
.hero-section h1 { color: var(--ink); }
.hero-section h1 em { font-style: normal; color: var(--red); position: relative; }
.hero-section h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8%; height: 16%; background: var(--red); opacity: 0.25; z-index: -1; }
.hero-lead { color: var(--muted); font-size: 1.1rem; max-width: 50ch; margin: 18px 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; background: var(--red); color: var(--ink); font-family: var(--display); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); transition: all 0.25s ease; }
.btn-primary:hover { background: var(--orange); color: var(--bg); }
.btn-ghost { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; background: transparent; border: 2px solid var(--ink); color: var(--ink); font-family: var(--display); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.hero-stats { background: rgba(0,0,0,0.6); border: 2px solid var(--red); padding: 28px; position: relative; }
.hero-stats::before { content: ""; position: absolute; top: -2px; right: -2px; width: 30px; height: 30px; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.hero-stats h2 { font-size: 0.9rem; color: var(--orange); margin-bottom: 18px; letter-spacing: 0.18em; }
.match-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.match-row:last-child { border: 0; }
.match-row .teams { font-family: var(--display); font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.match-row .teams span { color: var(--orange); margin: 0 6px; }
.match-row .odds { display: flex; gap: 6px; }
.match-row .odds a { padding: 6px 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--mono); font-size: 12px; transition: all 0.2s ease; }
.match-row .odds a:hover { background: var(--red); border-color: var(--red); color: var(--ink); }

/* === SECTION === */
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 32px; gap: 20px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 3px solid var(--red); }
.section-eyebrow { display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--red); text-transform: uppercase; letter-spacing: 0.22em; padding: 4px 0; }
.section-head h2 { margin: 6px 0 0; }
.section-head .meta { color: var(--muted); font-size: 14px; max-width: 36ch; }

/* === CONTENT === */
.content-area { padding: 50px 0 90px; }

/* === 2-COLUMN NEWS LAYOUT === */
.news-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.posts-feature .post-card-feature { background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; transition: border-color 0.3s ease; }
.posts-feature .post-card-feature:hover { border-color: var(--red); }
.posts-feature .post-card-feature .post-card-thumb { aspect-ratio: 16/10; overflow: hidden; }
.posts-feature .post-card-feature .post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.posts-feature .post-card-feature:hover .post-card-thumb img { transform: scale(1.07); }
.posts-feature .post-card-thumb-fallback { display: flex; align-items: center; justify-content: center; aspect-ratio: 16/10; font-size: 60px; color: var(--red); background: linear-gradient(135deg, var(--surface), var(--bg)); }
.posts-feature .post-card-content { padding: 28px; }
.posts-feature .post-card-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; display: flex; gap: 14px; }
.posts-feature .post-card-title { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.05; margin: 0 0 14px; }
.posts-feature .post-card-title a { color: var(--ink); }
.posts-feature .post-card-title a:hover { color: var(--red); }
.posts-feature .post-card-excerpt { color: var(--muted); }

.posts-list { display: flex; flex-direction: column; gap: 18px; }
.posts-list .post-card { display: grid; grid-template-columns: 110px 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--line); padding: 18px; transition: all 0.25s ease; }
.posts-list .post-card:hover { border-color: var(--red); transform: translateX(4px); }
.posts-list .post-card-thumb { width: 110px; aspect-ratio: 1; overflow: hidden; }
.posts-list .post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.posts-list .post-card-thumb-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--surface-hi); color: var(--red); font-size: 32px; }
.posts-list .post-card-meta { font-family: var(--mono); font-size: 11px; color: var(--orange); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; }
.posts-list .post-card-title { font-family: var(--display); font-size: 1rem; line-height: 1.18; text-transform: uppercase; letter-spacing: 0.02em; margin: 0; }
.posts-list .post-card-title a { color: var(--ink); }
.posts-list .post-card-title a:hover { color: var(--orange); }

.read-more { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; }
.read-more:hover { color: var(--orange); }

/* === SIDEBAR === */
.sidebar { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }
.widget { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red); padding: 24px; }
.widget-title { font-family: var(--display); font-size: 1rem; color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.widget li:last-child { border: 0; }
.widget li a { color: var(--ink); display: flex; justify-content: space-between; gap: 10px; }
.widget li a span { font-family: var(--mono); color: var(--orange); font-weight: 600; }
.widget-bonus { background: linear-gradient(135deg, var(--red), #7a1111); border-left: 0; }
.widget-bonus .widget-title { color: var(--yellow); }
.widget-bonus p { color: rgba(255,255,255,0.9); }
.widget-bonus .btn-primary { background: var(--bg); color: var(--ink); width: 100%; justify-content: center; }
.widget-bonus .btn-primary:hover { background: var(--yellow); color: var(--bg); }

/* === BREADCRUMB === */
.breadcrumbs { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 20px; letter-spacing: 0.1em; text-transform: uppercase; }
.breadcrumbs a { color: var(--orange); }
.breadcrumbs .sep { margin: 0 8px; color: var(--red); }

/* === SINGLE === */
.single-post-content { background: var(--surface); border: 1px solid var(--line); padding: 44px; position: relative; }
.single-post-content::before { content: ""; position: absolute; top: 0; left: 0; width: 60px; height: 4px; background: var(--red); }
.post-feature { aspect-ratio: 16/8; overflow: hidden; margin-bottom: 30px; }
.post-feature img { width: 100%; height: 100%; object-fit: cover; }
.post-title { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.post-meta { display: flex; gap: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin-bottom: 30px; flex-wrap: wrap; }
.post-meta a { color: var(--ink); }
.post-body { color: #e5e7eb; font-size: 1.04rem; line-height: 1.8; }
.post-body p, .post-body ul, .post-body ol { margin-bottom: 1.2em; }
.post-body h2, .post-body h3 { margin-top: 1.6em; }
.post-body a { color: var(--red); border-bottom: 1px dashed var(--red); }
.post-tags { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
.post-tags a { display: inline-block; padding: 6px 12px; background: var(--surface-hi); margin-right: 6px; color: var(--ink); text-transform: uppercase; letter-spacing: 0.1em; }

.related-posts { margin-top: 50px; }
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-posts-grid .post-card { background: var(--surface); border: 1px solid var(--line); padding: 0; transition: all 0.2s ease; }
.related-posts-grid .post-card:hover { border-color: var(--red); }
.related-posts-grid .post-card-thumb { aspect-ratio: 16/10; overflow: hidden; }
.related-posts-grid .post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-posts-grid .post-card-content { padding: 16px; }
.related-posts-grid .post-card-title { font-family: var(--display); font-size: 0.95rem; line-height: 1.2; text-transform: uppercase; }
.related-posts-grid .post-card-title a { color: var(--ink); }

/* === ARCHIVE === */
.archive-header { padding: 60px 0 30px; border-bottom: 3px solid var(--red); position: relative; }
.archive-header::before { content: ""; position: absolute; left: 0; top: 30px; width: 60px; height: 4px; background: var(--red); }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.archive-grid .post-card { background: var(--surface); border: 1px solid var(--line); transition: all 0.25s ease; }
.archive-grid .post-card:hover { border-color: var(--red); transform: translateY(-3px); }
.archive-grid .post-card-thumb { aspect-ratio: 16/10; overflow: hidden; }
.archive-grid .post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.archive-grid .post-card:hover img { transform: scale(1.07); }
.archive-grid .post-card-content { padding: 22px; }
.archive-grid .post-card-meta { font-family: var(--mono); font-size: 11px; color: var(--orange); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 10px; }
.archive-grid .post-card-title { font-family: var(--display); font-size: 1.15rem; line-height: 1.18; text-transform: uppercase; }
.archive-grid .post-card-title a { color: var(--ink); }
.archive-grid .post-card-excerpt { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }

.pagination { margin-top: 40px; display: flex; justify-content: center; gap: 6px; }
.pagination .page-numbers { padding: 10px 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-family: var(--mono); font-size: 13px; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--red); border-color: var(--red); color: var(--ink); }

/* === COMMENTS === */
.comments-area { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red); padding: 36px; margin-top: 32px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 26px; }
.comment-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-form input, .comment-form textarea { width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-family: var(--sans); margin-bottom: 12px; }
.comment-form textarea { min-height: 130px; }
.comment-form .submit { background: var(--red); color: var(--ink); border: 0; padding: 14px 28px; font-family: var(--display); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); }

/* === 404 === */
.error-404 { text-align: center; padding: 100px 20px; }
.error-404 .num { font-family: var(--display); font-size: clamp(7rem, 18vw, 14rem); margin: 0; line-height: 0.9; color: transparent; -webkit-text-stroke: 2px var(--red); letter-spacing: -0.03em; }
.error-404 h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 18px 0; }

/* === FOOTER === */
.site-footer { background: var(--bg-dark); padding: 80px 0 0; margin-top: 70px; border-top: 4px solid var(--red); }
.footer-widgets { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 50px; }
.footer-widget h3 { font-family: var(--display); font-size: 0.9rem; color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; padding-bottom: 8px; border-bottom: 2px solid var(--red); display: inline-block; }
.footer-widget p { color: var(--muted); }
.footer-widget ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-widget a { color: var(--muted); }
.footer-widget a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0; font-size: 12px; font-family: var(--mono); color: var(--muted); text-align: center; letter-spacing: 0.16em; text-transform: uppercase; }

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .news-split { grid-template-columns: 1fr; }
    .related-posts-grid, .archive-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-widgets { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .related-posts-grid, .archive-grid { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr; }
    .single-post-content { padding: 26px; }
    .main-navigation ul { flex-wrap: wrap; justify-content: center; }
}
