/*
Theme Name: Casino Vertex
Theme URI: https://casinovertex.com
Author: Casino Vertex Editorial
Description: Custom editorial/news theme for casinovertex.com — a gambling-industry news and analysis site. Built to look like a credible trade publication (masthead, breaking ticker, category nav, editorial credibility strip) rather than an affiliate review site.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casino-vertex
*/

:root {
  --bg: #f8f7f2;
  --ink: #1a1c22;
  --ink-soft: #4a4e5a;
  --line: #e1ded4;
  --card: #ffffff;
  --navy: #1748d1;
  --navy-soft: #3f6cf0;
  --red: #ef3d4e;
  --gold: #f5a300;
  --gold-bright: #ffce3d;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.sans { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; left: -9999px; }

/* Utility bar */
.util-bar {
  background: var(--navy);
  color: #dbe4fb;
  font-size: 12px;
}
.util-bar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 24px; flex-wrap: wrap; gap: 6px;
}
.util-bar .date { color: #9fb6f5; }
.util-bar .links { display: flex; gap: 18px; }
.util-bar .links a:hover { color: #fff; }

/* Masthead */
.masthead {
  background: var(--bg);
  border-bottom: 3px solid var(--ink);
  padding: 28px 24px 18px;
  text-align: center;
}
.kicker {
  font-family: 'Segoe UI', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  font-weight: 700;
}
.masthead h1 { font-size: 52px; letter-spacing: -0.01em; font-weight: 400; }
.masthead h1 a { display: inline-block; }
.masthead h1 .mark { color: var(--gold); font-style: italic; }
.masthead .tagline {
  font-family: 'Segoe UI', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 6px;
  letter-spacing: 0.03em;
}

/* Nav */
nav.main-nav { background: var(--ink); font-family: 'Segoe UI', sans-serif; }
nav.main-nav .wrap { display: flex; justify-content: center; gap: 32px; padding: 0 24px; flex-wrap: wrap; }
nav.main-nav ul { list-style: none; display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
nav.main-nav a {
  color: #e7e5e0; font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
  padding: 14px 0; display: inline-block; border-bottom: 2px solid transparent;
}
nav.main-nav a:hover, nav.main-nav .current-menu-item > a, nav.main-nav a.active {
  color: #fff; border-bottom-color: var(--gold-bright);
}

/* Breaking ticker */
.ticker { background: var(--red); color: #fff; font-family: 'Segoe UI', sans-serif; font-size: 13px; display: flex; align-items: center; padding: 8px 0; overflow: hidden; }
.ticker .tag { background: #fff; color: var(--red); font-weight: 800; font-size: 11px; padding: 3px 10px; border-radius: 3px; margin: 0 16px 0 24px; white-space: nowrap; letter-spacing: 0.04em; }
.ticker .items { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker .items span { margin-right: 36px; color: #fff2f1; }
.ticker .items a { color: inherit; }

/* Featured / hero grid */
.featured { padding: 40px 24px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; border-bottom: 1px solid var(--line); }
.lead-story .thumb { height: 320px; background: linear-gradient(135deg, var(--navy), var(--navy-soft)); background-size: cover; background-position: center; border-radius: 4px; margin-bottom: 18px; position: relative; }
.lead-story .thumb.has-image::after { content: none; }
.lead-story .thumb::after {
  content: "FEATURED"; position: absolute; top: 14px; left: 14px;
  background: var(--gold-bright); color: #1a1c22; font-family: 'Segoe UI', sans-serif; font-size: 10px; font-weight: 800;
  letter-spacing: 0.08em; padding: 4px 10px; border-radius: 3px;
}
.cat-tag { font-family: 'Segoe UI', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.lead-story h2 { font-size: 32px; margin: 10px 0 12px; line-height: 1.15; }
.lead-story h2 a:hover { text-decoration: underline; }
.lead-story p.dek { color: var(--ink-soft); font-size: 16px; margin-bottom: 12px; }
.byline { font-family: 'Segoe UI', sans-serif; font-size: 12px; color: #7b8090; }

.side-stories { display: flex; flex-direction: column; gap: 20px; }
.side-story { display: flex; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.side-story:last-child { border-bottom: none; }
.side-thumb { width: 92px; height: 68px; flex-shrink: 0; background: #e8ecf7 center/cover no-repeat; border-radius: 3px; }
.side-story h3 { font-size: 15px; line-height: 1.3; margin-bottom: 6px; }
.side-story h3 a:hover { text-decoration: underline; }
.side-story .byline { font-size: 11px; }

/* Section: news grid by category */
.section { padding: 44px 24px; border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.section-head h2 { font-size: 20px; font-family: 'Segoe UI', sans-serif; letter-spacing: 0.02em; }
.section-head a { font-family: 'Segoe UI', sans-serif; font-size: 12px; color: var(--red); font-weight: 600; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card .thumb { height: 150px; background: #e8ecf7 center/cover no-repeat; border-radius: 3px; margin-bottom: 12px; }
.news-card h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.3; }
.news-card h3 a:hover { text-decoration: underline; }
.news-card p { font-size: 13px; color: var(--ink-soft); font-family: 'Segoe UI', sans-serif; }
.empty-state { font-family: 'Segoe UI', sans-serif; color: var(--ink-soft); font-size: 14px; }

/* Credibility / press strip */
.credibility { background: var(--navy); color: #dfe4ee; padding: 44px 24px; font-family: 'Segoe UI', sans-serif; }
.credibility .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.credibility h4 { color: var(--gold-bright); font-size: 14px; margin-bottom: 8px; }
.credibility p { font-size: 12.5px; color: #c3d0f7; }

/* Newsletter / press CTA */
.press-cta { padding: 50px 24px; text-align: center; font-family: 'Segoe UI', sans-serif; }
.press-cta h2 { font-family: Georgia, serif; font-size: 26px; margin-bottom: 10px; }
.press-cta p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 22px; font-size: 14px; }
.press-cta .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-dark { background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 4px; font-size: 13px; font-weight: 600; display: inline-block; }
.btn-outline { border: 1px solid var(--ink); padding: 12px 22px; border-radius: 4px; font-size: 13px; font-weight: 600; display: inline-block; }

/* Footer */
footer.site-footer { background: #10131d; color: #a7b0c9; font-family: 'Segoe UI', sans-serif; padding: 40px 24px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 28px; }
footer.site-footer h4 { color: var(--gold-bright); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
footer.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer.site-footer ul a { font-size: 13px; }
footer.site-footer ul a:hover { color: #fff; }
.footer-about p { font-size: 13px; margin-top: 8px; max-width: 340px; }
.footer-bottom { border-top: 1px solid #262b3d; padding-top: 16px; font-size: 11px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Single post / page content */
.article-header { padding: 40px 24px 20px; border-bottom: 1px solid var(--line); }
.article-header h1 { font-size: 38px; line-height: 1.15; margin: 12px 0 14px; }
.article-header .dek { font-size: 17px; color: var(--ink-soft); margin-bottom: 14px; }
.article-featured-image { width: 100%; max-height: 460px; object-fit: cover; border-radius: 4px; margin-top: 18px; }
.entry-content { padding: 34px 24px 10px; max-width: 760px; margin: 0 auto; font-size: 18px; }
.entry-content p { margin-bottom: 1.3em; }
.entry-content h2 { font-size: 26px; margin: 1.4em 0 0.6em; }
.entry-content h3 { font-size: 21px; margin: 1.2em 0 0.5em; font-family: 'Segoe UI', sans-serif; }
.entry-content ul, .entry-content ol { margin: 0 0 1.3em 1.4em; }
.entry-content blockquote { border-left: 3px solid var(--red); padding-left: 18px; color: var(--ink-soft); font-style: italic; margin: 1.5em 0; }
.entry-content a { color: var(--navy); text-decoration: underline; }
.entry-content img { border-radius: 4px; margin: 1em 0; }
.responsible-notice { max-width: 760px; margin: 30px auto 10px; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; font-family: 'Segoe UI', sans-serif; font-size: 12.5px; color: var(--ink-soft); }

.page-content { padding: 40px 24px 60px; max-width: 760px; margin: 0 auto; font-size: 17px; }
.page-content h1 { font-size: 34px; margin-bottom: 20px; }
.page-content p { margin-bottom: 1.2em; }

.archive-header { padding: 40px 24px 10px; text-align: center; }
.archive-header h1 { font-size: 30px; font-family: 'Segoe UI', sans-serif; }
.archive-list { padding: 20px 24px 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1180px; margin: 0 auto; }

.pagination { font-family: 'Segoe UI', sans-serif; padding: 10px 24px 50px; text-align: center; font-size: 13px; }
.pagination a, .pagination span { padding: 8px 12px; margin: 0 4px; border: 1px solid var(--line); border-radius: 3px; display: inline-block; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .archive-list { grid-template-columns: 1fr; }
  .credibility .wrap { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav.main-nav .wrap, nav.main-nav ul { flex-wrap: wrap; gap: 16px; justify-content: flex-start; }
  .article-header h1 { font-size: 28px; }
  .entry-content { font-size: 16px; }
}
