/* ===============================================
   FitCalc - Fitness Calculator CSS
   Based on trAIn stylesheet with custom additions
   =============================================== */

/* ===============================================
   RESET & BASE (from your existing CSS)
   =============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #111827;
    line-height: 1.6;
}

/* ===============================================
   UTILITIES (from your existing CSS)
   =============================================== */
.min-h-screen {
    min-height: 100vh;
}

.bg-white {
    background-color: #ffffff;
}

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

.hidden {
    display: none !important;
}

.mx-auto {
    margin: 0 auto;
}

/* ===============================================
   LAYOUT (from your existing CSS)
   =============================================== */
header {
    padding: 2rem 1rem 1.5rem;
    text-align: center;
}

.container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding-bottom: 4rem;
}

footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 2rem 1rem;
    text-align: center;
}

/* ===============================================
   TYPOGRAPHY (from your existing CSS)
   =============================================== */
.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #4b5563;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.calculator-header-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.question-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.question-subtitle {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

.footer-text {
    color: #6b7280;
    font-size: 0.875rem;
}

/* ===============================================
   CARDS (from your existing CSS + custom)
   =============================================== */
.card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    padding: 2rem;
    max-width: 42rem;
    margin: 0 auto;
}

/* ===============================================
   CALCULATOR GRID & CARDS
   =============================================== */
.calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.calculator-card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid #f3f4f6;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calculator-card:hover {
    border-color: #93c5fd;
    background-color: #eff6ff;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.calculator-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.calculator-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.calculator-description {
    color: #4b5563;
    line-height: 1.5;
}

/* ===============================================
   BUTTONS (from your existing CSS)
   =============================================== */
.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    text-decoration: none;
    margin-top: 1.5rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    padding: 0.75rem 2rem;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    transform: translateY(-1px);
}

.back-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.back-btn:hover {
    color: #1d4ed8;
}

/* ===============================================
   FORMS & INPUTS (adapted from your existing CSS)
   =============================================== */
.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.set-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.set-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.placeholder-grey::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* ===============================================
   CALCULATOR SECTIONS
   =============================================== */
.calculator-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.calculator-section.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================================
   RESULT SECTIONS
   =============================================== */
.result-section {
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.result-section.show {
    opacity: 1;
    transform: translateY(0);
}

.result-card {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #bbf7d0;
    text-align: center;
}

.result-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #166534;
    margin-bottom: 1.5rem;
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 1rem;
    text-align: center;
}

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

.result-category {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
}

.result-explanation {
    color: #4b5563;
    line-height: 1.6;
}

/* ===============================================
   BMI SPECIFIC STYLES
   =============================================== */

/* BMI Step Transitions */
.bmi-step {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

.bmi-step.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    pointer-events: auto;
}

.bmi-step.hidden {
    opacity: 0;
    transform: translateX(-20px);
    position: absolute;
    pointer-events: none;
}

/* Result Header */
.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.result-header .question-title {
    margin-bottom: 1rem;
}

