/* ==========================================================================
   VOCABFLOW – MAIN STYLES (Ocean Teal & Deep Obsidian Design System)
   Gemäß ZEYU-Tools: farbpaletten.md, mobile-native, emil-design-eng
   ========================================================================== */

:root {
  /* Farbsystem (Ocean Teal Palette aus farbpaletten.md) */
  --bg-primary: #0A0F14;          /* Fast schwarz / Obsidian Hintergrund */
  --bg-surface: #101920;          /* Dunkle Struktur-Ebene */
  --bg-card: #142028;             /* Kartenoberfläche */
  --bg-card-back: #182630;        /* Kartenrückseite */
  --bg-card-hover: #1B2C37;

  --border-subtle: rgba(127, 179, 184, 0.16);
  --border-strong: rgba(127, 179, 184, 0.35);

  --brand-teal: #2E6F73;          /* Hauptfarbe Teal */
  --brand-teal-light: #7FB3B8;    /* Akzent-Teal hell */
  --brand-teal-glow: rgba(46, 111, 115, 0.3);

  --color-correct: #10B981;       /* Smaragdgrün Gewusst */
  --color-correct-glow: rgba(16, 185, 129, 0.35);
  --color-wrong: #F43F5E;         /* Korallenrot Nicht gewusst */
  --color-wrong-glow: rgba(244, 63, 94, 0.35);
  --color-gold: #F59E0B;          /* Streak / Flamme */

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 1px rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 25px var(--brand-teal-glow);
}

/* Box-Sizing & Mobile-Native Baseline */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100dvh;             /* modern-web & mobile-native: 100dvh */
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  overscroll-behavior-y: none;    /* mobile-native: Pull-to-refresh verhindern */
  -webkit-tap-highlight-color: transparent; /* mobile-native: Kein grauer Tap-Flash */
  user-select: none;              /* mobile-native: Textselektion auf UI verhindern */
}

/* App-Container */
#app {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 540px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: env(safe-area-inset-top, 16px) 16px env(safe-area-inset-bottom, 20px) 16px;
  position: relative;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 16px 4px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--brand-teal-light);
}

.brand-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
}

.header-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.streak-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold);
}

.progress-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Progress-Balken */
.session-progress-bar {
  width: 100%;
  height: 5px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 20px;
}

.session-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-teal), var(--color-correct));
  border-radius: var(--radius-full);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active Press States (emil-design-eng) */
button, .clickable {
  touch-action: manipulation;
  transition: transform 0.12s ease-out, background-color 0.15s ease-out;
}

button:active, .clickable:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  button:hover {
    filter: brightness(1.1);
  }
}
