/* ============================================
   DEUTSCH MIT MRK - B1 CHALLENGE
   Brand colors: Black, Red, Gold (German flag)
   ============================================ */

:root {
  --brand-black: #1a1a1a;
  --brand-red: #c41e1e;
  --brand-red-dark: #991b1b;
  --brand-red-light: #fef2f2;
  --brand-gold: #fbbf24;
  --brand-gold-dark: #d97706;
  --success: #10b981;
  --success-dark: #047857;
  --warning: #f59e0b;
  --danger: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Brand gradient backgrounds */
.gradient-brand {
  background: linear-gradient(135deg, #1a1a1a 0%, #4a0d0d 50%, #c41e1e 100%);
}
.gradient-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}
.gradient-success {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

/* Header */
.app-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #4a0d0d 50%, #c41e1e 100%);
  color: white;
  padding: 0.875rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}
.app-header .container {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.app-header .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: white;
}
.app-header .brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: white;
  padding: 2px;
  object-fit: contain;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.app-header .brand-name {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
}
.app-header .brand-tagline {
  font-size: 0.75rem;
  opacity: 0.85;
}
.app-header .actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.app-header .actions button,
.app-header .actions a {
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.app-header .actions button:hover,
.app-header .actions a:hover {
  background: rgba(251,191,36,0.25);
  border-color: rgba(251,191,36,0.5);
}

/* Cards */
.card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 1.5rem;
}
.card-hover { transition: all 0.2s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-brand {
  background: linear-gradient(135deg, #1a1a1a 0%, #c41e1e 100%);
  color: white;
}
.btn-brand:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(196,30,30,0.3); }
.btn-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #1a1a1a;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(217,119,6,0.3); }
.btn-outline {
  background: white;
  border: 1px solid #d1d5db;
  color: #374151;
}
.btn-outline:hover { background: #f9fafb; }

/* Inputs */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s;
}
.input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(196,30,30,0.1);
}

/* Day cells */
.day-cell {
  border-radius: 0.75rem;
  padding: 0.875rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.day-cell:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.day-cell.locked {
  background: #f3f4f6;
  color: #9ca3af;
  opacity: 0.6;
  cursor: not-allowed;
}
.day-cell.locked:hover { transform: none; box-shadow: none; }
.day-cell.completed {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: white;
}
.day-cell.current {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #1a1a1a;
  font-weight: 600;
  animation: pulse 2s infinite;
}
.day-cell.mock {
  background: linear-gradient(135deg, #fde68a 0%, #fb923c 100%);
  color: #7c2d12;
  border: 2px solid #f97316;
  font-weight: 600;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.85 } }

/* Skill tabs */
.skill-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.skill-tab {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: #f3f4f6;
  color: #4b5563;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.skill-tab.active {
  background: var(--brand-red);
  color: white;
}

/* Recording button */
.recording-pulse {
  animation: recording 1.5s infinite;
}
@keyframes recording {
  0% { box-shadow: 0 0 0 0 rgba(220,38,38,0.7) }
  70% { box-shadow: 0 0 0 20px rgba(220,38,38,0) }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0) }
}

/* Progress bar */
.progress {
  width: 100%;
  height: 0.625rem;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #c41e1e 100%);
  border-radius: 9999px;
  transition: width 0.3s;
}

/* Animations */
@keyframes slideIn {
  from { transform: translateX(20px); opacity: 0 }
  to { transform: translateX(0); opacity: 1 }
}

/* Loading spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--brand-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }
