/* Infant Age Calculator Specific Styles */

/* ========================================
   RESULT SUB TABS
   ======================================== */
.result-sub-tabs-wrapper {
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.result-sub-tabs {
    display: flex;
    justify-content: center;
    background-color: #F5F5F5;
    border-radius: 8px;
    padding: 4px;
    min-width: max-content;
}

.result-sub-tab {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.result-sub-tab:hover {
    color: #319C80;
}

.result-sub-tab.active {
    background-color: #319C80;
    color: #fff;
    font-weight: 600;
}

.result-sub-content {
    display: none;
}

.result-sub-content.active {
    display: block;
}

/* ========================================
   월령/일수 탭 스타일
   ======================================== */
.age-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.age-info-card {
    background: #fff;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.age-info-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.age-info-value {
    font-size: 20px;
    font-weight: 700;
    color: #319C80;
}

.age-info-sub {
    font-size: 11px;
    color: #999;
}

.milestone-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.milestone-card {
    background: #fff;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.milestone-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.milestone-value {
    font-size: 22px;
    font-weight: 700;
    color: #E74C3C;
}

.milestone-value.passed {
    color: #319C80;
}

/* 발달 단계 요약 */
.development-summary {
    margin-top: 0;
}

.development-stage-box {
    background: linear-gradient(135deg, #E8F4F1 0%, #D4EDE7 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stage-name {
    font-size: 18px;
    font-weight: 700;
    color: #319C80;
}

.stage-desc {
    font-size: 14px;
    color: #555;
}

.development-note {
    margin-top: 12px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

/* ========================================
   가이드 카드 스타일
   ======================================== */
.guide-item {
    padding: 12px 0;
    border-bottom: 1px solid #F0F0F0;
}

.guide-item:last-child {
    border-bottom: none;
}

.guide-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-item-title::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #319C80;
    border-radius: 50%;
    flex-shrink: 0;
}

.guide-item-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    padding-left: 14px;
}

/* ========================================
   예방접종 스타일
   ======================================== */
.vaccination-item {
    display: flex;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #F0F0F0;
    gap: 12px;
}

.vaccination-item:last-child {
    border-bottom: none;
}

.vaccination-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.vaccination-status.completed {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.vaccination-status.upcoming {
    background-color: #FFF3E0;
    color: #E65100;
}

.vaccination-status.next {
    background-color: #319C80;
    color: #fff;
}

.vaccination-info {
    flex: 1;
}

.vaccination-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.vaccination-time {
    font-size: 13px;
    color: #666;
}

/* 다음 접종 강조 */
.next-vaccination-highlight {
    background: linear-gradient(135deg, #319C80 0%, #28816c 100%);
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    text-align: center;
}

.next-vaccination-highlight .vaccination-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.next-vaccination-highlight .vaccination-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.next-vaccination-highlight .vaccination-time {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   건강검진 스타일
   ======================================== */
.health-check-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #F0F0F0;
    gap: 12px;
}

.health-check-item:last-child {
    border-bottom: none;
}

.health-check-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
}

.health-check-item.completed .health-check-number {
    background-color: #319C80;
    color: #fff;
}

.health-check-item.current .health-check-number {
    background-color: #E74C3C;
    color: #fff;
}

.health-check-info {
    flex: 1;
}

.health-check-period {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.health-check-age {
    font-size: 13px;
    color: #666;
}

.health-check-status {
    font-size: 13px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
}

.health-check-status.completed {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.health-check-status.current {
    background-color: #FFEBEE;
    color: #C62828;
}

.health-check-status.upcoming {
    background-color: #F5F5F5;
    color: #666;
}

/* ========================================
   정부지원금 스타일
   ======================================== */
.support-item {
    padding: 16px;
    background: #FAFAFA;
    border-radius: 10px;
    margin-bottom: 12px;
}

.support-item:last-child {
    margin-bottom: 0;
}

.support-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.support-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.support-amount {
    font-size: 16px;
    font-weight: 700;
    color: #319C80;
}

.support-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.support-eligible {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    background-color: #E8F5E9;
    color: #2E7D32;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
}

.support-not-eligible {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    background-color: #F5F5F5;
    color: #999;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
}

/* ========================================
   안전&응급 스타일
   ======================================== */
.safety-item {
    padding: 12px 0;
    border-bottom: 1px solid #F0F0F0;
}

.safety-item:last-child {
    border-bottom: none;
}

.safety-title {
    font-size: 14px;
    font-weight: 600;
    color: #E74C3C;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.safety-title::before {
    content: '⚠';
    font-size: 14px;
}

.safety-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.emergency-contacts {
    background: #FFF5F5;
    border: 1px solid #FFCDD2;
}

.emergency-number {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #FFCDD2;
}

.emergency-number:last-child {
    border-bottom: none;
}

.emergency-label {
    font-size: 14px;
    color: #555;
}

.emergency-value {
    font-size: 18px;
    font-weight: 700;
    color: #E74C3C;
}

/* ========================================
   반응형
   ======================================== */
@media (max-width: 768px) {
    .age-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-sub-tabs-wrapper {
        padding: 0 16px;
        margin-bottom: 20px;
    }

    .result-sub-tab {
        padding: 8px 12px;
        font-size: 13px;
    }

    .age-info-value {
        font-size: 18px;
    }

    .milestone-value {
        font-size: 20px;
    }

    .milestone-grid {
        padding: 0 16px;
    }

    .age-info-grid {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .age-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .age-info-card {
        padding: 12px;
    }

    .age-info-value {
        font-size: 16px;
    }

    .milestone-grid {
        grid-template-columns: 1fr;
    }
}
