/* 
 * fitcalc-style.css
 * FIT Calculator 전용 스타일
 */

/* 기본 설정 */
:root {
    --color-primary: #4CAF50;
    --color-primary-hover: #45a049;
    --color-primary-dark: #388e3c;
    --color-bg: #f8f9fd;
    --color-white: #ffffff;
    --color-text: #1D2659;
    --color-text-light: #2E3C8C;
    --color-border: rgba(76, 175, 80, 0.2);
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* 헤더 */
.header { position: sticky; top: 0; z-index: 1000; background: var(--color-white); border-bottom: 1px solid var(--color-border); box-shadow: 0 1px 3px rgba(29, 38, 89, 0.1); }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.logo-mark { background: var(--color-primary); color: #fff; padding: 0.4rem 0.8rem; border-radius: 8px; font-size: 1.1rem; font-weight: 800; border: 2px solid var(--color-primary); box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3); }
.logo-text { display: none; }
.nav { display: flex; gap: 1rem; flex: 1; justify-content: center; margin-left: 3rem; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--color-text-light); font-weight: 500; transition: color 0.2s; white-space: nowrap; font-size: 0.85rem; text-decoration: none; }
.nav a:hover { color: var(--color-primary); }
.nav-toggle { display: none; }

/* 공통 컨테이너 */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 유틸리티 */
.hidden {
    display: none !important;
}

/* 히어로 섹션 */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 120px 0 80px 0;
    text-align: center;
    color: var(--color-white);
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--color-white);
    color: var(--color-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* About 섹션 */
.about-section {
    padding: 80px 0;
    background: var(--color-white);
}

.about-section h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 24px;
}

.about-section > .section-inner > p {
    text-align: center;
    font-size: 18px;
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto 48px auto;
    line-height: 1.8;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--color-text-light);
}

/* 계산기 섹션 */
.calculator-section {
    padding: 80px 0;
}

.calculator-section h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 48px;
}

.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

/* 입력 카드 */
.calc-input-card {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
}

.calc-input-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 24px;
}

/* 성별 선택 */
.gender-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.gender-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 600;
}

.gender-btn:hover {
    border-color: var(--color-primary);
}

.gender-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.gender-icon {
    font-size: 32px;
}

/* 입력 그룹 */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text);
}

input[type="number"],
select {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* 버튼 */
.btn {
    padding: 14px 24px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn.primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn.primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}

.btn.full {
    width: 100%;
    margin-top: 8px;
}

/* 결과 카드 */
.calc-result-card {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calc-result-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 24px;
}

.result-item {
    margin-bottom: 24px;
}

.result-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.result-value {
    font-size: 36px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.result-value .unit {
    font-size: 18px;
    font-weight: 600;
    margin-left: 4px;
}

.result-status {
    margin-top: 8px;
    padding: 8px 16px;
    background: var(--color-bg);
    border-radius: 20px;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
}

.result-desc {
    margin-top: 8px;
    font-size: 14px;
    color: var(--color-text-light);
}

.result-divider {
    height: 1px;
    background: var(--color-border);
    margin: 24px 0;
}

.result-tips {
    background: rgba(76, 175, 80, 0.1);
    padding: 20px;
    border-radius: 12px;
}

.result-tips h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.result-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.result-tips li {
    padding: 8px 0;
    font-size: 15px;
    color: var(--color-text-light);
}

.result-tips li strong {
    color: var(--color-text);
}

/* BMI 정보 섹션 */
.info-section {
    padding: 80px 0;
    background: var(--color-white);
}

.info-section h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 48px;
}

.bmi-table {
    max-width: 600px;
    margin: 0 auto;
}

.bmi-row {
    display: flex;
    justify-content: space-between;
    padding: 20px 24px;
    margin-bottom: 12px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
}

.bmi-underweight {
    background: #dbeafe;
    color: #1e40af;
}

.bmi-normal {
    background: #dcfce7;
    color: #166534;
}

.bmi-overweight {
    background: #fef9c3;
    color: #854d0e;
}

.bmi-obese1 {
    background: #fed7aa;
    color: #9a3412;
}

.bmi-obese2 {
    background: #fecaca;
    color: #991b1b;
}

/* 반응형 */
@media (max-width: 1024px) {
    .calc-container {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .about-section h2,
    .calculator-section h2,
    .info-section h2 {
        font-size: 28px;
    }

    .calc-input-card,
    .calc-result-card {
        padding: 24px;
    }

    .result-value {
        font-size: 28px;
    }
}
