/*
Theme Name: Squats Que
Theme URI: https://squatsque.com
Author: Squats Que Team
Author URI: https://squatsque.com
Description: Custom WordPress theme for Squats Que - Delhi's premier sports grounds booking facility
Version: 1.0.0
Requires at least: 5.8
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: squats-que
Tags: sports, booking, modern, responsive, custom
*/

/* ==========================================================================
   Base Styles & CSS Variables
   ========================================================================== */

:root {
  /* Colors */
  --color-primary: #00ff41;
  --color-accent: #00ff41;
  --color-background: #0a0a0a;
  --color-card: #111111;
  --color-foreground: #ffffff;
  --color-muted: #999999;
  --color-border: #222222;
  
  /* Fonts */
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  
  /* Spacing */
  --container-max-width: 1280px;
  --spacing-unit: 1rem;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.text-gradient-turf {
  background: linear-gradient(135deg, var(--color-primary) 0%, #00cc33 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   Layout
   ========================================================================== */

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

.section {
  padding: 5rem 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-primary);
  letter-spacing: 0.1em;
}

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

.main-nav a {
  color: var(--color-foreground);
  font-weight: 500;
  transition: color 0.3s;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-foreground);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-background);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-foreground);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, 
    var(--color-background) 0%, 
    rgba(10, 10, 10, 0.9) 50%, 
    rgba(10, 10, 10, 0.6) 100%
  );
  z-index: 1;
}

.hero-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, 
    var(--color-background) 0%, 
    transparent 50%, 
    rgba(10, 10, 10, 0.5) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.hero-title {
  margin-bottom: 1.5rem;
  line-height: 0.95;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  max-width: 40rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-stat svg {
  color: var(--color-accent);
}

/* ==========================================================================
   Sport Cards
   ========================================================================== */

.sport-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.sport-card {
  position: relative;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s;
}

.sport-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: 0 20px 40px rgba(0, 255, 65, 0.2);
}

.sport-card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.sport-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.sport-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-card) 0%, transparent 50%);
}

.sport-card-content {
  padding: 2rem;
}

.sport-card-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.sport-card-description {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.sport-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.sport-card-feature {
  padding: 0.5rem 1rem;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-primary);
}

/* ==========================================================================
   Features Grid
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.05) 0%, rgba(0, 255, 65, 0.02) 100%);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  transition: all 0.3s;
}

.feature-item:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 65, 0.1);
  border-radius: 50%;
  color: var(--color-primary);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-description {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.8) 0%, rgba(17, 17, 17, 0.6) 100%);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-rating svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
  color: var(--color-accent);
}

.testimonial-text {
  color: var(--color-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-style: italic;
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-sport {
  padding: 0.25rem 0.75rem;
  background: rgba(0, 255, 65, 0.1);
  color: var(--color-primary);
  border-radius: 1rem;
  font-size: 0.8rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

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

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: var(--color-muted);
  transition: color 0.3s;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-background);
    border-top: 2px solid var(--color-primary);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }
  
  .main-nav.active {
    max-height: 500px;
    padding: 1.5rem 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  
  .main-nav li {
    border-bottom: 1px solid var(--color-border);
  }
  
  .main-nav li:last-child {
    border-bottom: none;
  }
  
  .main-nav a {
    padding: 1rem 1.5rem;
    display: block;
    font-size: 1.125rem;
  }
  
  .main-nav a:hover {
    background: rgba(0, 255, 65, 0.1);
  }
  
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
  }
  
  .mobile-menu-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
  }
  
  .mobile-menu-toggle.active {
    background: var(--color-primary);
    color: var(--color-background);
    border-color: var(--color-primary);
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

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

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.bg-gradient-card {
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.8) 0%, rgba(17, 17, 17, 0.6) 100%);
}

.field-pattern {
  background-image: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 100px,
      rgba(0, 255, 65, 0.03) 100px,
      rgba(0, 255, 65, 0.03) 101px
    );
}
