/*
Theme Name: Swipe Sports Pro
Theme URI: https://swipesports.com
Author: Franny Praker
Author URI: https://swipesports.com
Description: Modern sports news theme with bold design and card-based layouts
Version: 1.0.0
License: GPL v2
Text Domain: swipesports-pro
*/

/* === CSS Variables === */
:root {
  --primary: #0a1628;
  --secondary: #0055ff;
  --accent: #ff3333;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --radius: 8px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-100);
}

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

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

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

/* === Header === */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.site-logo span {
  color: var(--secondary);
}

/* === Navigation === */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.main-nav a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a:hover {
  color: var(--white);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s;
}

.main-nav a:hover::after {
  width: 100%;
}

/* === Hero Section === */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1a365d 100%);
  padding: 3rem 1rem;
  margin-bottom: 2rem;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-featured {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-featured img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  padding: 2rem;
}

.hero-category {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.hero-title a {
  color: inherit;
}

.hero-meta {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

.hero-secondary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.hero-card-title a {
  color: inherit;
}

.hero-card-title a:hover {
  color: var(--secondary);
}

/* === Main Content === */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.view-all {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary);
}

/* === Article Cards === */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.article-image {
  position: relative;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--secondary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.article-content {
  padding: 1.25rem;
}

.article-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.article-title a {
  color: inherit;
}

.article-title a:hover {
  color: var(--secondary);
}

.article-excerpt {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* === Sidebar === */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary);
}

.widget-list {
  list-style: none;
}

.widget-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.widget-list li:last-child {
  border-bottom: none;
}

.widget-list a {
  color: var(--gray-800);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget-list a:hover {
  color: var(--secondary);
}

.widget-list .count {
  color: var(--gray-600);
  font-size: 0.8rem;
  margin-left: auto;
}

/* === Footer === */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 3rem 1rem 1.5rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-widget h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

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

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

.footer-widget a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-widget a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

/* === Mobile Menu === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  
  .hero-featured img {
    height: 300px;
  }
  
  .main-container {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    order: 2;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-nav ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }
  
  .main-nav ul.active {
    display: flex;
  }
  
  .main-nav li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .main-nav a {
    display: block;
    padding: 1rem 0;
  }
  
  .article-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 1.25rem;
  }
}
