/*
Theme Name: GamokNews
Theme URI: https://gamoknews.com
Author: Amaechi Okonkwo Godwin
Description: A newspaper-style theme for GamokNews.com with breaking news ticker, social sharing, comments, and responsive layout.
Version: 1.0.0
License: GPLv2 or later
Text Domain: gamoknews
*/

:root {
  --red: #C0392B;
  --red-dark: #96281B;
  --black: #1A1A1A;
  --ink: #2C2C2C;
  --charcoal: #3D3D3D;
  --gray-dark: #555;
  --gray: #888;
  --gray-light: #B0B0B0;
  --silver: #D5D5D5;
  --cream: #F7F5F0;
  --white: #FAFAF8;
  --gold: #C69C3F;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* WP core */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }

/* ── BREAKING NEWS ───────────────────────────── */
.breaking-bar {
  background: var(--red); color: #fff;
  padding: 8px 0;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.8rem; font-weight: 600;
  overflow: hidden; position: relative;
}
.breaking-bar .label {
  display: inline-block; background: var(--red-dark);
  padding: 3px 14px; margin-right: 18px;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.6} }
.ticker-wrap {
  display: inline-block; overflow: hidden; white-space: nowrap;
  position: absolute; right: 0; left: 140px; top: 50%; transform: translateY(-50%);
}
.ticker-content {
  display: inline-block; animation: ticker 30s linear infinite; padding-left: 100%;
}
.ticker-content span { margin-right: 60px; }
.ticker-content a { color: #fff; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-100%)} }

/* ── TOPBAR ──────────────────────────────────── */
.topbar {
  background: var(--black); color: var(--gray-light);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.75rem; padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-social a { color: var(--gray-light); margin-left: 14px; transition: color .2s; }
.topbar-social a:hover { color: #fff; }

/* ── MASTHEAD ────────────────────────────────── */
.masthead {
  text-align: center; padding: 28px 0 18px;
  border-bottom: 4px double var(--black); background: var(--white);
}
.masthead-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900; font-size: 3.2rem; color: var(--black); line-height: 1.1;
}
.masthead-logo a { color: var(--black); }
.masthead-logo .accent { color: var(--red); }
.masthead-tagline {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.78rem; color: var(--gray);
  letter-spacing: 0.22em; text-transform: uppercase; margin-top: 4px;
}
.custom-logo-link img { max-height: 80px; width: auto; margin: 0 auto; }

/* ── NAVIGATION ──────────────────────────────── */
.main-nav {
  background: var(--white); border-bottom: 1px solid var(--silver);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.nav-links, .nav-links ul { display: flex; list-style: none; margin: 0; padding: 0; }
.nav-links li a {
  display: block; padding: 14px 16px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--charcoal); transition: color .2s;
}
.nav-links li a:hover,
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a { color: var(--red); }
.nav-links li.current-menu-item > a::after {
  content: ''; display: block; height: 3px; background: var(--red);
  margin-top: 11px; margin-left: -16px; margin-right: -16px;
}
/* Dropdown */
.nav-links li { position: relative; }
.nav-links li ul.sub-menu {
  display: none; position: absolute; top: 100%; left: 0; background: var(--white);
  min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border-top: 3px solid var(--red); flex-direction: column; z-index: 200;
}
.nav-links li:hover > ul.sub-menu { display: flex; }
.nav-links li ul.sub-menu li a { padding: 10px 16px; font-size: 0.78rem; text-transform: none; }

.nav-search input {
  border: 1px solid var(--silver); border-radius: 50px;
  padding: 8px 14px; font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.8rem; width: 180px; background: var(--cream); outline: none;
}
.nav-search input:focus { border-color: var(--red); width: 240px; }
.nav-search button {
  background: none; border: none; color: var(--gray);
  margin-left: -30px; cursor: pointer;
}
.hamburger {
  display: none; background: none; border: none;
  font-size: 1.6rem; color: var(--black); padding: 10px; cursor: pointer;
}

/* ── HERO ────────────────────────────────────── */
.hero { padding: 30px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.hero-main {
  position: relative; border-radius: 6px; overflow: hidden;
  background: var(--black); min-height: 420px; display: block;
}
.hero-main img {
  width: 100%; height: 100%; object-fit: cover; opacity: .6;
  position: absolute; top: 0; left: 0;
}
.hero-main .hero-content {
  position: relative; z-index: 2; padding: 36px 28px;
  display: flex; flex-direction: column; justify-content: flex-end; height: 100%;
}
.cat-badge {
  display: inline-block; background: var(--red); color: #fff;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 4px 12px; border-radius: 2px; margin-bottom: 12px; width: fit-content;
}
.cat-badge a { color: #fff; }
.hero-main h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem; font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 10px;
}
.hero-main h2 a { color: #fff; }
.hero-main .hero-excerpt { color: rgba(255,255,255,.8); font-size: .95rem; max-width: 520px; }
.hero-main .hero-meta {
  margin-top: 14px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.75rem; color: rgba(255,255,255,.55);
}

.hero-sidebar { display: flex; flex-direction: column; gap: 14px; }
.hero-side-card {
  flex: 1; border-radius: 6px; overflow: hidden;
  position: relative; background: var(--black); min-height: 120px;
  display: block; transition: transform .2s;
}
.hero-side-card:hover { transform: translateY(-2px); }
.hero-side-card img {
  width: 100%; height: 100%; object-fit: cover; opacity: .5; position: absolute;
}
.hero-side-card .side-content {
  position: relative; z-index: 2; padding: 18px;
  display: flex; flex-direction: column; justify-content: flex-end; height: 100%;
}
.hero-side-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem; color: #fff; line-height: 1.3; font-weight: 700;
}
.hero-side-card h3 a { color: #fff; }

/* ── SECTION HEADERS ─────────────────────────── */
.section-header { display: flex; align-items: center; margin-bottom: 22px; gap: 14px; }
.section-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem; font-weight: 900; color: var(--black); white-space: nowrap;
}
.section-header::after {
  content: ''; flex: 1; height: 2px;
  background: linear-gradient(to right, var(--red), transparent);
}
.section-header .see-all {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.75rem; font-weight: 600; color: var(--red);
  text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
}

/* ── NEWS CARD GRID ──────────────────────────── */
.latest-section { padding: 36px 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--white); border-radius: 6px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.news-card-img { width: 100%; height: 190px; object-fit: cover; }
.news-card-body { padding: 18px; }
.news-card-cat {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: 6px;
}
.news-card-cat a { color: var(--red); }
.news-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem; font-weight: 700; line-height: 1.35;
  margin-bottom: 8px; color: var(--black);
}
.news-card h3 a { color: var(--black); transition: color .2s; }
.news-card h3 a:hover { color: var(--red); }
.news-card .excerpt { font-size: .88rem; color: var(--gray-dark); line-height: 1.6; margin-bottom: 12px; }
.news-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'DM Sans', Arial, sans-serif; font-size: 0.72rem; color: var(--gray);
}
.share-btns a {
  color: var(--gray-light); margin-left: 8px; font-size: .85rem; transition: color .2s;
}
.share-btns a:hover { color: var(--red); }
.share-btns .wa:hover { color: #25D366; }

/* ── CONTENT + SIDEBAR LAYOUT ────────────────── */
.content-layout {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 36px; padding: 36px 0;
}

/* Opinion cards */
.opinion-card {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--silver);
}
.opinion-card:last-child { border-bottom: none; }
.opinion-card .av {
  width: 50px; height: 50px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; border: 2px solid var(--gold);
}
.opinion-card h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem; font-weight: 700; line-height: 1.35; margin-bottom: 3px;
}
.opinion-card h4 a { color: var(--black); transition: color .2s; }
.opinion-card h4 a:hover { color: var(--red); }
.opinion-card .byline {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.72rem; color: var(--gray); font-weight: 600; text-transform: uppercase;
}

/* ── SIDEBAR ─────────────────────────────────── */
.sidebar .widget { margin-bottom: 32px; }
.sidebar .widget-title,
.sb-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem; font-weight: 900; color: var(--black);
  padding-bottom: 8px; border-bottom: 3px solid var(--red); margin-bottom: 14px;
}
.trending-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.trending-item:last-child { border-bottom: none; }
.trending-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem; font-weight: 900; color: var(--red);
  opacity: .25; line-height: 1; min-width: 30px;
}
.trending-item h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: .9rem; font-weight: 700; line-height: 1.35;
}
.trending-item h4 a { color: var(--black); }
.trending-item h4 a:hover { color: var(--red); }
.trending-item .tmeta { font-family: 'DM Sans', Arial, sans-serif; font-size: .68rem; color: var(--gray); margin-top: 3px; }

/* Newsletter */
.nl-box {
  background: var(--black); color: #fff; padding: 24px; border-radius: 6px;
}
.nl-box .sb-title { color: #fff; border-bottom-color: var(--red); }
.nl-box p { font-size: .86rem; color: var(--gray-light); margin-bottom: 14px; line-height: 1.5; }
.nl-box input[type="email"] {
  width: 100%; padding: 10px 14px; border: 1px solid var(--charcoal);
  background: rgba(255,255,255,.08); color: #fff;
  font-family: 'DM Sans', Arial, sans-serif; font-size: .85rem;
  border-radius: 4px; margin-bottom: 10px; outline: none;
}
.nl-box input::placeholder { color: var(--gray); }
.nl-box input:focus { border-color: var(--red); }
.nl-box button {
  width: 100%; padding: 11px; background: var(--red); color: #fff;
  border: none; border-radius: 4px; font-weight: 700;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: .85rem; text-transform: uppercase; letter-spacing: .08em;
  cursor: pointer; transition: background .2s;
}
.nl-box button:hover { background: var(--red-dark); }

/* ── SINGLE ARTICLE ──────────────────────────── */
.single-post-wrap { padding: 36px 0; }
.single-post-wrap .cat-badge { margin-bottom: 14px; }
.single-post-wrap h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem; font-weight: 900; line-height: 1.2; margin-bottom: 14px;
  max-width: 740px;
}
.author-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--silver);
}
.author-row img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.author-row .info { font-family: 'DM Sans', Arial, sans-serif; font-size: .8rem; }
.author-row .name { font-weight: 700; color: var(--black); }
.author-row .name a { color: var(--black); }
.author-row .date { color: var(--gray); }
.share-row { display: flex; gap: 8px; margin-left: auto; }
.share-row a {
  background: var(--cream); border: 1px solid var(--silver);
  padding: 5px 12px; border-radius: 50px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: .75rem; font-weight: 600; color: var(--charcoal); transition: all .2s;
}
.share-row a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.share-row .wa:hover { background: #25D366; border-color: #25D366; }
.feat-img { width: 100%; max-width: 740px; border-radius: 6px; margin-bottom: 28px; }
.article-body {
  max-width: 700px; font-size: 1.05rem; line-height: 1.85;
}
.article-body p { margin-bottom: 18px; }
.article-body blockquote {
  border-left: 4px solid var(--red); padding: 10px 22px; margin: 24px 0;
  font-style: italic; font-size: 1.1rem; color: var(--charcoal);
  background: rgba(192,57,43,.04);
}
.article-body h2, .article-body h3 {
  font-family: 'Playfair Display', Georgia, serif; margin: 28px 0 14px;
}
.article-body ul, .article-body ol { margin: 14px 0; padding-left: 22px; }
.article-body li { margin-bottom: 6px; list-style: disc; }
.post-tags { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--silver); }
.post-tags a {
  display: inline-block; background: var(--cream); border: 1px solid var(--silver);
  padding: 3px 10px; border-radius: 3px;
  font-family: 'DM Sans', Arial, sans-serif; font-size: .72rem; font-weight: 600;
  color: var(--charcoal); margin: 0 4px 6px 0; transition: all .2s;
}
.post-tags a:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ── COMMENTS ────────────────────────────────── */
.comments-area { max-width: 700px; margin-top: 40px; padding-top: 28px; border-top: 2px solid var(--silver); }
.comments-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem; font-weight: 900; margin-bottom: 18px;
}
.comment-list { margin: 0; padding: 0; }
.comment-list .comment { padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.06); list-style: none; }
.comment-author .avatar { width: 34px; height: 34px; border-radius: 50%; float: left; margin-right: 10px; }
.comment-meta { font-family: 'DM Sans', Arial, sans-serif; font-size: .78rem; margin-bottom: 6px; }
.comment-meta .fn { font-weight: 700; }
.comment-body p { font-size: .9rem; color: var(--charcoal); line-height: 1.6; }
.comment-reply-link { font-family: 'DM Sans', Arial, sans-serif; font-size: .72rem; color: var(--red); font-weight: 600; }
.comment-respond { margin-top: 24px; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--silver); border-radius: 5px;
  font-family: 'Source Serif 4', Georgia, serif; font-size: .92rem; margin-bottom: 12px; outline: none;
}
.comment-form textarea { min-height: 110px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--red); }
.comment-form .submit {
  background: var(--red); color: #fff; border: none; padding: 10px 24px;
  border-radius: 4px; font-weight: 700; font-family: 'DM Sans', Arial, sans-serif;
  font-size: .82rem; text-transform: uppercase; cursor: pointer;
}
.comment-form .submit:hover { background: var(--red-dark); }

