/* ============================================================
   FT GYM — Shared Stylesheet
   Used by: index.html, coach.html, dashboard.html, goal.html,
            plan.html, workout.html
   ============================================================ */

/* ---------- Base ---------- */
body {
    background-color: #131313;
    color: #e5e2e1;
    min-height: max(884px, 100dvh);
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: #131313;
}
::-webkit-scrollbar-thumb {
    background: #444933;
    border-radius: 10px;
}

/* ---------- Material Symbols default fill/weight ---------- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
/* Nutrition plan page uses a slightly bolder icon weight */
body[data-page="plan"] .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400;
}

/* ---------- Glassmorphism card (shared across pages) ---------- */
.glass-card {
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    border-color: #abd600;
    background: rgba(171, 214, 0, 0.05);
    box-shadow: 0 0 20px rgba(171, 214, 0, 0.15);
}
.glass-card.active {
    border-color: #abd600;
    background: rgba(171, 214, 0, 0.1);
    box-shadow: 0 0 20px rgba(171, 214, 0, 0.2);
}

/* Landing / Coach page glass panel */
.glass-panel {
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Neon glow utility (icons + buttons) ---------- */
.neon-glow {
    filter: drop-shadow(0 0 10px rgba(171, 214, 0, 0.4));
    box-shadow: 0 0 15px rgba(171, 214, 0, 0.4);
}
.neon-border {
    border: 1px solid #abd600;
}
.hud-glow {
    text-shadow: 0 0 10px rgba(171, 214, 0, 0.5);
}

/* ---------- CTA glow button (landing / coach) ---------- */
.glow-button {
    box-shadow: 0 0 20px rgba(171, 214, 0, 0.4);
}
.glow-button:hover {
    box-shadow: 0 0 30px rgba(171, 214, 0, 0.6);
}

/* ---------- Scan line ambience (landing / coach) ---------- */
.scan-line {
    background: linear-gradient(to bottom, transparent, #abd600, transparent);
    height: 100px;
    width: 100%;
    position: absolute;
    top: -100px;
    opacity: 0.1;
    animation: scan 4s linear infinite;
}
@keyframes scan {
    0% { top: -100px; }
    100% { top: 100%; }
}

/* ---------- Energy bar accent (workout / plan) ---------- */
.energy-bar {
    background: linear-gradient(to bottom, #abd600, transparent);
}
body[data-page="plan"] .energy-bar {
    width: 4px;
    background: linear-gradient(to bottom, #abd600, #556d00);
}

/* ---------- Onboarding progress bar (goal) ---------- */
.progress-bar-fill {
    width: 11.11%; /* Step 1 of 9 */
    transition: width 0.5s ease-out;
}

/* ---------- Dashboard chart animations ---------- */
.chart-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 3s linear forwards;
}
@keyframes dash {
    to { stroke-dashoffset: 0; }
}

.bar-grow {
    transform-origin: bottom;
    animation: grow 1.5s ease-out forwards;
}
@keyframes grow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.ring-fill {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease-out;
}

/* ---------- Brand logo (SVG) ---------- */
.brand-logo {
    filter: drop-shadow(0 0 15px rgba(204, 255, 0, 0.5));
}
