/* ============================================
   LIGHTSQUARE ACADEMY - ENHANCED STYLESHEET
   Chess tutoring website for Robin
   ============================================ */

/* CSS Custom Properties (Variables) for theming */
:root {
  /* Light theme (default) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #fff3e0;
  --bg-hero: #ffe9dc;
  --text-primary: #2f3542;
  --text-secondary: #555;
  --text-muted: #777;
  --accent-primary: #ffa502;
  --accent-hover: #e59400;
  --accent-light: #fff8e1;
  --border-color: #ddd;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.3);
  --gradient-dark: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  --card-bg: rgba(255, 255, 255, 0.85);
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --success: #27ae60;
  --error: #e74c3c;
  --info: #3498db;
}

/* Dark theme */
[data-theme="dark"] {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-tertiary: #0f3460;
  --bg-hero: #1a1a2e;
  --text-primary: #eaeaea;
  --text-secondary: #b8b8b8;
  --text-muted: #888;
  --accent-primary: #ffa502;
  --accent-hover: #ffb733;
  --accent-light: #2a2a4a;
  --border-color: #3a3a5a;
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-medium: rgba(0, 0, 0, 0.4);
  --shadow-dark: rgba(0, 0, 0, 0.6);
  --gradient-dark: linear-gradient(135deg, #0a0a15, #151530, #1a2a40);
  --card-bg: rgba(26, 26, 46, 0.95);
  --overlay-bg: rgba(0, 0, 0, 0.7);
}

/* General Reset & Body */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  background-image: url('../images/lightsquarelogo3.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-primary);
  animation: fadeInBody 0.8s ease-out;
  position: relative;
  z-index: 0;
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

[data-theme="dark"] body {
  background-image: linear-gradient(rgba(10, 10, 20, 0.85), rgba(10, 10, 20, 0.85)), 
                    url('../images/lightsquarelogo3.jpg');
}

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

/* Subtle animated pattern overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(45deg, var(--accent-primary) 25%, transparent 25%),
    linear-gradient(-45deg, var(--accent-primary) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--accent-primary) 75%),
    linear-gradient(-45deg, transparent 75%, var(--accent-primary) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
  opacity: 0.02;
  z-index: -1;
  pointer-events: none;
  animation: slowMove 60s linear infinite;
}

@keyframes slowMove {
  0% { background-position: 0 0, 0 20px, 20px -20px, -20px 0px; }
  100% { background-position: 40px 40px, 40px 60px, 60px 20px, 20px 40px; }
}

/* Sections */
section {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  margin: 20px;
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
  box-shadow: 0 8px 30px var(--shadow-medium);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  background-image: url('../images/chess-pattern.png');
  background-repeat: repeat-x;
  background-size: contain;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px var(--shadow-dark);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: 200px;
  text-decoration: none;
}

.logo img {
  height: 70px;
  width: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 4px 20px rgba(255, 165, 2, 0.4);
}

.logo-fallback {
  display: none;
  font-size: 1.2rem;
  color: #fff;
  font-weight: bold;
}

.logo img[style*="none"] + .logo-fallback {
  display: inline;
}

/* Navigation */
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  z-index: 15;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 80%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-primary);
}

/* Dark mode toggle in nav */
.theme-toggle {
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  background: rgba(255, 165, 2, 0.1);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  transition: transform 0.3s ease;
}

[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun,
:root:not([data-theme]) .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon,
:root:not([data-theme]) .theme-toggle .icon-moon { display: inline; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-hero) 0%, #ffd4b8 100%);
  background-image: url('../images/chess-pattern.png');
  background-blend-mode: overlay;
  animation: fadeInUp 0.8s ease-out;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #1a2a40 0%, #0f3460 100%);
}

.hero::before {
  content: '♔';
  position: absolute;
  font-size: 15rem;
  opacity: 0.03;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '♕';
  position: absolute;
  font-size: 12rem;
  opacity: 0.03;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  animation: float 6s ease-in-out infinite 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50% { transform: translateY(-55%) rotate(5deg); }
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px var(--shadow-light);
  color: var(--text-primary);
  font-weight: 700;
}

.hero p {
  max-width: 650px;
  margin: 0 auto 25px;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.hero p em {
  font-style: italic;
  display: block;
  margin-top: 12px;
  font-size: 1rem;
  color: var(--text-muted);
  opacity: 0.9;
}

/* CTA Button */
.cta-button {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hover) 100%);
  color: #222;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  margin-top: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 165, 2, 0.4);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 165, 2, 0.5);
}

.cta-button:active {
  transform: translateY(-1px);
}

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

/* Button container for multiple buttons */
.button-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ============================================
   BIO CARD
   ============================================ */
