/* 
 * ACTIVA - Design System & Master Stylesheet
 * Dark Obsidian & Neon High-Energy Aesthetic
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0e121a;
  --bg-card: rgba(18, 24, 36, 0.7);
  --bg-card-hover: rgba(26, 35, 52, 0.85);

  --accent-neon: #00FF87;
  --accent-cyan: #00E5FF;
  --accent-purple: #7000FF;
  --accent-amber: #FFB800;

  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dark: #64748B;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-neon: rgba(0, 255, 135, 0.3);

  --shadow-neon: 0 0 25px rgba(0, 255, 135, 0.25);
  --shadow-cyan: 0 0 25px rgba(0, 229, 255, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-neon);
}

/* Utility Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-neon) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan {
  color: var(--accent-cyan);
}

.badge-neon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 255, 135, 0.1);
  border: 1px solid var(--border-neon);
  color: var(--accent-neon);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 14, 0.8);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  transition: var(--transition-fast);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-neon), var(--accent-cyan));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: var(--shadow-neon);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-neon);
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-neon) 0%, #00d670 100%);
  color: #050b07;
  box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 255, 135, 0.45);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-demo {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15) 0%, rgba(112, 0, 255, 0.15) 100%);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-demo:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: var(--shadow-cyan);
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 90px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 255, 135, 0.12) 0%, rgba(0, 229, 255, 0.06) 40%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 18px 0;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Interactive GIF Carousel Showcase */
.hero-showcase {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  backdrop-filter: blur(20px);
}

.showcase-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--accent-neon);
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-neon);
}

.gif-container {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #05070a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gif-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: contrast(1.05) brightness(1.05);
}

.gif-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(7, 9, 14, 0.95), rgba(7, 9, 14, 0));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.gif-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.gif-muscle {
  font-size: 0.85rem;
  color: var(--accent-neon);
}

/* Feature Cards Section */
.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 54px auto;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-neon), transparent);
  opacity: 0;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-neon);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 255, 135, 0.1);
  color: var(--accent-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* Exercises Filter Showcase */
.filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 32px;
  justify-content: center;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-neon);
  color: #000;
  border-color: var(--accent-neon);
  box-shadow: var(--shadow-neon);
}

.exercises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.ex-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

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

.ex-gif {
  width: 100%;
  height: 200px;
  background: #000;
  object-fit: cover;
}

.ex-info {
  padding: 16px;
}

.ex-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.ex-tag {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-weight: 700;
}

/* Modals & Drawers */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 480px;
  padding: 36px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

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

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

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-neon);
  box-shadow: 0 0 10px rgba(0, 255, 135, 0.2);
}

/* Dashboard Layout */
.dashboard {
  padding-top: 100px;
  min-height: 100vh;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--accent-neon);
  object-fit: cover;
}

.tab-nav {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.tab-btn {
  flex: 1;
  padding: 12px 18px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn.active {
  background: var(--bg-card-hover);
  color: var(--accent-neon);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Active Workout Card */
.workout-card {
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
}

.workout-item {
  display: grid;
  grid-template-columns: 160px 1fr 140px;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.workout-item:hover {
  border-color: rgba(0, 255, 135, 0.3);
}

.workout-gif {
  width: 160px;
  height: 120px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #000;
}

/* Rest Timer Floating Bar */
.rest-timer-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(14, 18, 26, 0.95);
  border: 2px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  padding: 16px 28px;
  box-shadow: var(--shadow-cyan);
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(12px);
  z-index: 1500;
}

.timer-digits {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: monospace;
  color: var(--accent-cyan);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .workout-item {
    grid-template-columns: 1fr;
  }
}
