/* ============================================================
   Total Highlights - style.css
   ============================================================ */

:root {
  --red:     #e31837;
  --dark:    #0d0d0d;
  --mid:     #1a1a2e;
  --gray:    #f4f4f4;
  --text:    #1c1c1c;
  --muted:   #666;
  --white:   #fff;
  --radius:  8px;
  --shadow:  0 2px 12px rgba(0,0,0,.1);
  --nfl:     #013369;
  --nba:     #c9082a;
  --mlb:     #002d72;
  --nhl:     #000;
  --mls:     #005293;
  --college: #7b2d8b;
  --general: #444;
  --font:    'Inter', system-ui, -apple-system, sans-serif;
  --max:     1280px;
}

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

body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }

img { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ---- Header ---- */
.site-header { background: var(--dark); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 2rem; height: 60px; }
.logo { display: flex; align-items: center; gap: .5rem; color: var(--white); font-weight: 800; font-size: 1.2rem; flex-shrink: 0; }
.logo-icon { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 4px; background: var(--red); color: var(--white); font-size: .78rem; line-height: 1; letter-spacing: 0; }
.main-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.main-nav a { color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; transition: color .2s; }
.main-nav a:hover { color: var(--red); }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; margin-left: auto; }

/* ---- Ticker ---- */
.ticker-bar { background: var(--red); overflow: hidden; height: 36px; display: flex; align-items: center; }
.ticker-inner { display: flex; align-items: center; gap: 0; width: 100%; overflow: hidden; }
.ticker-label { background: var(--dark); color: var(--white); font-size: .7rem; font-weight: 800; letter-spacing: .1em; padding: 0 1rem; height: 36px; display: flex; align-items: center; flex-shrink: 0; }
.ticker-track { display: flex; align-items: center; gap: 1.5rem; animation: ticker 40s linear infinite; white-space: nowrap; padding-left: 1rem; }
.ticker-track a { color: var(--white); font-size: .82rem; font-weight: 600; flex-shrink: 0; }
.ticker-track a:hover { text-decoration: underline; }
.ticker-sep { color: rgba(255,255,255,.5); flex-shrink: 0; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---- Badges ---- */
.sport-badge { display: inline-block; padding: .15rem .55rem; border-radius: 3px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--white); margin-bottom: .5rem; }
.sport-nfl     { background: var(--nfl); }
.sport-nba     { background: var(--nba); }
.sport-mlb     { background: var(--mlb); }
.sport-nhl     { background: var(--nhl); }
.sport-mls     { background: var(--mls); }
.sport-college { background: var(--college); }
.sport-general { background: var(--general); }

.sport-color-nfl     { color: var(--nfl); }
.sport-color-nba     { color: var(--nba); }
.sport-color-mlb     { color: var(--mlb); }
.sport-color-nhl     { color: var(--nhl); }
.sport-color-mls     { color: var(--mls); }
.sport-color-college { color: var(--college); }

