/* ==========================================================================
   BODYCOACH WORKOUT PORTAL - CORE DESIGN SYSTEM
   Theme: Obsidian Black (#0a0a0d), Stark White (#ffffff), Electric Yellow (#facc15)
   Typography: Teko (Headings) & Inter (Body & UI)
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #08080a;
  --bg-secondary: #121216;
  --bg-tertiary: #1a1a22;
  --card-bg: rgba(22, 22, 28, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);

  /* Primary Accent - Electric Yellow */
  --yellow-primary: #facc15;
  --yellow-hover: #eab308;
  --yellow-glow: rgba(250, 204, 21, 0.25);
  --yellow-glow-strong: rgba(250, 204, 21, 0.5);

  /* Fire Accent - Fat Loss */
  --fire-primary: #f97316;
  --fire-glow: rgba(249, 115, 22, 0.25);

  /* Neutral Tones */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  --border-muted: rgba(255, 255, 255, 0.1);
  --danger-color: #ef4444;
  --success-color: #22c55e;

  /* Typography */
  --font-heading: 'Teko', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Elevation & Shadows */
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
  --shadow-yellow: 0 0 20px rgba(250, 204, 21, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

/* --- Base Reset & Setup --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Background Atmosphere Glow */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.08) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Typography --- */
h1, h2, h3, h4, .font-teko {
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.05;
}

h1 { font-size: 2.75rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 500; }

a {
  color: var(--yellow-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffffff;
}

/* --- Glassmorphic Container Utility --- */
.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
}

/* --- Buttons --- */
button {
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-yellow {
  background-color: var(--yellow-primary);
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px var(--yellow-glow);
}

.btn-primary-yellow:hover {
  background-color: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--yellow-glow-strong);
}

.btn-sm-yellow {
  background-color: var(--yellow-primary);
  color: var(--text-dark);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-sm-yellow:hover {
  background-color: var(--yellow-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-muted);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
}

.btn-ghost:hover {
  border-color: var(--yellow-primary);
  color: var(--yellow-primary);
  background: rgba(250, 204, 21, 0.05);
}

.btn-ghost-sm {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-muted);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.btn-ghost-sm:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-link {
  background: none;
  border: none;
  color: var(--yellow-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.btn-link:hover {
  color: #ffffff;
}

.btn-block {
  width: 100%;
  display: block;
}

/* --- Badges & Tags --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-gold {
  background: rgba(250, 204, 21, 0.15);
  color: var(--yellow-primary);
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.badge-fire {
  background: rgba(249, 115, 22, 0.15);
  color: var(--fire-primary);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-yellow {
  background: var(--yellow-primary);
  color: #000;
}

.badge-outline {
  border: 1px solid var(--border-muted);
  color: var(--text-muted);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger-color);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* --- Form Controls --- */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  background: rgba(10, 10, 14, 0.8);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--yellow-primary);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15);
}

/* --- Utility Flex & Helpers --- */
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-8 { padding: 2rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-yellow { color: var(--yellow-primary); }
.text-danger { color: var(--danger-color); }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.font-bold { font-weight: 700; }
.font-mono { font-family: monospace; }
.hidden { display: none !important; }

/* Keyframe Animations */
/* --- Footer --- */
.portal-footer {
  margin-top: auto;
  border-radius: 0;
  border-top: 1px solid var(--border-muted);
  border-bottom: none;
  border-left: none;
  border-right: none;
  padding: 1.5rem 2rem;
  background: rgba(8, 8, 10, 0.95);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