.bio-card {
  margin: 2rem auto;
  max-width: 650px;
  background: var(--bg-primary);
  border-radius: 16px;
  box-shadow: 0 4px 25px var(--shadow-light);
  overflow: hidden;
  transition: all 0.3s ease;
}

.bio-card:hover {
  box-shadow: 0 8px 35px var(--shadow-medium);
}

.bio-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-tertiary);
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease;
}

.bio-header:hover {
  background: var(--accent-light);
}

.bio-header:focus {
  outline: 3px solid var(--accent-primary);
  outline-offset: 2px;
}

.bio-header img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 4px solid var(--accent-primary);
  box-shadow: 0 4px 20px var(--shadow-medium);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.bio-header img:hover {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 8px 30px rgba(255, 165, 2, 0.4);
}

.bio-summary h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.bio-summary p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.bio-summary .arrow {
  display: inline-block;
  margin-left: 0.4rem;
  transition: transform 0.3s ease;
  color: var(--accent-primary);
}

.bio-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  background: var(--bg-primary);
  padding: 0 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.bio-details.open {
  max-height: 500px;
  padding: 1.5rem;
}

/* ============================================
   STATS COUNTER SECTION
   ============================================ */
.stats-section {
  background: var(--gradient-dark);
  padding: 60px 20px;
  margin: 0;
  border-radius: 0;
}

.stats-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   WHY CHOOSE ME SECTION
   ============================================ */
.why-choose-me {
  background: var(--gradient-dark);
  color: #fff;
  padding: 70px 20px;
  margin: 0;
  border-radius: 0;
}

.why-choose-me .container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.why-choose-me h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.why-choose-me .intro {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.6;
  opacity: 0.9;
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 35px 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.feature-card .icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.85;
  margin: 0;
}

/* ============================================
   DAILY CHESS TIP
   ============================================ */
.daily-tip {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 40px 30px;
  margin: 30px 20px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.daily-tip::before {
  content: '♞';
  position: absolute;
  font-size: 8rem;
  opacity: 0.1;
  right: -20px;
  bottom: -20px;
}

.daily-tip h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  opacity: 0.9;
}

.daily-tip .tip-content {
  font-size: 1.4rem;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.daily-tip .tip-author {
  margin-top: 15px;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px 30px;
}

.faq-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--accent-primary);
}

.faq-question .faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--accent-primary);
}

.faq-item.open .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-section {
  padding: 60px 20px;
  background: var(--bg-secondary);
  margin: 0;
  border-radius: 0;
}

.pricing-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.pricing-section .subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border: 2px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px var(--shadow-medium);
}

.pricing-card.featured {
  border-color: var(--accent-primary);
  transform: scale(1.02);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: #222;
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.pricing-card .price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin: 15px 0;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 25px 0;
  text-align: left;
}

.pricing-card li {
  padding: 8px 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  padding: 60px 20px;
  margin: 0;
  border-radius: 0;
  text-align: center;
  color: #fff;
}

.newsletter-section h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.newsletter-section p {
  opacity: 0.9;
  margin-bottom: 25px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 250px;
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(255, 165, 2, 0.5);
}

