/* 추가 기능 스타일 */

/* 탭 네비게이션 */
.features-tabs {
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tab-navigation {
    display: flex;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-bottom: 2px solid #d4a574;
}

.tab-button {
    flex: 1;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    background: rgba(212, 165, 116, 0.1);
    color: #8b4513;
}

.tab-button.active {
    background: white;
    color: #8b4513;
    font-weight: 600;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #d4a574;
}

/* 탭 콘텐츠 */
.tab-contents {
    padding: 2rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* 궁합 섹션 */
.compatibility-form {
    margin-top: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.person-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, #fdf6f0 0%, #f7e8dc 100%);
    border-radius: 12px;
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.person-card h4 {
    color: #8b4513;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-display p {
    margin: 0.5rem 0;
    color: #555;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #d4a574 0%, #c19656 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(212, 165, 116, 0.3);
}

/* 궁합 결과 */
#compatibility-result {
    margin-top: 2rem;
    animation: slideUp 0.5s ease;
}

.result-card {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-card h4 {
    text-align: center;
    color: #8b4513;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.compatibility-score {
    text-align: center;
    margin-bottom: 2rem;
}

.score-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 50%;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.score-value {
    font-size: 3rem;
    font-weight: bold;
}

.score-label {
    font-size: 1rem;
    opacity: 0.9;
}

.compatibility-details {
    margin: 2rem 0;
}

.detail-item {
    margin-bottom: 1.5rem;
}

.detail-item span {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #d4a574 0%, #c19656 100%);
    border-radius: 12px;
    transition: width 1s ease;
}

.compatibility-advice {
    padding: 1.5rem;
    background: linear-gradient(135deg, #fdf6f0 0%, #f7e8dc 100%);
    border-radius: 8px;
    text-align: center;
}

.compatibility-advice p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* 택일 섹션 */
.taekil-form {
    max-width: 600px;
    margin: 0 auto;
}

.taekil-dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.date-card {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 2px solid #d4a574;
    transition: all 0.3s ease;
}

.date-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.date-header {
    font-size: 1.2rem;
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 1rem;
    text-align: center;
}

.date-info p {
    margin: 0.5rem 0;
    color: #555;
    font-size: 0.95rem;
}

/* 작명 섹션 */
.naming-form {
    max-width: 500px;
    margin: 0 auto;
}

.name-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.name-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, #fdf6f0 0%, #f7e8dc 100%);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.name-card:hover {
    transform: scale(1.05);
}

.name-card h4 {
    color: #8b4513;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.name-card p {
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .tab-navigation {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1 1 50%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score-value {
        font-size: 2.5rem;
    }
}