/*
Theme Name: SportSurge Live
Theme URI: https://sportsurgelive.com
Author: SportSurge
Author URI: https://sportsurgelive.com
Description: A clean, fast WordPress theme for sports news and live streaming websites. Dark theme with green accents.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sportsurge
Tags: blog, news, sports, dark, custom-menu, featured-images, custom-logo
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0f1923;
  --bg-secondary: #1a2332;
  --bg-card: #1e2d3d;
  --bg-card-hover: #243547;
  --text-primary: #e0e6ed;
  --text-secondary: #8899a6;
  --text-muted: #5b7083;
  --accent: #17b978;
  --accent-hover: #14a56a;
  --accent-light: #17b97822;
  --border: #2e3d4f;
  --red: #e0245e;
  --orange: #f5a623;
  --max-width: 1200px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

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

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

/* === TOP BAR === */
.top-bar {
  background: var(--accent);
  padding: 6px 0;
  overflow: hidden;
}
.top-bar .container {
  display: flex;
  align-items: center;
  gap: 24px;
}
.top-bar-categories {
  display: flex;
  gap: 16px;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
}
.top-bar-categories a {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 0;
}
.top-bar-categories a:hover { color: #ffffffcc; }

/* === HEADER === */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-logo {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}
.site-logo span { color: var(--accent); }

/* === NAV === */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}
.main-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.main-nav a:hover,
.main-nav .current-menu-item a {
  color: #fff;
  background: var(--accent-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
}
.search-toggle:hover { background: var(--bg-card); }

.btn-signup {
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-signup:hover { background: var(--accent-hover); color: #fff; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* === SEARCH OVERLAY === */
.search-overlay {
  display: none;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.search-overlay.active { display: block; }
.search-overlay input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
}
.search-overlay input:focus { border-color: var(--accent); }

/* === HERO SLIDER === */
.hero-slider {
  position: relative;
  margin-bottom: 32px;
}
.hero-slide {
  position: relative;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  display: none;
}
.hero-slide.active { display: block; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,25,35,0.95) 0%, rgba(15,25,35,0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}
.hero-category {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  width: fit-content;
}
.hero-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}
.hero-title a { color: #fff; }
.hero-title a:hover { color: var(--accent); }
.hero-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* === CONTENT LAYOUT === */
.site-content {
  padding: 32px 0;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

/* === POST CARDS === */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.post-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}
.post-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.post-card-image {
  height: 180px;
  overflow: hidden;
  position: relative;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.post-card:hover .post-card-image img { transform: scale(1.05); }

.post-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.post-card-body { padding: 16px; }
.post-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.post-card-title a { color: var(--text-primary); }
.post-card-title a:hover { color: var(--accent); }
.post-card-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.post-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.5;
}
.post-card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.read-more {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}

/* === SIDEBAR === */
.sidebar {}
.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.widget-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.widget ul { list-style: none; }
.widget li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.widget li:last-child { border-bottom: none; }
.widget a {
  color: var(--text-secondary);
  font-size: 14px;
}
.widget a:hover { color: var(--accent); }

/* Category widget with counts */
.cat-item a { display: flex; justify-content: space-between; }
.cat-count {
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

/* Recent posts widget */
.recent-post-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.recent-post-item:last-child { border-bottom: none; }
.recent-post-thumb {
  width: 70px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.recent-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-post-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
.recent-post-date { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* === SINGLE POST === */
.single-post-header { margin-bottom: 24px; }
.single-post-category {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.single-post-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}
.single-post-meta {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
}
.single-post-featured {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.single-post-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.single-post-content h2, .single-post-content h3 {
  color: var(--text-primary);
  margin: 24px 0 12px;
}
.single-post-content p { margin-bottom: 16px; }
.single-post-content img { border-radius: var(--radius); margin: 16px 0; }
.single-post-content a { color: var(--accent); text-decoration: underline; }

/* Tags */
.post-tags { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.post-tags a {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid var(--border);
}
.post-tags a:hover { border-color: var(--accent); color: var(--accent); }

/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
}
.pagination a {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current {
  background: var(--accent);
  color: #fff;
}

/* === FOOTER === */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 40px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-about .site-logo { margin-bottom: 12px; display: inline-block; }
.footer-about p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.footer-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { padding: 4px 0; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--text-muted); font-size: 14px; }
.footer-social a:hover { color: var(--accent); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
}
@media (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .main-nav.active {
    display: block;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }
  .main-nav.active ul { flex-direction: column; }
  .hero-slide { height: 280px; }
  .hero-title { font-size: 20px; }
  .header-inner { padding: 0 16px; }
  .top-bar-categories { display: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
