/*
Theme Name: Green Sports Elite
Theme URI: https://example.com/green-sports-elite
Author: Pitch Lab
Author URI: https://example.com
Description: A bright, editorial-grade sports betting theme with light backgrounds, emerald accents, and a split-hero layout aimed at punters who appreciate refined typographic systems.
Version: 1.0.0
License: GPL v2 or later
Text Domain: green-sports-elite
Tags: sports, betting, light, editorial, three-columns, custom-menu, featured-images
*/

:root {
    --bg: #f8fffe;
    --bg-soft: #eef7f3;
    --surface: #ffffff;
    --ink: #0b1d18;
    --ink-soft: #3a4a44;
    --muted: #7d8c87;
    --line: #d6e7df;
    --primary: #10b981;
    --primary-deep: #059669;
    --dark: #064e3b;
    --accent: #facc15;
    --shadow: 0 24px 60px -28px rgba(6, 78, 59, 0.25);
    --radius: 18px;
    --radius-sm: 10px;
    --serif: "DM Serif Display", "Playfair Display", serif;
    --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    background-image:
        radial-gradient(1100px 480px at -10% -10%, rgba(16, 185, 129, 0.08), transparent 60%),
        radial-gradient(900px 420px at 110% 0%, rgba(6, 78, 59, 0.06), transparent 55%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-deep); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--dark); }

h1, h2, h3, h4 {
    font-family: var(--serif);
    color: var(--dark);
    line-height: 1.15;
    margin: 0 0 0.6em;
    font-weight: 400;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

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

/* ====== HEADER ====== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 255, 254, 0.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }

.header-top { background: var(--dark); color: #d1fae5; font-size: 12.5px; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; gap: 18px; flex-wrap: wrap; }
.odds-ticker { display: flex; gap: 22px; overflow: hidden; flex: 1; }
.odds-ticker-item { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; letter-spacing: 0.04em; }
.odds-ticker-item strong { color: #fff; font-weight: 600; }
.odds-ticker-item .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #facc15; box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7);} 70% { box-shadow: 0 0 0 9px rgba(250, 204, 21, 0);} 100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);} }

.header-main { padding: 18px 0; display: flex; }
.header-main .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-logo { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--serif); font-size: 1.7rem; color: var(--dark); }
.site-logo span.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); display: inline-block; align-self: center; margin-left: 4px; }
.site-logo em { font-style: normal; color: var(--primary-deep); }

.main-navigation ul { list-style: none; display: flex; gap: 26px; padding: 0; margin: 0; align-items: center; }
.main-navigation a { color: var(--ink); font-weight: 600; font-size: 0.95rem; position: relative; padding: 6px 0; }
.main-navigation a:not(.btn-primary)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease; }
.main-navigation a:not(.btn-primary):hover::after { transform: scaleX(1); transform-origin: left; }
.main-navigation .nav-login a { background: var(--primary); color: #fff; padding: 10px 20px; border-radius: 999px; box-shadow: var(--shadow); }
.main-navigation .nav-login a:hover { background: var(--dark); color: #fff; }

.btn-primary { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700; letter-spacing: 0.02em; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--dark); color: #fff; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; border: 1.5px solid var(--dark); color: var(--dark); font-weight: 700; }
.btn-ghost:hover { background: var(--dark); color: #fff; }

/* ====== HERO ====== */
.hero-section { padding: 70px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero-eyebrow { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--primary-deep); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 12px; }
.hero-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--primary-deep); display: inline-block; }
.hero-section h1 { margin-bottom: 24px; }
.hero-section h1 em { font-style: italic; color: var(--primary-deep); }
.hero-lead { font-size: 1.1rem; max-width: 50ch; margin-bottom: 32px; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats { background: var(--surface); border-radius: 28px; padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; overflow: hidden; }
.hero-stats::before { content: ""; position: absolute; inset: -50% -10% auto auto; width: 280px; height: 280px; background: radial-gradient(circle, rgba(16, 185, 129, 0.18), transparent 70%); }
.hero-stats h2 { font-size: 1.05rem; font-family: var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 18px; font-weight: 600; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px dashed var(--line); position: relative; }
.stat-row:last-child { border-bottom: 0; }
.stat-row .label { display: flex; flex-direction: column; gap: 4px; }
.stat-row .label strong { font-family: var(--serif); color: var(--dark); font-size: 1.1rem; font-weight: 400; }
.stat-row .label span { font-size: 12px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.stat-row .odds { display: flex; gap: 8px; }
.odds-pill { background: var(--bg-soft); border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 14px; color: var(--dark); border: 1px solid var(--line); transition: all 0.2s ease; }
.odds-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ====== SECTION TITLES ====== */
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 36px; gap: 24px; flex-wrap: wrap; }
.section-eyebrow { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--primary-deep); }
.section-head h2 { margin: 6px 0 0; }
.section-head .meta { color: var(--muted); font-size: 14px; max-width: 32ch; }

