/* ============================================
   FitIQ Hub - Global Styles
   ============================================ */

/* ROOT VARIABLES & COLOR SCHEME */
:root {
    /* Brand Colors */
    --primary-color: #00E676;        /* Neon FitIQ Green */
    --primary-dark: #00C853;         /* Darker green for hover states */
    --secondary-color: #00B8A9;      /* Cool teal (optional) */
    --bg-dark: #1A1F25;              /* Dark charcoal background */
    --bg-darker: #0F1217;            /* Even darker for depth */
    --text-white: #FFFFFF;           /* Main text */
    --text-light-gray: #CCCCCC;      /* Secondary text */
    --text-medium-gray: #999999;     /* Tertiary text */
    --border-color: #2A3035;         /* Subtle borders */
    --success: #4CAF50;              /* For positive results */
    --warning: #FF9800;              /* For warnings */
    --error: #F44336;                /* For errors */

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Font Weights */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;
    --fw-black: 900;

    /* Font Sizes */
    --fs-xs: 12px;
    --fs-sm: 14px;
    --fs-base: 16px;
    --fs-lg: 18px;
    --fs-xl: 20px;
    --fs-2xl: 24px;
    --fs-3xl: 30px;
    --fs-4xl: 36px;
    --fs-5xl: 48px;

    /* Spacing Scale (8px base) */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(0, 230, 118, 0.1);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-modal: 1000;
    --z-tooltip: 1100;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: 1.6;
    color: var(--text-white);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--fs-5xl);
    font-weight: var(--fw-black);
}

h2 {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-bold);
}

h3 {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
}

h4 {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
}

h5 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
}

h6 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
}

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

strong {
    font-weight: var(--fw-bold);
}

em {
    font-style: italic;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
}

/* ============================================
   BUTTONS & LINKS
   ============================================ */

.cta-button {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    background-color: var(--primary-color);
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: var(--fs-lg);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
}

.cta-button:active {
    transform: scale(0.98);
}

/* Secondary button variant */
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(0, 230, 118, 0.1);
}

/* ============================================
   FORMS
   ============================================ */

input,
textarea,
select {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    background-color: var(--bg-darker);
    color: var(--text-white);
    border: 1px solid var(--border-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.2);
}

label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
}

/* ============================================
   LISTS
   ============================================ */

ul,
ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

li {
    margin-bottom: 4px;
    line-height: 1.4;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--text-light-gray);
}

.text-muted {
    color: var(--text-medium-gray);
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.pt-sm { padding-top: var(--spacing-sm); }
.pt-md { padding-top: var(--spacing-md); }
.pt-lg { padding-top: var(--spacing-lg); }
.pt-xl { padding-top: var(--spacing-xl); }

.pb-sm { padding-bottom: var(--spacing-sm); }
.pb-md { padding-bottom: var(--spacing-md); }
.pb-lg { padding-bottom: var(--spacing-lg); }
.pb-xl { padding-bottom: var(--spacing-xl); }

.py-sm { padding: var(--spacing-sm) 0; }
.py-md { padding: var(--spacing-md) 0; }
.py-lg { padding: var(--spacing-lg) 0; }
.py-xl { padding: var(--spacing-xl) 0; }

.px-sm { padding: 0 var(--spacing-sm); }
.px-md { padding: 0 var(--spacing-md); }
.px-lg { padding: 0 var(--spacing-lg); }
.px-xl { padding: 0 var(--spacing-xl); }

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   SECTION BASE STYLES
   ============================================ */

section {
    padding: var(--spacing-3xl) 0;
}

.hero {
    padding: var(--spacing-3xl) 0;
    margin-top: 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-size: var(--fs-4xl);
    text-transform: none;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light-gray);
    font-size: var(--fs-lg);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   GRID LAYOUT
   ============================================ */

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

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

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-medium-gray);
}

/* ============================================
   SELECTION STYLING
   ============================================ */

::selection {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

::-moz-selection {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

/* ============================================
   RESPONSIVE IMAGES
   ============================================ */

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

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    body {
        background-color: #fff;
        color: #000;
    }

    a {
        color: #0066cc;
        text-decoration: underline;
    }
}