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

/* --- Premium Design System Tokens --- */
:root {
    /* Colors */
    --bg-primary: #06080c;
    --bg-secondary: #0d1017;
    --bg-card: rgba(17, 21, 31, 0.65);
    --bg-card-hover: rgba(24, 30, 43, 0.85);
    
    --primary: #00f5a0;
    --primary-rgb: 0, 245, 160;
    --primary-dark: #00d78c;
    --primary-glow: rgba(0, 245, 160, 0.25);
    
    --secondary: #00d2ff;
    --secondary-rgb: 0, 210, 255;
    --secondary-glow: rgba(0, 210, 255, 0.25);
    
    --accent: #ff9f43;
    --accent-glow: rgba(255, 159, 67, 0.25);
    
    --text-main: #ffffff;
    --text-muted: #9ba0b0;
    --text-dark: #12141c;
    
    --border-glass: rgba(255, 255, 255, 0.07);
    --border-neon: rgba(0, 245, 160, 0.15);
    --border-cyan: rgba(0, 210, 255, 0.15);
    
    --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --shadow-neon: 0 0 15px rgba(0, 245, 160, 0.2);
    --shadow-neon-hover: 0 0 25px rgba(0, 245, 160, 0.45);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Light Theme Variables Toggle */
[data-theme="light"] {
    --bg-primary: #f5f8fa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(235, 241, 245, 0.8);
    --bg-card-hover: rgba(220, 229, 235, 0.95);
    
    --primary: #10ac84;
    --primary-dark: #0d8a6a;
    --primary-glow: rgba(16, 172, 132, 0.2);
    
    --secondary: #00a2c1;
    --secondary-glow: rgba(0, 162, 193, 0.2);
    
    --text-main: #12141c;
    --text-muted: #5e6675;
    
    --border-glass: rgba(0, 0, 0, 0.06);
    --border-neon: rgba(16, 172, 132, 0.12);
    --border-cyan: rgba(0, 162, 193, 0.12);
    
    --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    --shadow-neon: 0 0 15px rgba(16, 172, 132, 0.1);
    --shadow-neon-hover: 0 0 25px rgba(16, 172, 132, 0.25);
}

/* --- Base & Scroll Styles --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    min-width: 0;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    box-shadow: var(--shadow-neon);
}

/* --- Helper Classes & UI Utilities --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-main);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-neon);
    box-shadow: var(--shadow-main), 0 5px 15px rgba(var(--primary-rgb), 0.05);
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.neon-text {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

.cyan-text {
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(var(--secondary-rgb), 0.3);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-dark);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
    box-shadow: var(--shadow-neon-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background-color: var(--border-glass);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.badge {
    display: inline-flex;
    padding: 6px 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 15px;
}

.badge-lime {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.badge-cyan {
    background: rgba(var(--secondary-rgb), 0.12);
    color: var(--secondary);
    border: 1px solid rgba(var(--secondary-rgb), 0.2);
}

/* --- Floating Premium Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: background var(--transition-smooth), padding var(--transition-smooth);
}

header.scrolled {
    background: rgba(var(--bg-primary-rgb, 7), 8, 12, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-glass);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 900;
    font-size: 1.3rem;
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
}

nav {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 4px;
    border-radius: 14px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--primary);
    box-shadow: inset 0 0 8px rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Theme Switcher */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all var(--transition-smooth);
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: transparent;
    cursor: pointer;
    color: var(--text-main);
    align-items: center;
    justify-content: center;
}

/* --- Hero Section --- */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-tag {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title span {
    display: block;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 520px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-glass);
    padding-top: 30px;
}

.stat-item h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

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

/* Hero Showcase Card */
.hero-visual {
    position: relative;
    height: 480px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-main);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.hero-visual:hover .hero-img {
    transform: scale(1.05);
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--bg-primary) 10%, rgba(0,0,0,0) 80%);
}

.hero-overlay-card {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    padding: 20px;
    cursor: pointer;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), opacity var(--transition-smooth);
}

.hero-overlay-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-neon);
    box-shadow: var(--shadow-main), var(--shadow-neon);
}

