/*
Theme Name: FitTracker - Body Progress Theme
Theme URI: https://fittracker.com
Author: FitTracker Team
Author URI: https://fittracker.com
Description: A modern, one-page fitness and body progress tracking theme. Perfect for personal trainers, fitness enthusiasts, and health professionals. Features include weight tracking, exercise logging, goal setting, meal planning, and progress visualization.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fittracker
Tags: one-column, custom-colors, custom-menu, featured-images, full-width-template, responsive-design, fitness, health, wellness, tracking

FitTracker WordPress Theme, Copyright 2024
FitTracker is distributed under the terms of the GNU GPL
*/

/* ==========================================================================
   Design System Variables - HSL Colors for Light/Dark Mode Support
   ========================================================================== */

:root {
  --background: 240 20% 99%;
  --foreground: 240 10% 15%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 15%;
  --primary: 262 83% 58%;
  --primary-foreground: 0 0% 100%;
  --primary-gradient-start: 262 83% 58%;
  --primary-gradient-end: 217 91% 60%;
  --secondary: 217 91% 60%;
  --secondary-foreground: 0 0% 100%;
  --success: 142 76% 36%;
  --success-foreground: 0 0% 100%;
  --muted: 240 5% 96%;
  --muted-foreground: 240 4% 46%;
  --accent: 142 76% 36%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 240 6% 90%;
  --input: 240 6% 90%;
  --ring: 262 83% 58%;
  --radius: 0.75rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: 240 10% 8%;
    --foreground: 240 5% 96%;
    --card: 240 10% 12%;
    --card-foreground: 240 5% 96%;
    --muted: 240 10% 15%;
    --muted-foreground: 240 5% 65%;
    --border: 240 10% 20%;
    --input: 240 10% 20%;
  }
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

a {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.gradient-primary {
  background: linear-gradient(135deg, hsl(var(--primary-gradient-start)), hsl(var(--primary-gradient-end)));
}

.gradient-bg {
  background: linear-gradient(180deg, hsl(var(--background)) 0%, hsl(var(--muted)) 100%);
}

.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--primary-gradient-start)), hsl(var(--primary-gradient-end)));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: hsl(var(--primary));
  border: 2px solid hsl(var(--primary));
}

.btn-outline:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* ==========================================================================
   Layout Sections
   ========================================================================== */

section {
  padding: 5rem 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.section-description {
  text-align: center;
  color: hsl(var(--muted-foreground));
  margin-bottom: 3rem;
  font-size: 1.25rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, hsl(var(--background)) 0%, hsl(var(--muted)) 100%);
}

.hero-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--primary-gradient-start)), hsl(var(--primary-gradient-end)));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.5rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Grid Layouts
   ========================================================================== */

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ==========================================================================
   Stats Section
   ========================================================================== */

.stats-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-input {
  padding: 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  font-size: 1rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.bmi-display {
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, hsl(var(--primary-gradient-start)), hsl(var(--primary-gradient-end)));
  color: white;
  text-align: center;
}

.bmi-value {
  font-size: 3rem;
  font-weight: 700;
}

/* ==========================================================================
   Goal Cards
   ========================================================================== */

.goal-card {
  cursor: pointer;
  position: relative;
}

.goal-card.selected {
  border-color: hsl(var(--primary));
  border-width: 2px;
}

.goal-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  padding: 1rem;
  border-radius: 50%;
  background: hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: center;
}

.goal-card.selected .goal-icon {
  background: linear-gradient(135deg, hsl(var(--primary-gradient-start)), hsl(var(--primary-gradient-end)));
}

/* ==========================================================================
   Exercise Cards
   ========================================================================== */

.exercise-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.exercise-info {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.exercise-icon {
  width: 40px;
  height: 40px;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.badge-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.exercise-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.stat-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   Progress Section
   ========================================================================== */

.progress-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.progress-item {
  padding: 1.5rem;
  background: hsl(var(--muted));
  border-radius: var(--radius);
  text-align: center;
}

.progress-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.progress-value {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

/* ==========================================================================
   Meal Cards
   ========================================================================== */

.meal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.meal-icon {
  width: 50px;
  height: 50px;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: center;
}

.meal-macros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.macro-item {
  text-align: center;
}

.macro-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.macro-value {
  font-size: 1.25rem;
  font-weight: 700;
}

/* ==========================================================================
   Progress Photos
   ========================================================================== */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.photo-item {
  text-align: center;
}

.photo-placeholder {
  aspect-ratio: 3/4;
  background: hsl(var(--muted));
  border-radius: var(--radius);
  border: 2px dashed hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.photo-label {
  font-weight: 600;
  font-size: 0.875rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  padding: 3rem 1rem;
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-description {
  color: hsl(var(--muted-foreground));
  max-width: 500px;
  margin: 0 auto 1rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.25rem;
  }

  .stats-form {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */

.wp-block-image {
  margin: 2rem 0;
}

.aligncenter {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