/* ====== CONTENT AREA ====== */
.content-area { padding: 30px 0 90px; }
.content-wrapper { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }

/* ====== POSTS GRID ====== */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); display: block; position: relative; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.06); }
.post-card-thumb-fallback { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 56px; color: var(--primary); }
.post-card-content { padding: 22px 22px 8px; flex: 1; }
.post-card-meta { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); display: flex; gap: 12px; margin-bottom: 12px; }
.post-card-meta a { color: var(--primary-deep); }
.post-card-title { margin: 0 0 10px; font-size: 1.15rem; }
.post-card-title a { color: var(--dark); }
.post-card-title a:hover { color: var(--primary-deep); }
.post-card-excerpt { font-size: 0.92rem; color: var(--ink-soft); }
.post-card-footer { padding: 0 22px 22px; }
.read-more { font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary-deep); display: inline-flex; align-items: center; gap: 8px; }
.read-more:hover { color: var(--dark); }

/* ====== SIDEBAR ====== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 24px; }
.widget-title { font-family: var(--serif); font-size: 1.1rem; color: var(--dark); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--ink); display: flex; justify-content: space-between; width: 100%; align-items: center; }
.widget li a span { color: var(--primary-deep); font-weight: 700; }
.widget-bonus { background: linear-gradient(150deg, var(--dark), var(--primary-deep)); color: #ecfdf5; border: 0; }
.widget-bonus .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,0.18); }
.widget-bonus p { color: #d1fae5; }
.widget-bonus .btn-primary { background: var(--accent); color: var(--dark); width: 100%; justify-content: center; }
.widget-bonus .btn-primary:hover { background: #fff; }

/* ====== BREADCRUMB ====== */
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; letter-spacing: 0.06em; }
.breadcrumbs a { color: var(--primary-deep); }
.breadcrumbs span.sep { margin: 0 8px; color: var(--line); }

/* ====== SINGLE/PAGE ====== */
.single-post-content, .page-content { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 44px; }
.single-post-content .post-title { margin-bottom: 16px; }
.post-meta { display: flex; gap: 18px; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; flex-wrap: wrap; }
.post-meta a { color: var(--primary-deep); }
.post-feature { aspect-ratio: 16 / 8; border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.post-feature img { width: 100%; height: 100%; object-fit: cover; }
.post-body { font-size: 1.02rem; line-height: 1.85; color: var(--ink-soft); }
.post-body p, .post-body ul, .post-body ol { margin-bottom: 1.2em; }
.post-body h2, .post-body h3 { margin-top: 1.6em; }
.post-tags { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.post-tags a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--bg-soft); color: var(--dark); margin-right: 6px; }

.related-posts { margin-top: 50px; }
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ====== ARCHIVE ====== */
.archive-header { padding: 60px 0 30px; border-bottom: 1px solid var(--line); }
.archive-header h1 em { color: var(--primary-deep); font-style: italic; }
.archive-header p { max-width: 60ch; }

.pagination { margin-top: 40px; display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ====== COMMENTS ====== */
.comments-area { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 36px; margin-top: 32px; }
.comments-area h2 { font-size: 1.4rem; }
.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[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-family: var(--sans); margin-bottom: 12px; }
.comment-form textarea { min-height: 120px; }
.comment-form .submit { background: var(--primary); color: #fff; border: 0; padding: 12px 28px; border-radius: 999px; font-weight: 700; cursor: pointer; }

/* ====== 404 ====== */
.error-404 { text-align: center; padding: 100px 20px; }
.error-404 .num { font-family: var(--serif); font-size: clamp(6rem, 16vw, 12rem); color: var(--primary); line-height: 1; margin: 0; }
.error-404 h2 { margin-top: 0; }
.error-404 .actions { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ====== FOOTER ====== */
.site-footer { background: var(--dark); color: #d1fae5; padding: 70px 0 0; margin-top: 60px; }
.footer-widgets { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; padding-bottom: 50px; }
.footer-widget h3 { color: #fff; font-family: var(--sans); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 16px; }
.footer-widget p { color: rgba(209, 250, 229, 0.78); }
.footer-widget ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-widget a { color: rgba(209, 250, 229, 0.85); }
.footer-widget a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; font-size: 13px; color: rgba(209, 250, 229, 0.7); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .content-wrapper { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-widgets { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .main-navigation ul { gap: 14px; flex-wrap: wrap; justify-content: center; }
    .posts-grid, .related-posts-grid { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr; }
    .single-post-content, .page-content, .comments-area { padding: 26px; }
}
