/**
 * Landing Page Styles - IELTS-style Clean Design
 * Goethe Assessment - Public-facing website
 */

:root {
  --primary: #e30613;
  --primary-dark: #b0050f;
  --secondary: #005ea8;
  --text: #1a1a2e;
  --text-light: #666;
  --bg: #fff;
  --bg-light: #f8f9fa;
  --border: #e5e5e5;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
}

[data-theme="dark"] {
  --text: #f0f0f0;
  --text-light: #a0a0a0;
  --bg: #121212;
  --bg-light: #1e1e1e;
  --border: #3a3a3a;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-icon {
  font-size: 1.75rem;
}

.logo-text span {
  color: var(--primary);
}

.main-nav {
  display: flex;
  gap: 8px;
}

.main-nav a {
  padding: 8px 16px;
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: rgba(227, 6, 19, 0.08);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hero.compact {
  padding: 60px 0;
  text-align: left;
}

.breadcrumb {
  margin-bottom: 20px;
  opacity: 0.7;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero.compact h1 {
  font-size: 2.5rem;
}

.hero .subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Level Selector */
.level-selector {
  padding: 80px 0;
  background: var(--bg-light);
}

.level-selector h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 16px;
}

.level-selector > .container > p {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 48px;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.level-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  border: 2px solid transparent;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.level-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.level-badge {
  display: inline-block;
  width: 64px;
  height: 64px;
  line-height: 64px;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.level-card[data-level="A1"] .level-badge { background: #4caf50; color: white; }
.level-card[data-level="A2"] .level-badge { background: #8bc34a; color: white; }
.level-card[data-level="B1"] .level-badge { background: #ffc107; color: #000; }
.level-card[data-level="B2"] .level-badge { background: #ff9800; color: white; }
.level-card[data-level="C1"] .level-badge { background: #f44336; color: white; }

.level-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.level-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.level-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.level-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Features Section */
.features {
  padding: 80px 0;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
}

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

.feature {
  display: flex;
  gap: 20px;
}

.feature-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Stats Section */
.stats {
  background: var(--bg-light);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  color: var(--text-light);
  margin-top: 8px;
}

/* How It Works */
.how-it-works {
  padding: 80px 0;
}

.how-it-works h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
}

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

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 20px;
}

.step h3 {
  margin-bottom: 12px;
}

.step p {
  color: var(--text-light);
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.cta-box {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-light);
  margin-bottom: 32px;
}

.cta-box .small {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--border);
}

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

.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
  text-align: center;
}

.site-footer p {
  margin-bottom: 8px;
}

.site-footer .small {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Practice Page Specific */
.test-info {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.test-meta {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

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

.meta-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.meta-value {
  font-weight: 600;
  font-size: 1.1rem;
}

.structure-section {
  padding: 80px 0;
}

.structure-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
}

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

.structure-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.structure-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.structure-card .duration {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.structure-card ul {
  list-style: none;
  color: var(--text-light);
}

.structure-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.structure-card li:last-child {
  border-bottom: none;
}

.tips-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.tips-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
}

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

.tip {
  display: flex;
  gap: 16px;
  background: var(--bg);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tip-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.tip p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.other-levels {
  padding: 60px 0;
  text-align: center;
}

.other-levels h2 {
  margin-bottom: 32px;
}

.level-cards {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero.compact h1 {
    font-size: 1.75rem;
  }
  
  .site-header .container {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 20px;
  }
  
  .main-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    width: 100%;
    padding-top: 10px;
    -webkit-overflow-scrolling: touch;
  }
  
  .main-nav a {
    padding: 6px 10px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  
  .test-meta {
    gap: 24px;
  }
  
  .cta-box {
    padding: 40px 24px;
  }
}

/* AdSense Placeholder Styles */
.ad-container {
  background: var(--bg-light);
  border: 1px dashed var(--border);
  padding: 20px;
  text-align: center;
  color: var(--text-light);
  margin: 24px 0;
  border-radius: var(--radius);
}

.ad-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* Dark mode overrides for inline practice pages */
[data-theme="dark"] .mode-card,
[data-theme="dark"] .question-card,
[data-theme="dark"] .audio-player-modern,
[data-theme="dark"] .stats-bar,
[data-theme="dark"] .option-btn,
[data-theme="dark"] .audio-section {
  background: #1e1e1e !important;
  color: #f0f0f0;
}

[data-theme="dark"] .option-btn:hover {
  background: rgba(227, 6, 19, 0.15);
}

[data-theme="dark"] .option-btn.selected {
  background: rgba(227, 6, 19, 0.25);
}

[data-theme="dark"] .level-btn {
  background: #2a2a2a;
  color: #f0f0f0;
  border-color: #3a3a3a;
}

[data-theme="dark"] .level-nav a {
  background: #2a2a2a;
  color: #f0f0f0;
  border-color: #3a3a3a;
}
