﻿/* FitnessGuru Design System */

:root {
  --color-bg: #050505;
  --color-surface: rgba(20, 20, 20, 0.85);
  --color-surface-solid: #111111;
  --color-border: rgba(255, 215, 0, 0.25);
  --color-border-strong: rgba(255, 215, 0, 0.5);
  --color-gold: #ffd700;
  --color-gold-light: #ffe55c;
  --color-gold-dark: #c5a000;
  --color-text: #f5f5f5;
  --color-text-muted: #a8a8a8;
  --color-success: #4ade80;
  --color-danger: #f87171;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-gold: 0 0 24px rgba(255, 215, 0, 0.35);
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.55);
  --transition: 0.25s ease;
  --max-width: 1280px;
  --header-height: 68px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
}

a {
  color: var(--color-gold);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Background ambient glow */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 215, 0, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 30%),
    var(--color-bg);
}

/* Header / Nav */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.4));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  height: 48px;
}

.logo img {
  height: 48px;
  width: 231px;
  max-width: 48vw;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-gold);
  background: rgba(255, 215, 0, 0.1);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-gold);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.page-content {
  padding-top: calc(var(--header-height) + 32px);
  padding-bottom: 48px;
}

/* Page headings */
.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin: 0 0 8px;
  background: linear-gradient(90deg, var(--color-text), var(--color-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin: 0 0 32px;
}

/* Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-4px);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--color-gold-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-gold);
  color: #000;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
  background: var(--color-gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
}

.btn-outline:hover {
  background: rgba(255, 215, 0, 0.12);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-block {
  width: 100%;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-text);
  font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.98rem;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12);
}

.form-select option {
  background: #111;
  color: #fff;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* Tags / chips */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 215, 0, 0.12);
  color: var(--color-gold);
  border: 1px solid var(--color-border);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-up {
  animation: fadeUp 0.7s ease forwards;
}

/* Branded video player */
.fg-video-player {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 9;
}

.fg-video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fg-video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

.fg-video-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.fg-video-logo img {
  height: 28px;
  width: auto;
}

.fg-video-watermark {
  align-self: flex-end;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.fg-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
}

.fg-video-placeholder strong {
  color: var(--color-gold);
  margin-bottom: 6px;
}

/* Toast / messages */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  z-index: 200;
  transform: translateY(120%);
  transition: transform 0.35s ease;
}

.toast.show {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-header {
    padding: 0 16px;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(0, 0, 0, 0.96);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 16px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 1.9rem;
  }
}
