/*
Theme Name: Basketball - Sports Energy
Theme URI: https://popithefly.com
Author: Popi The Fly
Author URI: https://popithefly.com
Description: A high-energy, video-first WordPress theme for basketball content creators. Features vivid colors, mobile-first responsive design, and custom video post types. Perfect for sports vlogs, highlight reels, and basketball content.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
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: popi the fly
Tags: sports, video, blog, basketball, responsive, mobile-first, vivid-colors, entertainment

Basketball Vlog Theme, Copyright 2025
Basketball Vlog Theme is distributed under the terms of the GNU GPL
*/

/* ============================================
   Basketball - Sports Energy
   ============================================ */

:root {
  /* Primary Vivid Accents */
  --color-red-electric: #FF2D55;
  --color-yellow-neon: #FFD60A;
  --color-teal-vibrant: #30D5C8;
  --color-blue-deep: #101585;
  --color-orange-energy: #FF6B35;
  
  /* Neutral Foundation */
  --color-black-rich: #0A0A0A;
  --color-gray-cool: #1C1C1E;
  --color-gray-mid: #48484A;
  --color-gray-light: #8E8E93;
  --color-white-pure: #FFFFFF;
  
  /* Semantic Colors */
  --color-success: #34C759;
  --color-warning: #FF9500;
  --color-error: #FF453A;
  --color-info: var(--color-teal-vibrant);
  
  /* Background Layers */
  --bg-page: var(--color-black-rich);
  --bg-surface: var(--color-gray-cool);
  --bg-elevated: rgba(28, 28, 30, 0.95);
  
  /* Typography */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Roboto Mono', monospace;
  
  /* Font Sizes */
  --text-hero-desktop: 96px;
  --text-hero-mobile: 56px;
  --text-h1-desktop: 72px;
  --text-h1-mobile: 48px;
  --text-h2-desktop: 48px;
  --text-h2-mobile: 32px;
  --text-h3-desktop: 32px;
  --text-h3-mobile: 24px;
  --text-body-lg-desktop: 20px;
  --text-body-lg-mobile: 18px;
  --text-body: 16px;
  --text-body-sm: 14px;
  --text-caption: 12px;
  
  /* Font Weights */
  --weight-black: 900;
  --weight-extrabold: 800;
  --weight-bold: 700;
  --weight-medium: 500;
  --weight-regular: 400;
  
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(255, 45, 85, 0.08);
  --shadow-card: 0 4px 16px rgba(16, 21, 133, 0.12), 0 1px 4px rgba(0, 0, 0, 0.24);
  --shadow-card-hover: 0 8px 32px rgba(48, 213, 200, 0.16), 0 2px 8px rgba(0, 0, 0, 0.32);
  --shadow-modal: 0 24px 64px rgba(10, 10, 10, 0.64), 0 4px 16px rgba(255, 45, 85, 0.12);
  
  /* Animation Timings */
  --duration-instant: 100ms;
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-epic: 800ms;
  
  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1440px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

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

body {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  color: var(--color-white-pure);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-teal-vibrant);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--color-orange-energy);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-bold);
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-white-pure);
}

h1 {
  font-size: var(--text-h1-mobile);
  font-weight: var(--weight-extrabold);
}

h2 {
  font-size: var(--text-h2-mobile);
  font-weight: var(--weight-bold);
}

h3 {
  font-size: var(--text-h3-mobile);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-gray-light);
}

@media (min-width: 1024px) {
  h1 {
    font-size: var(--text-h1-desktop);
  }
  h2 {
    font-size: var(--text-h2-desktop);
  }
  h3 {
    font-size: var(--text-h3-desktop);
  }
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-2xl);
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
    padding: 0 var(--space-3xl);
  }
}

/* ============================================
   GRID SYSTEM
   ============================================ */

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .grid-cols-2-md {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .grid-cols-3-lg {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-red-electric);
  color: var(--color-white-pure);
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  background-color: var(--color-orange-energy);
  transform: scale(1.05);
  box-shadow: var(--shadow-card-hover);
  color: var(--color-white-pure);
}

.btn-secondary {
  background-color: var(--color-teal-vibrant);
  color: var(--color-white-pure);
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
  background-color: var(--color-blue-deep);
  transform: scale(1.05);
  box-shadow: var(--shadow-card-hover);
  color: var(--color-white-pure);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-white-pure);
  border: 2px solid var(--color-white-pure);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white-pure);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) ease;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: scale(1.02);
}

