/*
 * bmi.css — BMI Calculator page-specific styles
 *
 * Requires: calculator.css (shared base)
 * Extracted from: deploy/bmi-calculator.php
 */

/* =============================================
   BMI CATEGORY BADGE
   ============================================= */

.bmi-category-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: var(--text-small);
    font-weight: 700;
    margin-top: 8px;
}

/* =============================================
   BMI VISUAL SCALE
   ============================================= */

.bmi-scale-wrap {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}
.bmi-scale-label {
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    text-align: center;
}
.bmi-scale {
    position: relative;
    height: 28px;
    border-radius: 14px;
    /* Range 14-42 (span=28). WHO boundaries:
       16→7.1%, 17→10.7%, 18.5→16.1%, 25→39.3%, 30→57.1%, 35→75%, 40→92.9%
       Smooth 3% transitions centered at each boundary */
    background: linear-gradient(to right,
        #ef5350 0%,
        #ef5350 5%,
        #ff9800 9%,
        #ffc107 13%,
        #4caf50 18%,
        #4caf50 37%,
        #ff9800 41%,
        #ff9800 55%,
        #ef5350 59%,
        #ef5350 73%,
        #c62828 77%,
        #c62828 91%,
        #b71c1c 95%,
        #b71c1c 100%
    );
    margin-bottom: 8px;
    overflow: visible;
}
.bmi-scale-marker {
    position: absolute;
    top: -8px;
    width: 4px;
    height: 44px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    transition: left 0.5s ease;
}
.bmi-scale-marker::after {
    content: attr(data-bmi);
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--text-caption);
    font-weight: 700;
    color: var(--color-text-primary);
    white-space: nowrap;
}
.bmi-scale-labels {
    position: relative;
    height: 16px;
    margin-top: 36px;
}
.bmi-scale-labels span {
    position: absolute;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--color-text-tertiary);
    white-space: nowrap;
}

/* =============================================
   IDEAL WEIGHT CARD
   ============================================= */

.bmi-ideal-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}
.bmi-ideal-text {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    line-height: 1.6;
}
.bmi-ideal-value {
    color: var(--color-accent-green);
    font-weight: 700;
}
.bmi-ideal-formula {
    font-size: var(--text-caption);
    color: var(--color-text-tertiary);
    margin-top: 4px;
}

/* =============================================
   TABLE HIGHLIGHT ROW
   ============================================= */

.calc-table .current td {
    color: var(--color-accent-green);
    font-weight: 600;
}
.calc-table .current td:first-child {
    color: var(--color-accent-green);
}

/* =============================================
   CROSS-LINK BUTTON
   ============================================= */

.bmi-crosslink {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-accent-green);
    font-size: var(--text-body);
    font-weight: 600;
    text-decoration: none;
    margin-bottom: var(--spacing-lg);
    transition: all var(--transition-fast);
}
.bmi-crosslink:hover {
    border-color: var(--color-accent-green);
    background: rgba(76, 175, 80, 0.05);
}

/* =============================================
   CATEGORY COLOR DOTS
   ============================================= */

.cat-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

/* =============================================
   RESPONSIVE — BMI-SPECIFIC
   ============================================= */

@media (max-width: 480px) {
    .bmi-scale-labels span { font-size: 9px; }
}
