/*
Theme Name: Ocean Blue Clean
Theme URI: https://example.com/ocean-blue-clean
Author: Tideline Studio
Author URI: https://example.com
Description: A clean, corporate sportsbook theme with a trustworthy white-and-blue palette, generous whitespace, a search-driven hero and a calm 4-column news grid.
Version: 1.0.0
License: GPL v2 or later
Text Domain: ocean-blue-clean
Tags: sports, betting, light, corporate, four-columns, custom-menu, featured-images, minimal
*/

:root {
    --bg: #ffffff;
    --bg-soft: #f6f9ff;
    --bg-tint: #dbeafe;
    --line: #e2e8f3;
    --line-strong: #cbd5e1;
    --ink: #0f172a;
    --ink-soft: #475569;
    --muted: #94a3b8;
    --blue: #2563eb;
    --blue-deep: #1d4ed8;
    --navy: #1e3a5f;
    --navy-deep: #0f2440;
    --accent: #f59e0b;
    --display: "Fraunces", "Source Serif 4", Georgia, serif;
    --sans: "Plus Jakarta Sans", "Inter", "Helvetica Neue", sans-serif;
    --shadow-sm: 0 6px 24px -10px rgba(15, 36, 64, 0.10);
    --shadow: 0 24px 60px -28px rgba(30, 58, 95, 0.18);
}

*, *::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.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); margin: 0 0 0.5em; line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; font-variation-settings: "opsz" 32, "SOFT" 50; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

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

/* === HEADER === */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }

.header-top { background: var(--navy); color: #cfe0ff; font-size: 12px; padding: 8px 0; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.header-top a { color: #cfe0ff; }
.header-top a:hover { color: #fff; }
.trust-badges { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.trust-badge { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }

.header-main { padding: 18px 0; }
.header-main .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-logo { display: inline-flex; align-items: center; gap: 12px; }
.site-logo .mark { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--navy)); position: relative; box-shadow: 0 8px 22px -8px rgba(37,99,235,0.55); }
.site-logo .mark::before { content: ""; position: absolute; inset: 6px; border-radius: 8px; background: rgba(255,255,255,0.18); }
.site-logo .mark::after { content: "T"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--display); font-weight: 600; font-size: 18px; }
.site-logo .name { font-family: var(--display); font-weight: 500; font-size: 1.55rem; color: var(--navy); letter-spacing: -0.02em; }
.site-logo .name span { color: var(--blue); }

.main-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; align-items: center; }
.main-navigation a { display: inline-flex; padding: 10px 16px; color: var(--ink); font-weight: 500; font-size: 0.94rem; border-radius: 10px; transition: all 0.2s ease; }
.main-navigation a:hover { background: var(--bg-soft); color: var(--blue); }
.nav-login a { background: var(--blue) !important; color: #fff !important; padding: 10px 22px !important; border-radius: 999px; box-shadow: 0 12px 24px -10px rgba(37,99,235,0.6); margin-left: 8px; }
.nav-login a:hover { background: var(--navy) !important; }

.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; background: var(--blue); color: #fff; border-radius: 999px; font-weight: 600; font-size: 0.95rem; box-shadow: 0 14px 28px -12px rgba(37,99,235,0.55); }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; background: #fff; border: 1.5px solid var(--line-strong); color: var(--navy); border-radius: 999px; font-weight: 600; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* === HERO === */
.hero-section { padding: 80px 0 90px; background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); position: relative; overflow: hidden; }
.hero-section::before { content: ""; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, var(--bg-tint), transparent 70%); pointer-events: none; }
.hero-content { max-width: 760px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--bg-tint); color: var(--blue-deep); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 22px; }
.hero-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.hero-section h1 { margin-bottom: 20px; }
.hero-section h1 em { color: var(--blue); font-style: italic; }
.hero-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; margin: 0 auto 38px; }

.hero-search { display: flex; gap: 0; max-width: 580px; margin: 0 auto 30px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); overflow: hidden; padding: 6px; }
.hero-search input { flex: 1; border: 0; padding: 14px 22px; font-family: var(--sans); font-size: 1rem; outline: none; color: var(--ink); background: transparent; }
.hero-search input::placeholder { color: var(--muted); }
.hero-search button { border: 0; background: var(--blue); color: #fff; padding: 14px 26px; border-radius: 999px; font-weight: 600; cursor: pointer; font-family: var(--sans); }
.hero-search button:hover { background: var(--navy); }

.hero-quick-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-quick-links a { display: inline-flex; padding: 8px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 13px; font-weight: 500; }
.hero-quick-links a:hover { border-color: var(--blue); color: var(--blue); }

.hero-stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: 880px; margin: 60px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.hero-stat { padding: 26px 22px; text-align: center; border-right: 1px solid var(--line); }
.hero-stat:last-child { border-right: 0; }
.hero-stat .num { font-family: var(--display); font-size: 1.9rem; color: var(--navy); font-weight: 500; }
.hero-stat .label { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; margin-top: 4px; }

/* === SECTION === */
.section-head { text-align: center; margin-bottom: 50px; }
.section-eyebrow { display: inline-block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.section-head h2 { margin: 8px 0 12px; }
.section-head p.meta { max-width: 56ch; margin: 0 auto; color: var(--ink-soft); }

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

/* === 4-COL POSTS === */
.posts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: all 0.3s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--bg-tint); }
.post-card-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); display: block; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover img { transform: scale(1.05); }
.post-card-thumb-fallback { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 44px; color: var(--blue); background: linear-gradient(135deg, var(--bg-tint), var(--bg-soft)); }
.post-card-content { padding: 18px 18px 0; flex: 1; }
.post-card-meta { font-size: 11.5px; letter-spacing: 0.06em; color: var(--muted); display: flex; gap: 10px; margin-bottom: 10px; font-weight: 500; }
.post-card-meta a, .post-card-meta .cat { color: var(--blue); }
.post-card-title { font-family: var(--display); font-size: 1.05rem; line-height: 1.25; margin: 0 0 8px; }
.post-card-title a { color: var(--navy); }
.post-card-title a:hover { color: var(--blue); }
.post-card-excerpt { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 14px; }
.post-card-footer { padding: 0 18px 18px; }
.read-more { font-size: 13px; font-weight: 600; color: var(--blue); display: inline-flex; gap: 6px; align-items: center; }
.read-more::after { content: "→"; transition: transform 0.25s ease; }
.read-more:hover::after { transform: translateX(3px); }

