/* [파일 이름: style.css] - (결과 1000px / 섹션 간격 수정 버전) */

/* 1. 기본 및 배경 설정 */
body {
    background: linear-gradient(135deg, #fce38a 0%, #f38181 100%);
    background-attachment: fixed;
    font-family: 'Pretendard', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    margin: 0;
    transition: align-items 0.3s ease;
}
body.result-active {
    align-items: flex-start;
}

/* 2. 메인 카드 컨테이너 */
.card-container {
    max-width: 600px;
    width: 100%;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease;
    box-sizing: border-box;
    transition: max-width 0.4s ease-in-out;
}

/* [수정] 결과 페이지(1000px)가 활성화되면 이 스타일 적용 */
.card-container.result-active {
    max-width: 1000px; /* 1200px -> 1000px로 수정 */
    margin-top: 40px;
    margin-bottom: 40px;
}

.card-content { width: 100%; }

/* 3. 헤더 (제목) */
.card-header h1 { text-align: center; color: #333; font-size: 25px; font-weight: 700; margin-bottom: 5px; }
.card-header .subtitle { text-align: center; color: #999; font-size: 15px; margin-bottom: 25px; }

/* 4. 탭 메뉴 */
.tab-menu { display: flex; margin-bottom: 25px; border-bottom: 1px solid #eee; }
.tab-button {
    flex: 1; padding-bottom: 12px; font-size: 17px; font-weight: 600;
    text-align: center; background-color: transparent; border: none;
    cursor: pointer; color: #aaa; border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
.tab-button.active { color: #e53935; border-bottom-color: #e53935; }

/* 5. 탭 콘텐츠 (폼) */
.tab-content { display: none; }
.tab-content.active { display: block; animation: slideUp 0.5s ease; }
.tab-content h2 { font-size: 19px; font-weight: 600; color: #333; margin-bottom: 15px; }
.input-group { margin-bottom: 12px; }
.input-group label { display: block; font-size: 14px; font-weight: 500; color: #555; margin-bottom: 6px; }
.input-group select,
.input-group input {
    width: 100%; padding: 12px; font-size: 16px; border: 1px solid #ddd;
    border-radius: 8px; background-color: #f8f9fa; box-sizing: border-box;
}
.input-group input[type="date"] { color: #555; }

/* 6. 버튼 */
.action-button {
    width: 100%; padding: 14px; font-size: 17px; font-weight: 700;
    color: white; background-color: #e53935; border: none;
    border-radius: 8px; cursor: pointer; transition: all 0.3s ease;
    margin-top: 10px;
}
.action-button:hover {
    background-color: #c62828; transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

/* 7. 상세 페이지 하단 버튼 */
.button-group { margin-top: 25px; display: flex; gap: 10px; }
.action-button.secondary { background-color: #eee; color: #555; }
.action-button.secondary:hover { background-color: #ddd; box-shadow: none; }

/* 8. 사주 (준비 중) */
.coming-soon {
    font-size: 15px; color: #777; line-height: 1.6;
    background-color: #f9f9f9; padding: 20px; border-radius: 8px;
    text-align: center;
}

/* 9. 결과 카드 (결과 페이지 내부) */
#result-content .result-card {
    background-color: #fcfcfc; border: 1px solid #eee; border-radius: 10px;
    padding: 20px; margin-bottom: 15px; animation: fadeIn 0.5s ease;
}
#result-content h2 {
    font-size: 21px; color: #e53935; margin-top: 0;
    border-bottom: 2px solid #f9f9f9; padding-bottom: 10px;
}
#result-content h3 {
    font-size: 19px; color: #333;
    /* [수정] 이모지 타이틀 상단 간격을 35px -> 45px로 늘림 */
    margin-top: 45px;
}
#result-content h4 {
    font-size: 17px; color: #555;
    margin-bottom: 10px;
}
#result-content p, #result-content li {
    font-size: 16px; color: #555;
    line-height: 1.7; white-space: pre-wrap;
    /* [수정] p 태그 아래에도 살짝 간격을 줘서 h3와 더 떨어지게 함 */
    margin-bottom: 10px;
}
#result-content ul { padding-left: 20px; }

/* 10. 로딩 오버레이 */
.hidden { display: none !important; }
#loading-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.8); display: flex; flex-direction: column;
    justify-content: center; align-items: center; z-index: 9999;
}
#loading-overlay p { font-size: 19px; font-weight: 600; color: #555; }
.spinner {
    width: 50px; height: 50px; border: 5px solid #f3f3f3;
    border-top: 5px solid #e53935; border-radius: 50%;
    animation: spin 1s linear infinite; margin-bottom: 20px;
}
/* [파일 이름: style.css] - 하단에 추가 */

/* 글로벌 컨트롤 영역 */
#global-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 10px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9000;
}

.lang-selector button, .global-share-icons button {
    padding: 8px 12px;
    margin-right: 5px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background-color: white;
    font-size: 14px;
    transition: all 0.2s ease;
}

.lang-selector button.active {
    background-color: #e53935;
    color: white;
    border-color: #e53935;
}

/* 결과 페이지 공유 버튼 그룹 */
.share-result-group {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
}
.share-result-group h3 {
    font-size: 18px;
    color: #555;
    margin-bottom: 15px;
    border-bottom: none;
}
.share-result-group .share-btn {
    width: auto;
    padding: 10px 15px;
    font-size: 14px;
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    margin: 5px;
}

/* [파일 이름: style.css] - 파일 맨 아래에 추가 */

/* 쿠팡 파트너스 영역 */
.coupang-area {
    padding-top: 15px;
    padding-bottom: 5px;
    border-top: 1px dashed #ddd; /* 광고 영역 구분선 */
}


/* 11. 애니메이션 */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