/* ---- Hero ---- */
.hero { background: var(--mid); color: var(--white); padding: 3rem 0; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero-title a { color: var(--white); }
.hero-title a:hover { color: var(--red); }
.hero-excerpt { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 1rem; }
.hero-meta time { font-size: .85rem; color: rgba(255,255,255,.5); }
.hero-image img { border-radius: var(--radius); width: 100%; object-fit: cover; height: 360px; }
.btn-primary { display: inline-block; margin-top: 1.25rem; background: var(--red); color: var(--white); padding: .7rem 1.6rem; border-radius: var(--radius); font-weight: 700; transition: background .2s; }
.btn-primary:hover { background: #c4142f; color: var(--white); }

/* ---- Sections ---- */
.section { padding: 3rem 0; }
.section-sport { background: var(--gray); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.section-title { font-size: 1.5rem; font-weight: 800; }
.see-all { font-size: .85rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .05em; }

/* ---- News Grid ---- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.card-image-link img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1rem; font-weight: 700; line-height: 1.35; margin-bottom: .5rem; flex: 1; }
.card-excerpt { font-size: .875rem; color: var(--muted); margin-bottom: .75rem; }
.card-meta time { font-size: .78rem; color: var(--muted); }

/* ---- Three-item freshness banner ---- */
.news-banner { background: var(--mid); color: var(--white); padding: 2rem 0; }
.news-banner-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.news-banner-head .ticker-label { height: auto; min-height: 28px; padding: .35rem .75rem; border-radius: 3px; background: var(--red); }
.news-banner .see-all { color: rgba(255,255,255,.78); }
.news-banner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.news-banner-item { min-height: 180px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; }
.news-banner-item h2 { font-size: 1.05rem; line-height: 1.35; margin: .2rem 0 .65rem; }
.news-banner-item h2 a { color: var(--white); }
.news-banner-item h2 a:hover { color: #ffb3bf; }
.news-banner-item p { color: rgba(255,255,255,.74); font-size: .9rem; line-height: 1.55; margin-bottom: .85rem; }
.news-banner-item .card-meta { margin-top: auto; display: flex; gap: .4rem; flex-wrap: wrap; color: rgba(255,255,255,.56); font-size: .78rem; }
.news-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 31%); gap: 1rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; padding-bottom: .5rem; }
.news-rail-card { scroll-snap-align: start; min-height: 330px; }
.news-thumb { display: block; margin: -1rem -1rem .85rem; background: rgba(255,255,255,.08); }
.news-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.news-grid-rich { align-items: stretch; }
.news-card-rich .card-image-link img { aspect-ratio: 16 / 9; height: auto; background: var(--gray); }
.news-card-rich .card-meta { display: flex; gap: .4rem; flex-wrap: wrap; color: var(--muted); font-size: .78rem; margin-top: auto; }

/* ---- Sport Row ---- */
.sport-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.sport-featured img { border-radius: var(--radius); width: 100%; height: 280px; object-fit: cover; margin-bottom: .75rem; }
.sport-featured h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.sport-featured h3 a:hover { color: var(--red); }
.sport-featured p { font-size: .9rem; color: var(--muted); }
.sport-list { display: flex; flex-direction: column; gap: .75rem; justify-content: center; }
.sport-list-item { border-bottom: 1px solid #e0e0e0; padding-bottom: .75rem; }
.sport-list-item h4 { font-size: .95rem; font-weight: 600; line-height: 1.3; }
.sport-list-item h4 a:hover { color: var(--red); }
.sport-list-item time { font-size: .78rem; color: var(--muted); }

/* ---- Article ---- */
.article-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; padding-top: 2rem; padding-bottom: 3rem; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 1.5rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--red); }
.article-header { margin-bottom: 1.5rem; }
.article-header h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.25; margin-bottom: .75rem; }
.article-meta { font-size: .85rem; color: var(--muted); }
.article-figure { margin-bottom: 1.5rem; }
.article-figure img { border-radius: var(--radius); width: 100%; max-height: 500px; object-fit: cover; }
.article-figure figcaption { font-size: .78rem; color: var(--muted); margin-top: .4rem; }
.article-content { font-size: 1.05rem; line-height: 1.8; }
.article-content p { margin-bottom: 1.2rem; }
.article-content h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 .75rem; }
.article-content h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.article-content ul, .article-content ol { margin: 1rem 0 1rem 1.5rem; }
.article-content li { margin-bottom: .4rem; }
.article-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #e0e0e0; }
.share-bar { display: flex; align-items: center; gap: .75rem; font-size: .85rem; font-weight: 600; }
.share-btn { padding: .4rem .9rem; border-radius: var(--radius); font-size: .82rem; font-weight: 700; color: var(--white); }
.share-x  { background: #000; }
.share-fb { background: #1877f2; }

/* ---- Sidebar ---- */
.article-sidebar { padding-top: 0; }
.sidebar-widget { background: var(--gray); border-radius: var(--radius); padding: 1.25rem; }
.sidebar-widget h3 { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem; border-bottom: 2px solid var(--red); padding-bottom: .5rem; }
.sidebar-item { display: flex; gap: .75rem; padding-bottom: .75rem; margin-bottom: .75rem; border-bottom: 1px solid #e0e0e0; }
.sidebar-item:last-child { border-bottom: none; margin-bottom: 0; }
.sidebar-item img { border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.sidebar-item a { font-size: .875rem; font-weight: 600; line-height: 1.3; display: block; margin-bottom: .25rem; }
.sidebar-item a:hover { color: var(--red); }
.sidebar-item time { font-size: .75rem; color: var(--muted); }

/* ---- Pagination ---- */
.pagination { display: flex; gap: .5rem; justify-content: center; padding: 2rem 0; flex-wrap: wrap; }
.pagination a { padding: .5rem .9rem; border: 1px solid #ddd; border-radius: var(--radius); font-size: .9rem; font-weight: 600; }
.pagination a:hover, .pagination a.active { background: var(--red); color: var(--white); border-color: var(--red); }

/* ---- Footer ---- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.8); padding: 3rem 0 0; margin-top: 3rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-brand .logo { color: var(--white); margin-bottom: .75rem; }
.footer-brand p { font-size: .875rem; color: rgba(255,255,255,.5); }
.footer-links h4 { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: .75rem; }
.footer-links a { display: block; font-size: .875rem; color: rgba(255,255,255,.7); margin-bottom: .4rem; }
.footer-links a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0; }
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.35); }

.empty-msg { color: var(--muted); font-size: 1rem; padding: 3rem 0; text-align: center; }

.search-form { display: flex; gap: .75rem; align-items: stretch; margin: 1.5rem 0 2rem; max-width: 760px; }
.search-form input { flex: 1; min-width: 0; border: 1px solid #d1d5db; border-radius: 6px; padding: .75rem .9rem; font: inherit; }
.search-form input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,24,55,.1); }
.search-form .btn-primary { border: 0; cursor: pointer; margin-top: 0; }
.search-count { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }

/* ---- SEO Static Pages (pushed by your tool) ---- */
.seo-page-wrap { max-width: 900px; margin: 2rem auto; padding: 0 1.25rem 3rem; }
.seo-page-wrap h1 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.seo-page-wrap .eeat-block { background: var(--gray); border-left: 4px solid var(--red); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 2rem 0; font-size: .9rem; }
.seo-page-wrap .faq-section h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.seo-page-wrap .faq-item { border-bottom: 1px solid #e0e0e0; padding: .75rem 0; }
.seo-page-wrap .faq-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: .4rem; }

/* ---- Booking CTA block (homepage / article / category) ---- */
.booking-cta-block { background: linear-gradient(135deg, #0d0d0d 0%, #1a1a2e 100%); color: var(--white); border-radius: var(--radius); padding: 2rem; margin: 2.5rem 0; }
.booking-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.booking-cta-text h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .4rem; }
.booking-cta-text p  { color: rgba(255,255,255,.75); font-size: .9rem; max-width: 480px; }
.booking-cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn-booking-call  { background: var(--red); color: var(--white); padding: .7rem 1.4rem; border-radius: var(--radius); font-weight: 700; font-size: .95rem; white-space: nowrap; transition: opacity .2s; }
.btn-booking-call:hover { opacity: .88; color: var(--white); }
.btn-booking-form  { background: rgba(255,255,255,.12); color: var(--white); border: 1px solid rgba(255,255,255,.3); padding: .7rem 1.4rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem; white-space: nowrap; transition: background .2s; }
.btn-booking-form:hover { background: rgba(255,255,255,.22); color: var(--white); }

/* ---- Booking page ---- */
.booking-call-banner { display: flex; align-items: center; gap: 1rem; background: #f8f8f8; border-left: 4px solid var(--red); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.75rem; font-size: .95rem; }
.booking-call-icon   { font-size: 1.5rem; flex-shrink: 0; }
.booking-success { background: #f0fdf4; border: 1px solid #86efac; border-radius: var(--radius); padding: 1.75rem 2rem; margin-top: 1rem; }
.booking-success h2  { color: #166534; font-size: 1.4rem; margin-bottom: .5rem; }
.booking-errors { background: #fff5f5; border: 1px solid #fca5a5; border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.booking-errors p    { color: #991b1b; font-size: .9rem; margin-bottom: .25rem; }
.booking-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-weight: 600; font-size: .9rem; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea { border: 1px solid #d1d5db; border-radius: 6px; padding: .6rem .85rem; font-size: .95rem; font-family: var(--font); color: var(--text); width: 100%; transition: border-color .15s; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,24,55,.1); }
.form-group textarea { resize: vertical; }
.form-note   { font-size: .8rem; color: var(--muted); }
.req         { color: var(--red); }
.btn-submit-booking { align-self: flex-start; padding: .85rem 2rem; font-size: 1rem; border: none; cursor: pointer; }

/* ---- Mobile booking modal ---- */
.mobile-action-bar { display: none; }
.booking-modal { position: fixed; inset: 0; z-index: 500; display: none; }
.booking-modal.open { display: block; }
.booking-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.58); }
.booking-modal-panel { position: absolute; left: 50%; top: 50%; width: min(92vw, 460px); max-height: calc(100vh - 2rem); overflow-y: auto; transform: translate(-50%, -50%); background: var(--white); border-radius: var(--radius); box-shadow: 0 22px 70px rgba(0,0,0,.28); }
.booking-modal-close { position: absolute; top: .65rem; right: .65rem; width: 2rem; height: 2rem; border: 0; border-radius: 4px; background: rgba(255,255,255,.14); color: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.booking-modal-head { background: linear-gradient(135deg, var(--dark), var(--mid)); color: var(--white); padding: 1.35rem 1.35rem 1.2rem; }
.booking-modal-kicker { color: var(--red); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .25rem; }
.booking-modal-head h2 { font-size: 1.35rem; line-height: 1.2; margin-bottom: .35rem; }
.booking-modal-head p { color: rgba(255,255,255,.72); font-size: .9rem; line-height: 1.5; max-width: 24rem; }
.booking-modal-form { display: flex; flex-direction: column; gap: .9rem; padding: 1.2rem 1.35rem 1.35rem; }
.booking-modal-form .form-group { gap: .3rem; }
.booking-modal-form input,
.booking-modal-form select { min-height: 44px; background: #fff; }
.booking-modal-status { min-height: 1.25rem; color: #166534; font-size: .88rem; font-weight: 600; }
.booking-modal-status.is-error { color: #991b1b; }
.booking-modal-submit { width: 100%; margin-top: 0; border: 0; cursor: pointer; }
.booking-modal-submit:disabled { opacity: .68; cursor: progress; }
.hp-field { display: none; }
.booking-modal-open { overflow: hidden; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .booking-cta-inner { flex-direction: column; align-items: flex-start; } }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner     { grid-template-columns: 1fr; }
  .hero-image     { display: none; }
  .sport-row      { grid-template-columns: 1fr; }
  .article-wrap   { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr 1fr; }
  .news-banner-grid { grid-template-columns: 1fr; }
  .news-rail { grid-auto-columns: minmax(260px, 82%); }
}

@media (max-width: 640px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .main-nav       { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--dark); padding: 1rem; gap: .75rem; }
  .main-nav.open  { display: flex; }
  .nav-toggle     { display: block; }
  .news-grid      { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr; }
  .search-form    { flex-direction: column; }
  .mobile-action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 400; display: grid; grid-template-columns: 1fr 1fr; padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(13,13,13,.94); box-shadow: 0 -8px 26px rgba(0,0,0,.22); }
  .mobile-action-btn { display: grid; place-items: center; min-height: 48px; border: 0; font: inherit; font-size: .95rem; font-weight: 800; cursor: pointer; }
  .mobile-action-book { background: var(--red); color: var(--white); border-radius: 6px 0 0 6px; }
  .mobile-action-call { background: var(--white); color: var(--dark); border-left: 1px solid rgba(0,0,0,.08); border-radius: 0 6px 6px 0; }
  .mobile-action-btn:hover { color: inherit; }
  .booking-modal-panel { top: auto; bottom: calc(.75rem + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(94vw, 460px); max-height: calc(100vh - 2rem - env(safe-area-inset-bottom)); }
}