/* === SIDEBAR === */
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.widget-title { font-family: var(--display); font-size: 1rem; color: var(--navy); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-weight: 500; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.widget li:last-child { border: 0; }
.widget li a { color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.widget li a:hover { color: var(--blue); }
.widget li a span { color: var(--blue); font-weight: 600; font-feature-settings: "tnum"; }
.widget-bonus { background: linear-gradient(160deg, var(--navy), var(--blue-deep)); border: 0; color: #fff; }
.widget-bonus .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,0.15); }
.widget-bonus p { color: rgba(255,255,255,0.85); }
.widget-bonus .btn-primary { background: var(--accent); color: var(--navy); width: 100%; justify-content: center; box-shadow: none; }
.widget-bonus .btn-primary:hover { background: #fff; color: var(--navy); }

/* === BREADCRUMB === */
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.breadcrumbs a { color: var(--blue); }
.breadcrumbs .sep { margin: 0 8px; color: var(--muted); }

/* === SINGLE === */
.single-post-content { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 50px; box-shadow: var(--shadow-sm); }
.post-feature { aspect-ratio: 16/8; border-radius: 14px; overflow: hidden; margin-bottom: 30px; }
.post-feature img { width: 100%; height: 100%; object-fit: cover; }
.post-title { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.post-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--muted); margin-bottom: 32px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.post-meta a { color: var(--blue); }
.post-meta strong { color: var(--ink); font-weight: 500; }
.post-body { font-size: 1.04rem; 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; color: var(--navy); }
.post-body a { color: var(--blue); border-bottom: 1px solid var(--bg-tint); }
.post-tags { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.post-tags a { display: inline-block; padding: 5px 12px; background: var(--bg-soft); border-radius: 999px; margin-right: 6px; color: var(--blue); }

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

/* === ARCHIVE === */
.archive-header { padding: 60px 0 36px; background: linear-gradient(180deg, var(--bg-soft), transparent); border-bottom: 1px solid var(--line); }
.archive-header .container { max-width: 700px; text-align: center; }
.archive-header p { max-width: 56ch; margin: 0 auto; color: var(--ink-soft); }

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

/* === COMMENTS === */
.comments-area { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px; margin-top: 32px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 26px; }
.comment-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-form input, .comment-form textarea { width: 100%; padding: 12px 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-family: var(--sans); margin-bottom: 12px; }
.comment-form textarea { min-height: 130px; }
.comment-form .submit { background: var(--blue); color: #fff; border: 0; padding: 12px 28px; border-radius: 999px; font-weight: 600; cursor: pointer; }

/* === 404 === */
.error-404 { text-align: center; padding: 100px 20px; max-width: 600px; margin: 0 auto; }
.error-404 .num { font-family: var(--display); font-size: clamp(6rem, 16vw, 12rem); color: var(--blue); line-height: 1; margin: 0; font-weight: 500; }

/* === FOOTER === */
.site-footer { background: var(--navy-deep); color: #cfd9e8; padding: 70px 0 0; margin-top: 70px; }
.footer-widgets { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-bottom: 50px; }
.footer-widget h3 { font-family: var(--display); font-size: 1rem; color: #fff; margin-bottom: 16px; font-weight: 500; }
.footer-widget p { color: rgba(207,217,232,0.78); }
.footer-widget ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-widget a { color: rgba(207,217,232,0.85); }
.footer-widget a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; font-size: 13px; color: rgba(207,217,232,0.7); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

@media (max-width: 1024px) {
    .content-wrapper { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats-strip { grid-template-columns: repeat(2, 1fr); }
    .hero-stat { border-bottom: 1px solid var(--line); }
    .hero-stat:nth-last-child(-n+2) { border-bottom: 0; }
    .footer-widgets { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .posts-grid, .related-posts-grid { grid-template-columns: 1fr; }
    .hero-stats-strip { grid-template-columns: 1fr; }
    .hero-stat { border-right: 0; border-bottom: 1px solid var(--line); }
    .hero-stat:last-child { border-bottom: 0; }
    .footer-widgets { grid-template-columns: 1fr; }
    .single-post-content { padding: 28px; }
    .main-navigation ul { flex-wrap: wrap; justify-content: center; }
    .hero-search { flex-direction: column; padding: 12px; gap: 10px; border-radius: 18px; }
    .hero-search button { width: 100%; }
}
