/* =========================================
   FITNESS AI PRO - MASTER STYLE (2025)
========================================= */

:root {
  --primary: #2563eb;       --accent: #06b6d4;
  --bg-body: #f8fafc;       --bg-card: #ffffff;
  --text-main: #0f172a;     --text-muted: #64748b;
  --border: #e2e8f0;        --shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  --glass: rgba(255, 255, 255, 0.95); --radius: 16px;
}
[data-theme="dark"] {
  --bg-body: #020617; --bg-card: #0f172a; --text-main: #f1f5f9; --text-muted: #94a3b8; --border: #1e293b; --glass: rgba(15, 23, 42, 0.95);
}

* { margin:0; padding:0; box-sizing:border-box; font-family: 'Inter', sans-serif; }
body { background: var(--bg-body); color: var(--text-main); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration:none; color:inherit; transition:0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* HEADER & HERO */
.header { position: sticky; top: 0; z-index: 1000; background: var(--glass); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 16px 0; }
.header-flex { display:flex; justify-content:space-between; align-items:center; }
.logo { font-size: 24px; font-weight: 800; color: var(--text-main); } .logo span { color: var(--primary); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-link:hover { color: var(--primary); }
.theme-btn { background:none; border:1px solid var(--border); width:40px; height:40px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:20px; color:var(--text-main); }
.hero { padding: 80px 0 50px; text-align: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight:800; margin-bottom:20px; line-height:1.1; }
.text-gradient { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* TOOLS GRID */
.tools-section { flex: 1; padding-bottom: 80px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background: var(--bg-card); border: 1px solid var(--border); padding: 35px 25px; border-radius: var(--radius); text-align: center; transition: 0.3s; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: var(--shadow); }
.card-icon { font-size: 48px; margin-bottom: 15px; display: block; }

/* ADS */
.ad-container { width: 100%; display: flex; justify-content: center; margin: 40px 0; }
.ad-box { width: 100%; max-width: 728px; height: 90px; background: var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-muted); opacity: 0.6; }

/* CALCULATOR & INPUTS */
.calc-box { max-width: 600px; margin: 0 auto; background: var(--bg-card); padding: 40px; border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--text-main); }
.form-input { width: 100%; padding: 14px; border: 2px solid var(--border); border-radius: 12px; background: var(--bg-body); color: var(--text-main); font-size: 16px; outline: none; transition: 0.3s; }
.form-input:focus { border-color: var(--primary); background: var(--bg-card); }
.btn-calc { width: 100%; background: linear-gradient(135deg, var(--primary), #3b82f6); color: #fff; padding: 16px; border: none; border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.btn-calc:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4); }

/* ULTRA MAX WORKOUT STYLES */
.plan-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 30px; text-align: left; }
.exercise-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: 0.4s; position: relative; }
.exercise-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: var(--shadow); }
.ex-visual { height: 180px; background: radial-gradient(circle at center, #f1f5f9, #e2e8f0); display: flex; align-items: center; justify-content: center; position: relative; }
.ex-visual svg { height: 120px; width: auto; stroke: var(--text-main); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 5px 5px rgba(0,0,0,0.1)); }
.muscle-glow { position: absolute; width: 100%; height: 100%; background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 70%); animation: pulseGlow 2s infinite; }
.ex-content { padding: 25px; }
.ex-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.ex-name { font-weight: 800; font-size: 1.2rem; }
.stat-box { background: var(--bg-body); padding: 8px; border-radius: 8px; text-align: center; border: 1px solid var(--border); }
.stat-val { font-weight: 700; color: var(--primary); display: block; }
.timer-btn { width: 100%; margin-top: 15px; padding: 12px; background: var(--text-main); color: var(--bg-card); border: none; border-radius: 10px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.timer-active { background: #10b981 !important; cursor: default; }

/* DISCLAIMER & FOOTER */
.disclaimer-box { margin-top: 25px; padding: 15px; background: #fef2f2; border-left: 4px solid #ef4444; border-radius: 8px; color: #991b1b; font-size: 13px; text-align: left; }
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 80px 0 30px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer h4 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.footer ul { list-style: none; } .footer li { margin-bottom: 12px; font-size: 14px; color: var(--text-muted); }
.copyright { text-align: center; font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 30px; }

@keyframes pulseGlow { 0% { opacity: 0.5; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0.5; transform: scale(0.9); } }
@media (max-width: 768px) { .nav-links { display: none; } }

/* --- AUTHOR & TRUST ELEMENTS (SEO E-E-A-T) --- */

/* Author/Review Box */
.author-box {
    background: var(--bg-body); border: 1px solid var(--border);
    padding: 20px; border-radius: 12px; margin-top: 40px;
    display: flex; gap: 15px; align-items: center;
}
.author-img {
    width: 60px; height: 60px; border-radius: 50%; background: #cbd5e1;
    display: flex; justify-content: center; align-items: center; font-size: 24px;
}
.author-info h4 { font-size: 16px; margin-bottom: 5px; color: var(--text-main); }
.author-info p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* References Section */
.ref-section {
    margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border);
    font-size: 13px; color: var(--text-muted);
}
.ref-toggle {
    cursor: pointer; color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 5px;
}
.ref-list { display: none; margin-top: 10px; padding-left: 20px; }
.ref-list li { margin-bottom: 5px; }

/* Last Updated Tag */
.update-tag {
    font-size: 12px; color: var(--text-muted); background: var(--bg-body);
    padding: 4px 10px; border-radius: 50px; border: 1px solid var(--border);
    display: inline-block; margin-bottom: 15px;
}

/* About Page Team Grid */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.team-card { text-align: center; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); }