/* --- Section Title General --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

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

/* --- Feature Grid --- */
.features {
    padding: 80px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
    transition: all var(--transition-smooth);
}

.glass-card:hover .feature-icon {
    background: var(--primary);
    color: var(--text-dark);
    box-shadow: var(--shadow-neon);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

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

/* --- Calculators Section --- */
.calculators-sec {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.calc-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.calc-tab-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.calc-tab-btn.active, .calc-tab-btn:hover {
    color: var(--text-main);
    border-color: var(--primary);
}

.calc-tab-btn.active {
    background: var(--primary);
    color: var(--text-dark);
    box-shadow: var(--shadow-neon);
}

.calc-container {
    max-width: 800px;
    margin: 0 auto;
}

.calc-content {
    display: none;
}

.calc-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.slider-val {
    color: var(--primary);
    font-weight: 700;
}

/* Styled Range Input */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--border-glass);
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
    transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.gender-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.gender-btn {
    border: 1px solid var(--border-glass);
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.gender-btn:hover {
    border-color: var(--border-neon);
}

.gender-btn.active {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

/* BMI Gauge Display */
.bmi-output {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-glass);
}

.bmi-num {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
}

.bmi-category {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    margin: 8px 0 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bmi-bar {
    height: 8px;
    background: #252836;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

.bmi-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00f2fe, #ccff00, #ff4757);
    border-radius: 10px;
    transition: width var(--transition-smooth);
}

.bmi-descr {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Water Widget */
.water-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.water-tank {
    width: 140px;
    height: 200px;
    border: 3px solid var(--border-glass);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.01);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.water-level {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #00f2fe 0%, #0072ff 100%);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    transition: height 0.6s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.water-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-main);
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.water-actions {
    display: flex;
    gap: 12px;
}

/* Calorie Widget */
.cal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* --- Custom Workout Planner Section --- */
.workout-sec {
    padding: 80px 0;
}

.setup-box {
    margin-bottom: 40px;
}

.selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.selector-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.selector-column h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
}

.select-pill {
    padding: 14px;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.select-pill:hover {
    border-color: var(--primary);
}

.select-pill.active {
    background: var(--primary);
    color: var(--text-dark);
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
}

/* Dynamic Workout Result */
.workout-result {
    display: none;
    animation: slideUp 0.5s ease;
}

.workout-result.active {
    display: block;
}

.workout-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.workout-plan-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
}

.workout-days {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.day-card {
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.01);
}

.day-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 8px;
}

.ex-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ex-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.ex-name {
    font-weight: 500;
}

.ex-sets {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    background: var(--border-glass);
    padding: 3px 8px;
    border-radius: 6px;
}

/* --- Healthy Recipe Hub --- */
.recipe-sec {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.recipe-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.recipe-img-box {
    position: relative;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.recipe-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-kcal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-glass);
    padding: 4px 10px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.recipe-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.recipe-macros {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.macro-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--border-glass);
    padding: 4px 10px;
    border-radius: 8px;
}

.macro-badge span {
    font-weight: 700;
    color: var(--text-main);
}

.recipe-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Recipe Overlay / Modal */
.recipe-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.recipe-modal.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.modal-header {
    position: relative;
    height: 280px;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 30px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.recipe-checklist {
    list-style: none;
    margin: 20px 0 30px;
}

.recipe-checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-glass);
}

.recipe-checklist-item input[type="checkbox"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.recipe-checklist-item.checked label {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* --- Comprehensive Blog / Article Hub --- */
.blog-sec {
    padding: 80px 0;
}

.blog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.search-box {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    padding-left: 45px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-fast);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.category-tags {
    display: flex;
    gap: 8px;
}

.cat-pill {
    padding: 8px 18px;
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cat-pill.active, .cat-pill:hover {
    color: var(--text-main);
    border-color: var(--primary);
}

.cat-pill.active {
    background: var(--primary);
    color: var(--text-dark);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-img-box {
    position: relative;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-cat {
    position: absolute;
    top: 15px;
    left: 15px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* --- Premium Footer --- */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    padding: 80px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-column p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary);
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 10px 15px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
}

.newsletter-input:focus {
    border-color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

/* --- Dynamic View Navigation Animation --- */
main > .tab-section {
    display: none;
}

main > .tab-section.active-section {
    display: block;
    animation: sectionFade 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- Keyframe Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

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

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

/* ================================================
   RESPONSIVE BREAKPOINTS — Mobile First Design
   ================================================ */

/* --- Tablet: 1024px --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-visual { height: 380px; }
    .feature-grid, .recipe-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .calc-tabs { flex-wrap: wrap; gap: 8px; }
    .hero-stats { gap: 24px; }
}

/* --- Mobile: 768px --- */
@media (max-width: 768px) {

    html { font-size: 15px; }

    /* Tüm elementler ekran genişliğine sığsın */
    *, *::before, *::after {
        max-width: 100%;
        min-width: 0;
    }

    /* Sectionlar tam genişlik */
    section, .container, main, article, aside, header, footer {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Glass kartlar tam genişlik */
    .glass-card {
        width: 100%;
        max-width: 100%;
    }

    /* Header */
    header {
        padding: 0 16px;
        background: rgba(6, 8, 12, 0.97);
        border-bottom: 1px solid var(--border-glass);
    }
    header .container {
        padding: 0;
        height: 64px;
    }
    .logo { font-size: 1.1rem; }
    .logo-icon { width: 30px; height: 30px; font-size: 0.85rem; }

    /* Mobile Nav */
    #main-nav {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-glass);
        flex-direction: column;
        padding: 24px 20px;
        gap: 4px;
        z-index: 999;
        overflow-y: auto;
    }
    #main-nav.active { display: flex; }
    .nav-link {
        padding: 14px 16px;
        border-radius: 10px;
        font-size: 1rem;
        width: 100%;
        border-bottom: 1px solid var(--border-glass);
    }
    .nav-link:last-child { border-bottom: none; }
    .menu-toggle { display: flex; }

    /* Header controls */
    .header-controls { gap: 8px; }
    #calc-cta-btn { display: none; }

    /* Hero */
    .hero { padding: 100px 0 50px; }
    .hero-title { font-size: 2.2rem; line-height: 1.2; }
    .hero-tag { font-size: 0.68rem; letter-spacing: 1px; }
    .hero-description { font-size: 0.95rem; }
    .hero-cta { flex-direction: column; gap: 12px; }
    .hero-cta .btn { width: 100%; text-align: center; }
    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }
    .hero-stat-num { font-size: 1.8rem; }
    .hero-visual { height: 280px; margin-top: 10px; }
    .hero-overlay-card { 
        bottom: 10px; 
        right: 10px; 
        left: 10px; 
        max-width: 100%;
        padding: 14px;
    }

    /* Sections */
    .section-title { font-size: 1.6rem; }
    .section-subtitle { font-size: 0.9rem; }
    section { padding: 50px 0; }

    /* Grids → single column */
    .feature-grid,
    .recipe-grid,
    .blog-grid,
    .workout-days,
    .selector-grid,
    .cal-grid { grid-template-columns: 1fr; }

    /* Calculators */
    .calc-section { padding: 30px 0; }
    .calc-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .calc-tabs::-webkit-scrollbar { display: none; }
    .calc-tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .calc-card { padding: 20px; }
    .calc-result-val { font-size: 3rem; }
    .bmi-zones { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .bmi-zone { padding: 10px 8px; }

    /* Blog cards */
    .blog-card-img { height: 180px; }
    .category-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .category-tags::-webkit-scrollbar { display: none; }
    .tag-pill { white-space: nowrap; flex-shrink: 0; }

    /* Supplement finder */
    .supp-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
    .supp-card { padding: 14px 10px; }
    .supp-card h4 { font-size: 0.8rem; }

    /* Recipe modal */
    .modal-inner {
        width: 95vw;
        max-height: 90vh;
        padding: 20px;
        overflow-y: auto;
    }

    /* Workout generator */
    .workout-controls { flex-direction: column; gap: 12px; }
    .workout-day-card { padding: 14px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .social-links { justify-content: center; }

    /* Article reader */
    .reader-title { font-size: 1.6rem !important; }
    .reader-meta { flex-wrap: wrap; gap: 8px; }
    .share-buttons { flex-wrap: wrap; gap: 8px; }
    .share-btn { flex: 1; min-width: 120px; font-size: 0.8rem; }

    /* Floating back btn */
    .floating-back-btn {
        position: absolute;
        top: 20px;
        left: 16px;
        width: 40px;
        height: 40px;
    }
    .floating-back-btn:hover { transform: scale(1.05) !important; }
}

/* --- Small Mobile: 480px --- */
@media (max-width: 480px) {

    html { font-size: 14px; }

    /* Container */
    .container { padding: 0 16px; }

    /* Hero */
    .hero { padding: 88px 0 40px; }
    .hero-title { font-size: 1.85rem; }
    .hero-stats { gap: 12px; }
    .hero-stat { min-width: 80px; text-align: center; }
    .hero-stat-num { font-size: 1.5rem; }
    .hero-stat-label { font-size: 0.65rem; }
    .hero-visual { height: 220px; }
    .hero-overlay-card { padding: 12px; }
    .hero-overlay-card h4 { font-size: 0.85rem !important; }
    .hero-overlay-card p { font-size: 0.75rem !important; }

    /* Sections */
    .section-title { font-size: 1.4rem; }
    section { padding: 40px 0; }

    /* Calc */
    .calc-result-val { font-size: 2.5rem; }
    .bmi-zones { grid-template-columns: 1fr 1fr; }
    .bmi-zone-label { font-size: 0.68rem; }

    /* Blog */
    .blog-search-wrapper { flex-direction: column; gap: 10px; }
    .blog-search-wrapper input { width: 100%; }
    .blog-card-img { height: 160px; }
    .blog-card-title { font-size: 1rem; }
    .blog-card-excerpt { font-size: 0.82rem; }
    .blog-card { padding: 0 0 16px; }

    /* Supplement */
    .supp-grid { grid-template-columns: repeat(2, 1fr) !important; }

    /* Workout */
    .workout-day-card .exercise-item { flex-direction: column; align-items: flex-start; gap: 4px; }

    /* Footer */
    .footer-brand p { font-size: 0.85rem; }
    .newsletter-form { flex-direction: column; gap: 10px; }
    .newsletter-form input { border-radius: 10px !important; }
    .newsletter-form button { border-radius: 10px !important; width: 100%; }

    /* Article reader */
    .reader-title { font-size: 1.4rem !important; }
    .reader-img { height: 200px !important; object-fit: cover; }
    .reader-body { font-size: 1rem; }

    /* Buttons */
    .btn { padding: 12px 20px; font-size: 0.85rem; }
    .btn-sm { padding: 8px 14px; font-size: 0.78rem; }

    /* Glass cards */
    .glass-card { padding: 18px; }
}

/* --- Very Small Mobile: 360px --- */
@media (max-width: 360px) {
    html { font-size: 13px; }
    .hero-title { font-size: 1.65rem; }
    .container { padding: 0 12px; }
    .hero-stats { flex-direction: column; align-items: flex-start; gap: 8px; }
    .supp-grid { grid-template-columns: 1fr !important; }
    .bmi-zones { grid-template-columns: 1fr; }
    .logo { font-size: 1rem; }
    .calc-tab-btn { padding: 7px 10px; font-size: 0.72rem; }
}

/* --- Touch / Hover fix --- */
@media (hover: none) {
    .glass-card:hover { transform: none; }
    .btn:hover { transform: none; }
    .nav-link:hover { transform: none; }
    .blog-card:hover { transform: none; }
    .supp-card:hover { transform: none; }
}

/* --- Floating back btn desktop --- */
@media (max-width: 1060px) {
    .floating-back-btn {
        position: absolute;
        top: 20px;
        left: 24px;
        width: 44px;
        height: 44px;
    }
    .floating-back-btn:hover { transform: scale(1.05) !important; }
}

/* --- Article reader premium typography --- */
.reader-body {
    font-size: 1.12rem;
    line-height: 1.85;
    color: var(--text-main);
}
.reader-body p { margin-bottom: 1.8rem; text-align: justify; }
.reader-body h2,
.reader-body h3,
.reader-body h4,
.reader-body h5 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-main);
    margin-top: 3.2rem;
    margin-bottom: 1.2rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
}
.reader-body h3,
.reader-body h4 {
    border-left: 3px solid var(--primary);
    padding-left: 15px;
    margin-top: 3.4rem;
}
[data-theme="dark"] .reader-body h3,
[data-theme="dark"] .reader-body h4 {
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.1);
}
.reader-body > h2:first-child,
.reader-body > h3:first-child,
.reader-body > h4:first-child { margin-top: 0.5rem; }
.reader-body strong { color: var(--primary); font-weight: 700; }

/* Share buttons */
.share-btn { transition: all var(--transition-fast) !important; }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.15); }
[data-platform="twitter"]:hover { border-color: var(--text-main) !important; color: var(--primary) !important; background: rgba(255,255,255,0.05); }
[data-platform="facebook"]:hover { border-color: #1877f2 !important; color: #1877f2 !important; background: rgba(24,119,242,0.05); }
[data-platform="whatsapp"]:hover { border-color: #25d366 !important; color: #25d366 !important; background: rgba(37,211,102,0.05); }
#btn-copy-link:hover { box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.35); }

/* Floating back button */
.floating-back-btn {
    position: fixed;
    top: 100px;
    left: calc(50% - 490px);
    z-index: 99;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-main);
    transition: all var(--transition-smooth);
}
.floating-back-btn svg { transition: transform var(--transition-fast); }
.floating-back-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(-4px);
    box-shadow: var(--shadow-neon-hover);
}
.floating-back-btn:hover svg { transform: scale(1.1); }

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}




@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

/* --- Premium Article Reading Typography --- */
.reader-body {
    font-size: 1.12rem;
    line-height: 1.85;
    color: var(--text-main);
}

.reader-body p {
    margin-bottom: 1.8rem;
    text-align: justify;
}

.reader-body h2, 
.reader-body h3, 
.reader-body h4, 
.reader-body h5 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-main);
    margin-top: 3.2rem;
    margin-bottom: 1.2rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

/* Premium Left-Border Accent Indicator for Subheaders */
.reader-body h3, 
.reader-body h4 {
    border-left: 3px solid var(--primary);
    padding-left: 15px;
    margin-top: 3.4rem;
}

/* Dynamic glow effect for headings on dark mode */
[data-theme="dark"] .reader-body h3,
[data-theme="dark"] .reader-body h4 {
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.1);
}

/* Ensure the first header inside reader doesn't push down too far */
.reader-body > h2:first-child,
.reader-body > h3:first-child,
.reader-body > h4:first-child {
    margin-top: 0.5rem;
}

/* Elite styling for highlighted/strong text */
.reader-body strong {
    color: var(--primary);
    font-weight: 700;
}

/* Premium Social Media Sharing Buttons */
.share-btn {
    transition: all var(--transition-fast) !important;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.15);
}

[data-platform="twitter"]:hover {
    border-color: var(--text-main) !important;
    color: var(--primary) !important;
    background: rgba(255, 255, 255, 0.05);
}

[data-platform="facebook"]:hover {
    border-color: #1877f2 !important;
    color: #1877f2 !important;
    background: rgba(24, 119, 242, 0.05);
}

[data-platform="whatsapp"]:hover {
    border-color: #25d366 !important;
    color: #25d366 !important;
    background: rgba(37, 211, 102, 0.05);
}

#btn-copy-link:hover {
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.35);
}

/* --- Floating Premium Back Button Style --- */
.floating-back-btn {
    position: fixed;
    top: 100px;
    left: calc(50% - 490px);
    z-index: 99;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-main);
    transition: all var(--transition-smooth);
}

.floating-back-btn svg {
    transition: transform var(--transition-fast);
}

.floating-back-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(-4px);
    box-shadow: var(--shadow-neon-hover);
}

.floating-back-btn:hover svg {
    transform: scale(1.1);
}