/* ── ARCHIVE / SEARCH ────────────────────────── */
.archive-header { padding: 36px 0 18px; border-bottom: 2px solid var(--silver); margin-bottom: 28px; }
.archive-header h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.8rem; font-weight: 900; }
.archive-header p { font-family: 'DM Sans', Arial, sans-serif; font-size: .88rem; color: var(--gray); margin-top: 6px; }
.pagination { display: flex; justify-content: center; gap: 6px; padding: 36px 0; font-family: 'DM Sans', Arial, sans-serif; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; border: 1px solid var(--silver); border-radius: 4px;
  font-size: .85rem; font-weight: 600; padding: 0 10px; transition: all .2s;
}
.pagination a:hover, .pagination .current { background: var(--red); color: #fff; border-color: var(--red); }

/* 404 */
.error-404 { text-align: center; padding: 70px 0; }
.error-404 h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 5rem; font-weight: 900; color: var(--red); opacity: .2; }
.error-404 h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.6rem; margin-bottom: 14px; }
.error-404 p { color: var(--gray); margin-bottom: 20px; }

/* ── FOOTER ──────────────────────────────────── */
.site-footer { background: var(--black); color: var(--gray-light); padding: 44px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; font-weight: 900; color: #fff; margin-bottom: 10px; }
.footer-brand .accent { color: var(--red); }
.footer-brand p { font-size: .86rem; line-height: 1.6; margin-bottom: 16px; }
.footer-social a {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15); align-items: center; justify-content: center;
  margin-right: 6px; font-size: .82rem; color: var(--gray-light); transition: all .2s;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-col h4 {
  font-family: 'DM Sans', Arial, sans-serif; font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-family: 'DM Sans', Arial, sans-serif; font-size: .82rem; color: var(--gray-light); transition: color .2s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  padding: 18px 0; text-align: center;
  font-family: 'DM Sans', Arial, sans-serif; font-size: .72rem; color: var(--gray);
}

/* Back to top */
#back-to-top {
  position: fixed; bottom: 24px; right: 24px; width: 42px; height: 42px;
  background: var(--red); color: #fff; border: none; border-radius: 50%;
  font-size: 1.2rem; display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(192,57,43,.4); z-index: 200; cursor: pointer;
}
#back-to-top.show { display: flex; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sidebar { flex-direction: row; }
  .content-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .masthead-logo { font-size: 2.2rem; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--white);
    border-bottom: 2px solid var(--red); box-shadow: 0 6px 20px rgba(0,0,0,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links li ul.sub-menu { position: static; box-shadow: none; border: none; }
  .hamburger { display: block; }
  .nav-search { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .hero-sidebar { flex-direction: column; }
  .hero-main h2 { font-size: 1.5rem; }
  .single-post-wrap h1 { font-size: 1.5rem; }
  .author-row { flex-wrap: wrap; }
  .share-row { margin-left: 0; margin-top: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
/* Smaller captions for in-body images */
.article-body figcaption,
.article-body .wp-caption-text,
.article-body .wp-block-image figcaption,
.article-body .wp-element-caption {
    font-family: 'DM Sans', Arial, sans-serif !important;
    font-size: 0.78rem !important;
    color: #888 !important;
    font-style: italic !important;
    margin-top: 6px !important;
}
