/* 체지방률 계산기 전용 스타일 */

.gender-buttons {
    display: flex;
    gap: 0.5rem;
}

.gender-btn {
    flex: 1;
}

.bf-result-container {
    display: none;
    margin-top: 1.5rem;
}

/* 메인 결과 카드 */
.bf-result-main {
    background: var(--glass-bg);
    border: 2px solid var(--pastel-blue-1);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.bf-result-main-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.bf-result-main-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--pastel-blue-1);
    line-height: 1;
}

.bf-result-main-unit {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-left: 0.2rem;
}

/* 단계 배지 */
.bf-stage-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.6rem;
}

.bf-stage-badge.essential {
    background: rgba(99, 102, 241, 0.15);
    color: #4338ca;
}

.bf-stage-badge.athlete {
    background: rgba(37, 99, 235, 0.13);
    color: #1d4ed8;
}

.bf-stage-badge.fit {
    background: rgba(22, 163, 74, 0.13);
    color: #15803d;
}

.bf-stage-badge.average {
    background: rgba(234, 179, 8, 0.15);
    color: #a16207;
}

.bf-stage-badge.obese {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

/* 세부 결과 그리드 */
.bf-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bf-detail-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.9rem 0.75rem;
    text-align: center;
}

.bf-detail-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.bf-detail-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pastel-blue-1);
}

.bf-detail-unit {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* 범위 시각화 바 */
.bf-range-bar-wrap {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.bf-range-bar-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.bf-range-bar {
    display: flex;
    height: 14px;
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
}

.bf-range-segment {
    height: 100%;
    transition: opacity 0.2s;
}

.bf-range-segment.essential { background: #818cf8; }
.bf-range-segment.athlete   { background: #3b82f6; }
.bf-range-segment.fit       { background: #22c55e; }
.bf-range-segment.average   { background: #eab308; }
.bf-range-segment.obese     { background: #ef4444; }

.bf-range-indicator {
    position: absolute;
    top: -4px;
    width: 6px;
    height: 22px;
    background: #1a1a1a;
    border-radius: 3px;
    transform: translateX(-50%);
    box-shadow: 0 0 0 2px #fff;
}

.bf-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

/* 가이드 그리드 */
.bf-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}

.bf-guide-block h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pastel-blue-1);
    margin-bottom: 0.75rem;
}

.bf-stage-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    font-size: 0.87rem;
}

.bf-stage-row .bf-stage-label {
    font-weight: 500;
}

.bf-stage-row .bf-stage-range {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.bf-stage-row.bf-stage-essential {
    background: rgba(99, 102, 241, 0.10);
}

.bf-stage-row.bf-stage-athlete {
    background: rgba(37, 99, 235, 0.10);
}

.bf-stage-row.bf-stage-fit {
    background: rgba(22, 163, 74, 0.10);
}

.bf-stage-row.bf-stage-average {
    background: rgba(234, 179, 8, 0.10);
}

.bf-stage-row.bf-stage-obese {
    background: rgba(220, 38, 38, 0.08);
}

@media (max-width: 768px) {
    .bf-detail-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bf-guide-grid {
        grid-template-columns: 1fr;
    }

    .bf-result-main-value {
        font-size: 2.2rem;
    }
}
