/*
Theme Name: College Football Hub
Theme URI: https://collegefootballhub.com
Author: College Football Hub Team
Author URI: https://collegefootballhub.com
Description: Ultimate NCAA College Football WordPress Theme. Features live scoreboard ticker, verified TV & streaming guides, AP Top 25 rankings, conference standings, and 259 team schedule hubs. Built for programmatic SEO with Schema.org SportsEvent & SportsTeam rich snippets.
Version: 1.0.0
Tested up to: 6.7
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: college-football-hub
Tags: sports, entertainment, news, dark-mode, custom-post-types, grid-layout, custom-menu, translation-ready, seo-friendly
*/

/* Base Theme Reset and Styling */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,600;0,700;1,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Teko:wght@500;600;700&display=swap');

:root {
  --bg-main: #070a11;
  --bg-card: #0b101a;
  --bg-card-hover: #101625;
  --bg-header: rgba(7, 10, 17, 0.96);
  --border-color: #1e293b;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --amber-primary: #f59e0b;
  --amber-hover: #fbbf24;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-scoreboard: 'Teko', 'Chakra Petch', sans-serif;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--amber-hover);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Header & Ticker */
.cfh-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.cfh-top-banner {
  background: #090d15;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cfh-top-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cfh-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
}

.cfh-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.cfh-logo img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.cfh-logo span.badge {
  color: var(--amber-primary);
  font-size: 0.65rem;
  font-family: monospace;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.cfh-menu {
  display: none;
  list-style: none;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .cfh-menu {
    display: flex;
    align-items: center;
  }
}

.cfh-menu li a {
  padding: 0.4rem 0.75rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 0.5rem;
  transition: all 0.15s ease;
}

.cfh-menu li a:hover,
.cfh-menu li.current-menu-item a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

/* Live Ticker */
.cfh-ticker-wrap {
  background: #06090f;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
}

.cfh-ticker-badge {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 0.25rem;
  margin-left: 1rem;
  margin-right: 0.75rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cfh-ticker-badge .pulse-dot {
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.cfh-ticker-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 0.5rem;
}

.cfh-ticker-track::-webkit-scrollbar {
  display: none;
}

.cfh-ticker-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
}

/* Matchup Cards */
.cfh-games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .cfh-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cfh-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cfh-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.cfh-card:hover {
  background: var(--bg-card-hover);
  border-color: #334155;
  transform: translateY(-2px);
}

.cfh-card-top {
  background: #080c14;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.725rem;
}

.cfh-card-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.cfh-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cfh-team-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.cfh-team-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cfh-team-rank {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--amber-primary);
  background: rgba(245, 158, 11, 0.15);
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
}

.cfh-score {
  font-family: var(--font-scoreboard);
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
}

.cfh-card-bottom {
  margin-top: auto;
  padding: 0.6rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Watch CTA Button */
.cfh-btn-watch {
  color: var(--amber-primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
}

.cfh-btn-watch:hover {
  color: var(--amber-hover);
}

/* Footer */
.cfh-footer {
  margin-top: auto;
  background: #05070d;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.cfh-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cfh-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.cfh-footer h4 {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cfh-footer ul {
  list-style: none;
}

.cfh-footer ul li {
  margin-bottom: 0.5rem;
}

.cfh-footer ul li a {
  color: var(--text-muted);
}

.cfh-footer ul li a:hover {
  color: #ffffff;
}

.cfh-footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .cfh-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
