/* 만 나이 계산기 히어로 섹션 */
.age-calculator-hero {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

.age-calculator-hero .webtools-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 2.5rem;
    color: white !important;
    gap: 1rem;
}

.age-calculator-hero .webtools-icon {
    color: white !important;
    font-size: 2.5rem;
    margin: 0;
    flex-shrink: 0;
}

.age-calculator-hero .webtools-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin: 1rem auto 0 auto !important;
    font-size: 1.1rem;
    text-align: center !important;
    display: block;
    max-width: 90%;
}

/* 사용법 안내 */
.age-usage-guide {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #90caf9;
    margin-bottom: 2rem;
}

.age-usage-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
}

.age-usage-step:last-child {
    margin-bottom: 0;
}

.age-step-number {
    width: 30px;
    height: 30px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.age-step-content {
    flex: 1;
    color: #495057;
    line-height: 1.5;
    margin: 0;
}

/* 입력 폼 스타일 */
.age-form-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.age-form-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem;
}

.age-form-body {
    padding: 2rem;
}

.age-input-group {
    margin-bottom: 1.5rem;
}

.age-input-group .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
}

.age-input-group .input-group-text {
    background: white;
    border-right: none;
    color: #007bff;
}

.age-input-group .form-control,
.age-input-group .form-select {
    border-left: none;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.age-input-group .input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.age-input-group .input-group:focus-within {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.age-input-group .input-group:focus-within .input-group-text {
    border-color: #007bff;
}

.age-input-group .form-control:focus,
.age-input-group .form-select:focus {
    border-color: #007bff;
    box-shadow: none;
}

/* 기준일 선택 */
.age-base-date {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.age-base-date .form-check {
    margin-bottom: 0.5rem;
}

.age-base-date .form-check:last-child {
    margin-bottom: 0;
}

/* 특정 날짜 입력 */
.age-custom-date {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

/* 계산 버튼 */
.age-calculate-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    width: 100%;
}

.age-calculate-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: white;
}

/* 결과 카드 */
.age-result-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.age-result-header {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    padding: 1.5rem;
}

.age-result-body {
    padding: 2rem;
}

.age-result-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.age-result-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.age-result-label {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
}

.age-result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    margin: 0;
    font-family: 'Consolas', 'Monaco', monospace;
}

.age-result-unit {
    font-size: 1.2rem;
    color: #6c757d;
    margin-left: 0.5rem;
}

/* 상세 정보 */
.age-detail-list {
    margin-top: 2rem;
}

.age-detail-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.age-detail-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.age-detail-item:last-child {
    margin-bottom: 0;
}

.age-detail-icon {
    color: #007bff;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* FAQ 스타일 */
.age-faq .accordion-item {
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    border: 1px solid #e5e8ec;
}

.age-faq .accordion-button {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    font-weight: 600;
    border-radius: 8px;
}

.age-faq .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #007bff;
}

.age-faq .accordion-body {
    background: white;
    color: #495057;
    line-height: 1.6;
}

/* 반응형 최적화 */
@media (max-width: 768px) {
    .age-calculator-hero {
        padding: 1.5rem 1rem;
    }
    
    .age-calculator-hero .webtools-title {
        font-size: 2rem;
        gap: 0.75rem;
    }
    
    .age-calculator-hero .webtools-icon {
        font-size: 2rem;
    }
    
    .age-calculator-hero .webtools-subtitle {
        font-size: 1rem;
        margin-top: 0.75rem !important;
    }
    
    .age-form-body {
        padding: 1.5rem;
    }
    
    .age-result-body {
        padding: 1.5rem;
    }
    
    .age-result-value {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .age-calculator-hero {
        padding: 1rem 0.75rem;
    }
    
    .age-calculator-hero .webtools-title {
        font-size: 1.75rem;
        gap: 0.5rem;
    }
    
    .age-calculator-hero .webtools-icon {
        font-size: 1.75rem;
    }
    
    .age-calculator-hero .webtools-subtitle {
        font-size: 0.9rem;
        margin-top: 0.5rem !important;
    }
    
    .age-form-body {
        padding: 1rem;
    }
    
    .age-result-body {
        padding: 1rem;
    }
    
    .age-result-value {
        font-size: 1.75rem;
    }
}

/* 만 나이 계산 예시 스타일 */
.age-example-guide {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #ffd93d;
    margin-bottom: 1rem;
}

.age-example-header h6 {
    color: #856404;
    font-weight: 600;
    font-size: 1.1rem;
}

.age-example-section {
    margin: 1.5rem 0;
}

.age-example-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.age-example-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.age-example-item:last-child {
    margin-bottom: 0;
}

.age-example-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.age-example-content {
    flex: 1;
}

.age-example-title {
    color: #495057;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.age-example-formula {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid #007bff;
}

.formula-text {
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: 600;
    color: #007bff;
    font-size: 0.95rem;
}

.age-example-demo {
    color: #495057;
    font-size: 0.95rem;
}

.demo-calculation {
    font-family: 'Consolas', 'Monaco', monospace;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.demo-result {
    color: #007bff;
    font-weight: 700;
    font-size: 1.1rem;
}

.age-example-tip {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    color: #495057;
    font-size: 0.95rem;
    border-left: 4px solid #28a745;
    display: flex;
    align-items: flex-start;
}

.age-example-tip i {
    color: #28a745;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* 반응형 최적화 */
@media (max-width: 768px) {
    .age-example-guide {
        padding: 1rem;
    }
    
    .age-example-item {
        flex-direction: column;
        text-align: center;
    }
    
    .age-example-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
        align-self: center;
    }
    
    .formula-text {
        font-size: 0.9rem;
    }
    
    .age-example-demo {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .age-example-guide {
        padding: 0.75rem;
    }
    
    .age-example-item {
        padding: 0.75rem;
    }
    
    .age-example-formula {
        padding: 0.5rem;
    }
    
    .formula-text {
        font-size: 0.85rem;
    }
}