/* 아니모라 분석 페이지 스타일 */

.hero-section {
    background-color: #1a2a5e;
    background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
                url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?q=75&w=1280&auto=format&fit=crop&fm=webp') center center / cover no-repeat;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 Q300,60 600,60 T1200,0 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.05)"/></svg>') repeat-x bottom;
    opacity: 0.5;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5),
                 0 0 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5),
                 0 0 15px rgba(0, 0, 0, 0.3);
}

/* 분석 타입 선택 */
.analysis-type-section {
    padding: 60px 0 40px;
    background: #f8f9fc;
}

.type-selector {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.type-btn {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    background: white;
    border: 2px solid #e0e4f0;
    border-radius: 16px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.type-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(44, 62, 137, 0.15);
    border-color: #4a5fc1;
}

.type-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(44, 62, 137, 0.3);
}

.type-btn .icon {
    font-size: 3rem;
}

.type-btn .text {
    font-size: 1.1rem;
    font-weight: 600;
}

/* 폼 섹션 */
.form-section {
    padding: 60px 0;
    display: none;
}

.form-section.active {
    display: block;
}

.form-card {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-card h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.form-description {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* 폼 그룹 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e4f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: 2px solid transparent;
    border-color: #4a5fc1;
    box-shadow: 0 0 0 4px rgba(74, 95, 193, 0.25);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 사람 그룹 */
.person-group {
    background: #f8f9fc;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.person-group h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* 버튼 */
.submit-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(44, 62, 137, 0.3);
}

.submit-btn svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(5px);
}

.add-btn {
    width: 100%;
    background: white;
    color: #4a5fc1;
    border: 2px dashed #4a5fc1;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-btn:hover {
    background: #f8f9fc;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 가족 구성원 카드 */
.member-card {
    background: white;
    border: 2px solid #e0e4f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
}

.member-card h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.remove-member-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.remove-member-btn:hover,
.remove-member-btn:focus {
    background: #e84118;
    transform: rotate(90deg);
    outline: 2px solid #e84118;
    outline-offset: 2px;
}

/* 결과 섹션 */
.result-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fc 0%, white 100%);
}

.result-section.hidden {
    display: none;
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.result-header {
    text-align: center;
    margin-bottom: 50px;
}

.result-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.result-header .subtitle {
    font-size: 1.2rem;
    color: #666;
}

/* 프로필 카드 */
.profile-card {
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.profile-birth {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.animora-type {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.animora-type h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.animora-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 5px;
}

/* 분석 섹션 */
.analysis-section {
    margin: 40px 0;
}

.analysis-section h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #d4af37;
}

.analysis-content {
    line-height: 2;
    color: #333;
    font-size: 1.05rem;
}

.analysis-content p {
    margin-bottom: 15px;
}

.analysis-list {
    list-style: none;
    padding: 0;
}

.analysis-list li {
    padding: 15px 20px;
    margin-bottom: 12px;
    background: #f8f9fc;
    border-left: 4px solid #4a5fc1;
    border-radius: 8px;
}

/* 궁합 점수 */
.compatibility-score {
    text-align: center;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: white;
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
}

.score-circle {
    width: 150px;
    height: 150px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    color: #d4af37;
}

.score-label {
    font-size: 1.5rem;
    font-weight: 600;
}

/* 관계 그리드 */
.relationship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.relationship-item {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.relationship-item h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.relationship-item p {
    color: #666;
    line-height: 1.8;
}

/* AI 링크 버튼 */
.ai-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #4a5fc1;
    border: 2px solid #4a5fc1;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.ai-link-btn:hover {
    background: #4a5fc1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(74, 95, 193, 0.3);
}

/* 반응형 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .type-selector {
        flex-direction: column;
    }
    
    .type-btn {
        max-width: 100%;
    }
    
    .form-card {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .person-group {
        padding: 20px;
    }
    
    .result-card {
        padding: 30px 20px;
    }
    
    .relationship-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .result-header h2 {
        font-size: 1.8rem;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .animora-badge {
        font-size: 1.1rem;
        padding: 10px 20px;
    }
}