.result-header .result-value {
    font-size: 4rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* BMI Scale Styles */
.bmi-scale-container {
    margin: 2rem 0;
}

.bmi-scale-wrapper {
    position: relative;
    padding: 1rem 0;
}

.bmi-scale-track {
    position: relative;
    height: 36px;
    border-radius: 18px;
    overflow: visible;
    margin-bottom: 0.5rem;
}

.bmi-scale-sections {
    display: flex;
    height: 100%;
    border-radius: 18px;
}

.scale-section {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scale-section .scale-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.underweight-section {
    width: 18.5%;
    background: linear-gradient(to right, #93c5fd, #60a5fa);
    border-radius: 18px 0 0 18px;
}

.normal-section {
    width: 32.5%;
    background: linear-gradient(to right, #86efac, #4ade80);
}

.overweight-section {
    width: 25%;
    background: linear-gradient(to right, #fdba74, #fb923c);
}

.obese-section {
    width: 24%;
    background: linear-gradient(to right, #fca5a5, #f87171);
    border-radius: 0 18px 18px 0;
}

.bmi-indicator {
    position: absolute;
    bottom: -18px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 14px solid #1f2937;
    transform: translateX(-50%);
    transition: left 0.8s ease-out;
    z-index: 10;
}

.bmi-indicator::after {
    content: '';
    position: absolute;
    top: 14px;
    left: -3px;
    width: 6px;
    height: 10px;
    background: #1f2937;
}

.bmi-scale-numbers {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 1.5rem;
}

.bmi-category-display {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.result-actions .btn {
    flex: 1;
    max-width: 200px;
}

/* Info and Warning Notes */
.info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    line-height: 16px;
    cursor: help;
    margin-left: 5px;
    font-weight: bold;
}

.bmi-info-note {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #1e40af;
}

.warning-note {
    background-color: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #92400e;
}

.bmi-categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 2rem 0;
}

.category-comparison {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.category-header {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.bmi-disclaimer {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 2rem 0;
    border: 1px solid #e5e7eb;
}

.bmi-disclaimer p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Enhanced BMI Categories */
.category-badge.underweight {
    background-color: #dbeafe;
    color: #1e40af;
}

.category-badge.normal-weight {
    background-color: #d1fae5;
    color: #166534;
}

.category-badge.overweight {
    background-color: #fed7aa;
    color: #ea580c;
}

.category-badge.obese {
    background-color: #fecaca;
    color: #dc2626;
}

/* Standard BMI Categories (existing) */
.underweight {
    background-color: #dbeafe;
    color: #1e40af;
}

.normal-weight {
    background-color: #d1fae5;
    color: #166534;
}

.overweight {
    background-color: #fed7aa;
    color: #ea580c;
}

.obese {
    background-color: #fecaca;
    color: #dc2626;
}

/* BMI Value Colors - matching category colors */
.bmi-value-underweight {
    color: #3b82f6;
}

.bmi-value-normal {
    color: #22c55e;
}

.bmi-value-overweight {
    color: #f97316;
}

.bmi-value-obese {
    color: #ef4444;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .result-header .result-value {
        font-size: 3rem;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions .btn {
        max-width: none;
    }

    .bmi-scale-labels {
        font-size: 0.6rem;
    }
}

/* ===============================================
   TDEE SPECIFIC STYLES
   =============================================== */

/* Gender Toggle Buttons */
.gender-toggle {
    display: flex;
    gap: 0.5rem;
}

.gender-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: 2px solid #d1d5db;
    border-radius: 2rem;
    background: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.gender-btn:hover {
    border-color: #93c5fd;
    color: #2563eb;
}

.gender-btn.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #2563eb;
    color: #ffffff;
}

/* Activity Level Slider */
.activity-slider-container {
    padding: 0.5rem 0;
}

.activity-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.activity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s ease;
}

.activity-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.activity-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

.activity-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.65rem;
    color: #6b7280;
    padding: 0 12px;
}

.activity-description {
    text-align: center;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #eff6ff;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #1e40af;
    font-weight: 400;
    line-height: 1.5;
}

.activity-description strong {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.tdee-results,
.oneRM-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tdee-item,
.oneRM-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.tdee-item.highlight,
.oneRM-item.highlight {
    background-color: #eff6ff;
    border-color: #93c5fd;
    font-weight: 600;
}

.tdee-label,
.oneRM-label {
    color: #374151;
}

.tdee-value,
.oneRM-value {
    color: #2563eb;
    font-weight: 600;
}

.goal-calories {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.goal-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background-color: #f9fafb;
    border-radius: 0.375rem;
}

.goal-label {
    color: #6b7280;
}

.goal-value {
    color: #111827;
    font-weight: 600;
}

/* TDEE Result Step Styling */
.result-unit {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.goal-calories-section {
    margin-top: 1.5rem;
    background-color: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.goal-calories-section h4 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.goal-item.loss {
    background-color: #fef2f2;
    border-color: #fecaca;
}

.goal-item.maintenance {
    background-color: #eff6ff;
    border-color: #93c5fd;
}

.goal-item.gain {
    background-color: #f0fdf4;
    border-color: #86efac;
}

.tdee-disclaimer {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1.5rem 0;
    border: 1px solid #e5e7eb;
}

.tdee-disclaimer p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.btn-secondary {
    background: #ffffff;
    color: #374151;
    border: 2px solid #d1d5db;
    padding: 0.75rem 2rem;
}

.btn-secondary:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Method Explanation Box */
.method-explanation {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.method-explanation h4 {
    color: #0369a1;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.method-explanation p {
    color: #0c4a6e;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.method-explanation p + p {
    margin-top: 0.75rem;
}

.method-explanation .reference {
    font-size: 0.75rem;
    color: #64748b;
    font-style: italic;
    margin-top: 0.75rem;
}

/* Helper Link */
.helper-link {
    font-weight: 400;
}

.helper-link a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.8rem;
}

.helper-link a:hover {
    text-decoration: underline;
}

/* Macro Goal Cards */
.goal-cards {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.goal-card {
    flex: 1;
    min-width: 70px;
    padding: 0.75rem 0.5rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.goal-card:hover {
    border-color: #93c5fd;
    background-color: #f0f9ff;
}

.goal-card.active {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.goal-card-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.25rem;
}

.goal-card-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #374151;
    display: block;
}

.goal-card.active .goal-card-label {
    color: #1d4ed8;
}

/* Macro Ratio Preview */
.macro-ratio-preview {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.ratio-text {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

/* Request Calculator Card */
.request-card {
    border-style: dashed;
    border-color: #d1d5db;
    background-color: #fafafa;
}

.request-card:hover {
    border-color: #9ca3af;
    background-color: #f3f4f6;
}

.request-card .calculator-icon {
    color: #9ca3af;
}

.request-card .calculator-title {
    color: #6b7280;
}

.request-card .calculator-description {
    color: #9ca3af;
}

/* Plate Selector */
.plate-selector {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 0.5rem 1rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.plate-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
}

.plate-option input[type="checkbox"] {
    display: none;
}

.plate-circle {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.4;
    border: 3px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.plate-option input[type="checkbox"]:checked + .plate-circle {
    opacity: 1;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.plate-weight-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Plate sizes - scaled by weight */
.plate-25kg {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #ef4444, #dc2626);
}

.plate-20kg {
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, #3b82f6, #2563eb);
}

.plate-15kg {
    width: 56px;
    height: 56px;
    background: linear-gradient(145deg, #eab308, #ca8a04);
}

.plate-10kg {
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, #22c55e, #16a34a);
}

.plate-5kg {
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #1f2937, #111827);
}

.plate-2-5kg {
    width: 34px;
    height: 34px;
    background: linear-gradient(145deg, #6b7280, #4b5563);
}

.plate-1-25kg {
    width: 28px;
    height: 28px;
    background: linear-gradient(145deg, #f5f5f5, #e5e5e5);
    border: 2px solid #d1d5db !important;
}

.plate-1-25kg .plate-weight-label {
    color: #374151;
    text-shadow: none;
    font-size: 0.5rem;
}

.plate-2-5kg .plate-weight-label {
    font-size: 0.5rem;
}

/* Mobile responsive for plate selector */
@media (max-width: 480px) {
    .plate-selector {
        gap: 0.4rem;
        padding: 1rem 0.25rem;
    }

    .plate-25kg { width: 52px; height: 52px; }
    .plate-20kg { width: 48px; height: 48px; }
    .plate-15kg { width: 42px; height: 42px; }
    .plate-10kg { width: 36px; height: 36px; }
    .plate-5kg { width: 30px; height: 30px; }
    .plate-2-5kg { width: 26px; height: 26px; }
    .plate-1-25kg { width: 22px; height: 22px; }

    .plate-weight-label { font-size: 0.5rem; }
    .plate-2-5kg .plate-weight-label,
    .plate-1-25kg .plate-weight-label { font-size: 0.4rem; }
}

/* ===============================================
   1RM PERCENTAGE TABLE
   =============================================== */
.percentage-table {
    margin-top: 2rem;
}

.percentage-table h4 {
    color: #166534;
    margin-bottom: 1rem;
}

.percentage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.percentage-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background-color: #ffffff;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.percentage-label {
    color: #6b7280;
}

.percentage-value {
    color: #111827;
    font-weight: 600;
}

/* ===============================================
   MACRO CALCULATOR STYLES
   =============================================== */
.macro-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.macro-item {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid #e5e7eb;
}

.macro-item.protein {
    border-color: #fca5a5;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.macro-item.carbs {
    border-color: #fed7aa;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.macro-item.fats {
    border-color: #a7f3d0;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.macro-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.macro-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.macro-label {
    font-weight: 600;
    color: #374151;
}

.macro-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.macro-calories {
    font-size: 0.875rem;
    color: #6b7280;
}

/* ===============================================
   BODY FAT SPECIFIC STYLES
   =============================================== */
#hip-group {
    transition: all 0.3s ease;
}

/* Body Fat Categories */
.essential {
    background-color: #ddd6fe;
    color: #7c3aed;
}

.athletes {
    background-color: #dbeafe;
    color: #1e40af;
}

.fitness {
    background-color: #d1fae5;
    color: #166534;
}

.acceptable {
    background-color: #fde68a;
    color: #d97706;
}

.obesity {
    background-color: #fecaca;
    color: #dc2626;
}

/* ===============================================
   PLATE CALCULATOR STYLES
   =============================================== */
.plate-visual {
    margin-bottom: 2rem;
}

.barbell-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    position: relative;
}

.barbell {
    height: 8px;
    background-color: #4b5563;
    border-radius: 4px;
    position: relative;
    min-width: 200px;
}

.plate-stack {
    display: flex;
    align-items: center;
    gap: 2px;
}

.plate {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Plate colors and sizes */
.plate-25 {
    width: 60px;
    height: 60px;
    background-color: #dc2626;
}

.plate-20 {
    width: 55px;
    height: 55px;
    background-color: #2563eb;
}

.plate-15 {
    width: 48px;
    height: 48px;
    background-color: #eab308;
}

.plate-10 {
    width: 42px;
    height: 42px;
    background-color: #16a34a;
}

.plate-5 {
    width: 36px;
    height: 36px;
    background-color: #1f2937;
}

.plate-2-5 {
    width: 30px;
    height: 30px;
    background-color: #6b7280;
}

.plate-1-25 {
    width: 24px;
    height: 24px;
    background-color: #f5f5f5;
    color: #111827;
    border: 2px solid #d1d5db;
}

.plate-breakdown {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.plate-breakdown h4 {
    color: #374151;
    margin-bottom: 1rem;
}

.plate-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.plate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background-color: #ffffff;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
}

.plate-weight {
    color: #374151;
    font-weight: 500;
}

.plate-count {
    color: #2563eb;
    font-weight: 600;
}

/* ===============================================
   ANIMATIONS
   =============================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.result-section.show {
    animation: fadeInUp 0.5s ease-out;
}

.calculator-card:hover {
    animation: scaleIn 0.3s ease-out;
}

/* ===============================================
   RUNNING PACE CALCULATOR STYLES
   =============================================== */
.unit-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.unit-toggle-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    transition: color 0.2s ease;
}

.unit-toggle-label.active {
    color: #2563eb;
}

.unit-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.unit-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.unit-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2563eb;
    transition: 0.3s;
    border-radius: 28px;
}

.unit-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.unit-toggle input:checked + .unit-slider {
    background-color: #2563eb;
}

.unit-toggle input:checked + .unit-slider:before {
    transform: translateX(24px);
}

.calculation-mode-toggle {
    margin-bottom: 1.5rem;
}

.time-inputs,
.pace-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.time-input,
.pace-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: center;
}

.time-input:focus,
.pace-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.time-separator,
.pace-separator {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6b7280;
}

.time-labels,
.pace-labels {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.time-labels span,
.pace-labels span {
    flex: 1;
    text-align: center;
}

.pace-main-result {
    text-align: center;
    margin-bottom: 2rem;
}

.pace-main-result .result-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.pace-main-result .result-label {
    font-size: 1.25rem;
    color: #6b7280;
    font-weight: 600;
}

.pace-additional-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.pace-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pace-stat .stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.pace-stat .stat-value {
    font-size: 1.125rem;
    color: #111827;
    font-weight: 600;
}

/* Pace Conversion Styles */
/* Pace Mode Cards */
.pace-mode-cards {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.pace-mode-card {
    flex: 1;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 2px solid #e5e7eb;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pace-mode-card:hover {
    border-color: #93c5fd;
    background-color: #f0f9ff;
}

.pace-mode-card.active {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.pace-mode-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.pace-mode-card p {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

.pace-mode-card.active h4 {
    color: #2563eb;
}

.pace-mode-content {
    margin-bottom: 1rem;
}

.pace-convert-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pace-convert-option {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.convert-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
}

.convert-label input[type="radio"] {
    cursor: pointer;
}

.pace-convert-divider {
    text-align: center;
    font-weight: 600;
    color: #9ca3af;
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.pace-conversion-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.conversion-from,
.conversion-to {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.conversion-to {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #93c5fd;
}

.conversion-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.conversion-value {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.conversion-value.highlight {
    color: #2563eb;
}

.conversion-speed {
    font-size: 0.875rem;
    color: #6b7280;
}

.conversion-arrow {
    font-size: 2rem;
    color: #2563eb;
    font-weight: 600;
}

.conversion-info {
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.conversion-info p {
    color: #92400e;
    font-size: 0.875rem;
    margin: 0;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */
@media (min-width: 640px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.375rem;
    }

    .question-title {
        font-size: 1.875rem;
    }

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

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

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

@media (max-width: 640px) {
    .card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .calculators-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .calculator-card {
        padding: 1.5rem;
    }

    .result-value {
        font-size: 2.5rem;
    }

    .tdee-results,
    .oneRM-results {
        gap: 0.75rem;
    }

    .tdee-item,
    .oneRM-item {
        flex-direction: column;
        text-align: left;
        gap: 0.25rem;
    }

    .macro-results {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .plate-list {
        grid-template-columns: 1fr;
    }

    .barbell-container {
        flex-direction: column;
        gap: 1rem;
    }

    .time-inputs,
    .pace-inputs {
        flex-direction: row;
    }

    .time-input,
    .pace-input {
        font-size: 0.875rem;
    }

    .pace-main-result .result-value {
        font-size: 2.5rem;
    }

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

    .pace-conversion-result {
        flex-direction: column;
        gap: 1rem;
    }

    .conversion-arrow {
        transform: rotate(90deg);
    }

    .conversion-value {
        font-size: 1.5rem;
    }
}

/* ===============================================
   ACCESSIBILITY
   =============================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.calculator-card:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.btn:focus,
.set-input:focus,
.back-btn:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}