/* Professional Index Page - Clean & Minimal Karate Platform */

/* Theme Variables - Dark Mode Default */
:root {
  /* Dark mode as default */
  --bg-primary: #0D0D0D;
  --bg-secondary: #1A1A1A;
  --bg-elevated: #1E1E1E;
  --text-primary: #FDF3E7;
  --text-secondary: #d1d5db;
  --text-tertiary: #9ca3af;
  --text-muted: #9ca3af;
  --border-subtle: rgba(211, 47, 47, 0.2);
  --border-medium: rgba(211, 47, 47, 0.3);
  --accent-red: #DC2626;
  --accent-red-hover: #B91C1C;
  --accent-gold: #FBBF24;
}

/* Ensure dark theme always applies */
[data-theme="dark"],
[data-bs-theme="dark"],
body {
  --bg-primary: #0D0D0D;
  --bg-secondary: #1A1A1A;
  --bg-elevated: #1E1E1E;
  --text-primary: #FDF3E7;
  --text-secondary: #d1d5db;
  --text-tertiary: #9ca3af;
  --text-muted: #9ca3af;
  --border-subtle: rgba(211, 47, 47, 0.2);
  --border-medium: rgba(211, 47, 47, 0.3);
  --accent-red: #DC2626;
  --accent-red-hover: #B91C1C;
  --accent-gold: #FBBF24;
}

/* Hero Section */
.karate-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--navbar-height, 70px) + 4rem);
  padding-bottom: 3rem;
  background: var(--bg-primary);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
  box-sizing: border-box;
}

/* Subtle background accent */
.karate-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(220, 38, 38, 0.03) 0%, transparent 70%);
  opacity: 0.5;
}

/* Background image */
.karate-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/static/core/images/index_scene.png');
  background-size: 35%;
  background-position: center 65%;
  background-repeat: no-repeat;
  opacity: 0.08;
  z-index: 0;
  filter: invert(1) brightness(1.2);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero-title span {
  display: block;
  margin-top: 0.25em;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--accent-red);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* Features Section */
.features-section {
  position: relative;
  padding: 5rem 0;
  background: var(--bg-primary);
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.tatami-mat {
  /* Keep tatami background visible */
}

.features-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.tatami-grid {
  position: relative;
  z-index: 1;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  height: 100%;
  transition: all 0.15s ease;
}

.feature-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-elevated);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--accent-red);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-chip {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.feature-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-meta span {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}

.feature-meta span::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: 600;
}

/* How It Works Section */
.how-it-works {
  padding: 5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.how-it-works h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.how-it-works .lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.step-card {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.15s ease;
}

.step-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-2px);
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 38, 38, 0.1);
  border: 2px solid var(--accent-red);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-red);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Callout Section */
.callout-section {
  padding: 5rem 0;
  background: var(--bg-primary);
}

.callout-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.callout-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.callout-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cyber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--accent-red);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-cyber:hover {
  background: var(--accent-red-hover);
  color: white;
  transform: translateY(-2px);
}

.btn-cyber.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-cyber.secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .karate-hero {
    min-height: 50vh;
    padding-top: calc(var(--navbar-height, 60px) + 1.5rem);
    padding-bottom: 2rem;
  }

  .features-section,
  .how-it-works,
  .callout-section {
    padding: 2.5rem 0;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .step-card {
    padding: 1.25rem;
    gap: 1rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    flex-shrink: 0;
  }

  .callout-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-cyber {
    width: 100%;
    padding: 12px 24px;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .features-title,
  .how-it-works h2,
  .callout-title {
    font-size: 1.6rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}