.card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-normal) ease;
}

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

.card-content {
  padding: var(--space-md);
}

@media (min-width: 1024px) {
  .card-content {
    padding: var(--space-lg);
  }
}

/* ============================================
   NAVIGATION
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--bg-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow var(--duration-normal) ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  height: 40px;
  font-size: var(--text-h3-mobile);
  font-weight: var(--weight-black);
  color: var(--color-white-pure);
}

.main-navigation {
  display: none;
}

@media (min-width: 768px) {
  .main-navigation {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
  }
  
  .main-navigation a {
    font-size: var(--text-body);
    font-weight: var(--weight-medium);
    color: var(--color-white-pure);
    position: relative;
    padding-bottom: 4px;
  }
  
  .main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-red-electric);
    transition: width var(--duration-normal) ease;
  }
  
  .main-navigation a:hover::after,
  .main-navigation a.active::after {
    width: 100%;
  }
  
  .main-navigation a:hover {
    color: var(--color-teal-vibrant);
  }
}

.mobile-menu-toggle {
  display: block;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white-pure);
  margin: 6px 0;
  transition: all var(--duration-fast) ease;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-black-rich), var(--color-gray-cool), var(--color-blue-deep));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    rgba(10, 10, 10, 0.7), 
    rgba(10, 10, 10, 0.4), 
    rgba(10, 10, 10, 0.7)
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: var(--space-2xl) var(--space-md);
}

.hero-title {
  font-size: var(--text-hero-mobile);
  font-weight: var(--weight-black);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  animation: slideUp var(--duration-epic) ease-out;
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: var(--text-hero-desktop);
  }
}

.hero-tagline {
  font-size: var(--text-body-lg-mobile);
  font-weight: var(--weight-medium);
  color: var(--color-gray-light);
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
  animation: slideUp var(--duration-epic) ease-out 200ms;
  animation-fill-mode: backwards;
}

@media (min-width: 1024px) {
  .hero-tagline {
    font-size: var(--text-body-lg-desktop);
  }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  animation: slideUp var(--duration-epic) ease-out 400ms;
  animation-fill-mode: backwards;
}

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section {
  padding: var(--space-3xl) 0;
}

@media (min-width: 1024px) {
  .section {
    padding: var(--space-4xl) 0;
  }
}

.section-header {
  text-align: left;
  margin-bottom: var(--space-3xl);
  max-width: 900px;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-teal-vibrant);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--text-h1-mobile);
  font-weight: var(--weight-extrabold);
  color: var(--color-white-pure);
  margin-bottom: var(--space-md);
}

@media (min-width: 1024px) {
  .section-title {
    font-size: var(--text-h1-desktop);
  }
}

.section-description {
  font-size: var(--text-body-lg-mobile);
  color: var(--color-gray-light);
  max-width: 700px;
}

@media (min-width: 1024px) {
  .section-description {
    font-size: var(--text-body-lg-desktop);
  }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background-color: var(--color-black-rich);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-gray-mid);
}

.footer-content {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }
}

.footer-section h3 {
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
  color: var(--color-white-pure);
  margin-bottom: var(--space-md);
}

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

.footer-section li {
  margin-bottom: var(--space-xs);
}

.footer-section a {
  color: var(--color-gray-light);
  font-size: var(--text-body-sm);
}

.footer-section a:hover {
  color: var(--color-teal-vibrant);
}

.footer-copyright {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-gray-mid);
  text-align: center;
  color: var(--color-gray-light);
  font-size: var(--text-body-sm);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bounceGentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.screen-reader-text {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: var(--space-md);
  background-color: var(--color-white-pure);
  color: var(--color-black-rich);
  z-index: 10000;
}

button:focus,
a:focus {
  outline: 3px solid var(--color-teal-vibrant);
  outline-offset: 2px;
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */

.alignleft {
  float: left;
  margin-right: var(--space-md);
}

.alignright {
  float: right;
  margin-left: var(--space-md);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: var(--text-body-sm);
  color: var(--color-gray-light);
  margin-top: var(--space-xs);
}

.sticky {
  /* Sticky post styles can be added here */
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}