.newsletter-form button {
  padding: 14px 30px;
  background: var(--accent-primary);
  color: #222;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* ============================================
   TESTIMONIAL SLIDER
   ============================================ */
.testimonial-slider {
  position: relative;
  width: 100%;
  max-width: 650px;
  margin: 50px auto;
  overflow: hidden;
  padding: 20px;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-bubble {
  min-width: 100%;
  box-sizing: border-box;
  padding: 30px;
  background: var(--bg-secondary);
  border-radius: 20px;
  box-shadow: 0 4px 20px var(--shadow-light);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  border: 1px solid var(--border-color);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.testimonial-header strong {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.stars {
  display: flex;
  gap: 3px;
}

.stars span {
  color: #f1c40f;
  font-size: 1.1rem;
}

.testimonial-nav {
  text-align: center;
  margin-top: 20px;
}

.testimonial-nav button {
  font-size: 1.8rem;
  margin: 0 8px;
  cursor: pointer;
  background: var(--accent-primary);
  border: none;
  border-radius: 50%;
  color: #222;
  width: 45px;
  height: 45px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.testimonial-nav button:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  background-image: url('../images/chess-pattern.png');
  background-repeat: repeat-x;
  background-size: contain;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  font-size: 0.95rem;
}

footer a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

footer p {
  margin: 10px 0;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.footer-links a {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
}

/* ============================================
   RESOURCES PAGE
   ============================================ */
.resources-page {
  max-width: 950px;
  margin: 40px auto;
  padding: 0 20px;
}

.resources-page h1 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.resource-section {
  margin-bottom: 50px;
}

.resource-section h2 {
  border-bottom: 3px solid var(--accent-primary);
  padding-bottom: 10px;
  margin-bottom: 25px;
  color: var(--text-primary);
  font-size: 1.5rem;
}

/* Skill level dropdown */
#elo-select {
  padding: 12px 20px;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  min-width: 200px;
  transition: border-color 0.3s ease;
}

#elo-select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Accordion */
.accordion {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-primary);
}

.accordion-item {
  border-top: 1px solid var(--border-color);
}

.accordion-item:first-child {
  border-top: none;
}

.accordion-header {
  width: 100%;
  background: var(--bg-secondary);
  cursor: pointer;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  border: none;
  outline: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent-primary);
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-header::after {
  transform: rotate(45deg);
}

.accordion-header:hover {
  background: var(--accent-light);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--bg-primary);
  padding: 0 25px;
}

.accordion-item.open .accordion-content {
  max-height: 800px;
  padding: 20px 25px;
}

.accordion-content ol {
  padding-left: 20px;
  color: var(--text-secondary);
}

.accordion-content ol li {
  padding: 4px 0;
}

.accordion-content iframe {
  margin-top: 15px;
  border-radius: 10px;
}

/* ============================================
   FORMS
   ============================================ */
.booking-form {
  max-width: 600px;
  margin: 40px auto;
  padding: 40px;
  background: var(--bg-primary);
  border-radius: 16px;
  box-shadow: 0 4px 25px var(--shadow-light);
}

.booking-form h2 {
  text-align: center;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.booking-form > p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(255, 165, 2, 0.2);
}

.form-group input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
}

/* ============================================
   EVENTS PAGE
   ============================================ */
.upcoming-events-title {
  text-align: center;
  font-size: 2rem;
  margin: 40px 0 20px;
  color: var(--text-primary);
}

.event-container {
  max-width: 600px;
  margin: 30px auto;
  padding: 35px;
  background: var(--gradient-dark);
  border-radius: 20px;
  color: white;
  box-shadow: 0 8px 30px var(--shadow-dark);
  text-align: center;
}

.event-container h1 {
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.event-container p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.countdown {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  letter-spacing: 2px;
  color: var(--accent-primary);
}

.event-button {
  background: var(--accent-primary);
  border: none;
  color: #222;
  font-weight: 700;
  padding: 14px 35px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.event-button:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* ============================================
   COMMUNITY PAGE
   ============================================ */
.chat-container {
  max-width: 750px;
  margin: 50px auto;
  padding: 30px;
  text-align: center;
}

.chat-container h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: var(--text-primary);
}

.chat-container iframe {
  border-radius: 12px;
  box-shadow: 0 8px 30px var(--shadow-medium);
  max-width: 100%;
}

.chat-container small {
  display: block;
  margin-top: 20px;
  color: var(--text-muted);
}

.chat-container small a {
  color: var(--accent-primary);
  margin: 0 8px;
}

/* Social links for community */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  background: var(--bg-secondary);
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
}

.social-link:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--shadow-light);
}

.social-link i {
  font-size: 1.3rem;
}

/* ============================================
   COOKIE CONSENT BANNER (GDPR)
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 46, 0.98);
  color: #fff;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner p {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--accent-primary);
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cookie-btn.accept {
  background: var(--accent-primary);
  color: #222;
}

.cookie-btn.decline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn:hover {
  transform: scale(1.05);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent-primary);
  color: #222;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(255, 165, 2, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 165, 2, 0.5);
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 165, 2, 0.3);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   SKIP LINK (Accessibility)
   ============================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-primary);
  color: #222;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 2px;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  .logo img {
    height: 55px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(26, 26, 46, 0.98);
    text-align: center;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 20px;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .nav-links a::after {
    display: none;
  }

  .theme-toggle {
    margin-top: 15px;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .why-choose-me h2,
  .faq-section h2,
  .pricing-section h2 {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .pricing-card.featured {
    transform: none;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input[type="email"] {
    min-width: 100%;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .booking-form {
    margin: 20px;
    padding: 25px;
  }

  .chat-container iframe {
    height: 400px;
  }
}

@media (max-width: 480px) {
  section {
    margin: 10px;
    padding: 15px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .testimonial-bubble {
    padding: 20px;
  }

  .feature-card {
    padding: 25px 20px;
  }

  .countdown {
    font-size: 1.6rem;
  }
}

/* Prevent horizontal scroll */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* All elements fit inside */
img, iframe, video {
  max-width: 100%;
  height: auto;
}
