/* 기본 설정 */
.result-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 메인 섹션 스타일 */
.main-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* 분석 섹션 그리드 */
.analysis-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.analysis-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.analysis-section h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

/* 사주 컨텐츠 */
.saju-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 섹션 공통 스타일 */
.saju-chart-section,
.elements-section,
.reading-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 사주 차트 구역 */
.saju-chart-section h2 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

/* 사주차트 내부 */
.saju-chart {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

/* 각각의 기둥 */
.chart-pillar {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    max-width: 150px;
    min-width: 100px;
}
.chart-pillar:hover {
    transform: translateY(-5px);
}
.pillar-name {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}
.pillar-content {
    display: grid;
    gap: 8px;
}
.stem, .branch, .element {
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    font-weight: 500;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .saju-chart {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .chart-pillar {
        max-width: 100%;
    }
}

/* 오행 분석 섹션 */
.elements-section h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}
#elementsAnalysis {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.element-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* 오행 아이콘 스타일 */
.element-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.element-icon.목 { background: #a8e6cf; color: #2d6a4f; }
.element-icon.화 { background: #ffd3b6; color: #cc4e00; }
.element-icon.토 { background: #ffaaa5; color: #8b0000; }
.element-icon.금 { background: #dcedc1; color: #4d5d1f; }
.element-icon.수 { background: #b6e3ff; color: #004b8d; }

/* 오행 분석 새로운 스타일 */
.elements-distribution {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.element-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.element-item:hover {
    transform: translateY(-2px);
}

.element-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
}

.element-info {
    flex: 1;
}

.element-name {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.element-strength {
    display: block;
    font-size: 14px;
    letter-spacing: 2px;
}

/* 오행별 색상 */
.element-item.목 .element-icon { background: #e8f5e9; color: #2e7d32; }
.element-item.화 .element-icon { background: #fbe9e7; color: #d84315; }
.element-item.토 .element-icon { background: #fff3e0; color: #ef6c00; }
.element-item.금 .element-icon { background: #fafafa; color: #616161; }
.element-item.수 .element-icon { background: #e3f2fd; color: #1565c0; }

.elements-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.element-result {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.element-result h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.dominant-element,
.lacking-element {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
}

/* 기존의 elements-bar-chart 관련 스타일 제거 */
.elements-bar-chart,
.element-bar,
.element-bar-fill {
    display: none;
}

/* 오행 분석 그래프 스타일 */
.elements-analysis {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
}

.elements-chart {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 개선된 오행 분포도 스타일 */
.elements-chart {
    padding: 40px 20px;
}

.elements-bar-chart {
    height: 300px;
    padding: 20px 40px;
    position: relative;
    margin-top: 40px;
}

.element-bar {
    position: relative;
    transition: all 0.3s ease;
}

.element-bar-fill {
    min-height: 40px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.element-bar-fill.목 { background: linear-gradient(to top, #a8e6cf, #7dd3ae); }
.element-bar-fill.화 { background: linear-gradient(to top, #ffd3b6, #ffb88c); }
.element-bar-fill.토 { background: linear-gradient(to top, #ffaaa5, #ff8b8b); }
.element-bar-fill.금 { background: linear-gradient(to top, #dcedc1, #bfd98f); }
.element-bar-fill.수 { background: linear-gradient(to top, #b6e3ff, #8ec8ff); }

.element-count {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.9em;
    white-space: nowrap;
}

.element-analysis-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.element-detail-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
}

.element-detail-title {
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.element-detail-content {
    color: #555;
    line-height: 1.8;
    text-align: justify;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.elements-bar-chart {
    display: flex;
    height: 250px;
    align-items: flex-end;
    gap: 20px;
    margin: 30px 0;
    padding: 0 20px;
}

.element-bar {
    flex: 1;
    min-width: 40px;
    position: relative;
    transition: height 0.3s ease;
    max-width: 80px;
    transition: all 0.3s ease;
}

.element-bar-fill {
    position: relative;
    width: 100%;
    border-radius: 6px 6px 0 0;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 10px;
}

.element-bar-fill.목 { background: #a8e6cf; }
.element-bar-fill.화 { background: #ffd3b6; }
.element-bar-fill.토 { background: #ffaaa5; }
.element-bar-fill.금 { background: #dcedc1; }
.element-bar-fill.수 { background: #b6e3ff; }

.element-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.9em;
    color: #666;
}

.element-count {
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 오행 분포도 개선 */
.elements-bar-chart {
    height: 300px;
    align-items: flex-end;
    padding: 20px 40px;
    position: relative;
}

.element-bar {
    position: relative;
    min-width: 60px;
    max-width: 100px;
}

.element-bar-fill {
    position: relative;
    border-radius: 8px 8px 0 0;
    min-height: 30px;
    transition: all 0.5s ease;
}

.element-count {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
}

/* 운세 섹션 */
.reading-section {
    margin-bottom: 20px;
}

/* 섹션 헤더 */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    color: #2c3e50;
}
.section-header i {
    font-size: 20px;
    color: #6e8efb;
}
.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* 섹션 내용 */
.section-content {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
    text-align: justify;
}

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

.traits-list ul {
    padding-left: 0;
}

.traits-list li {
    margin: 12px 0;
    padding-left: 30px;
    position: relative;
}

.content-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

/* 올해 운세 */
.current-year-forecast {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* 막대 그래프(예시) */
.forecast-graph {
    display: flex;
    align-items: flex-end;
    height: 100%;
    gap: 8px;
    padding: 20px 0;
}
.forecast-bar {
    flex: 1;
    background: linear-gradient(to top, #6e8efb, #a777e3);
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}
.forecast-bar:hover {
    transform: scaleY(1.05);
}
.forecast-year {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8em;
    color: #666;
}
.forecast-info {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    opacity: 0;
    transition: opacity 0.3s;
}
.forecast-bar:hover .forecast-info {
    opacity: 1;
}

/* 오행 태그 */
.element-tag {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    margin-top: 10px;
}
.element-tag.목-element { background: #a8e6cf; }
.element-tag.화-element { background: #ffd3b6; }
.element-tag.토-element { background: #ffaaa5; }
.element-tag.금-element { background: #dcedc1; }
.element-tag.수-element { background: #b6e3ff; }

/* 액션 버튼들 */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}
.action-buttons .btn-primary,
.action-buttons .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1rem;
}
.action-buttons .btn-primary {
    background: #4a90e2;
    color: #fff;
}
.action-buttons .btn-primary:hover {
    background: #357abd;
}
.action-buttons .btn-secondary {
    background: #ddd;
    color: #333;
}
.action-buttons .btn-secondary:hover {
    background: #bbb;
}

/* 인쇄 시 액션버튼 숨김 */
@media print {
    .action-buttons {
        display: none;
    }
}

/* 헤더 영역 */
.result-page {
    background: #f5f5f5;
}
.header.minimal {
    padding: 40px 20px;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    text-align: center;
    color: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* User Info Section Enhancement */
.user-info-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.user-info {
    text-align: center;
}

#userName {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 15px;
}

#birthInfo {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
}

/* 유저 정보 부분 */
.user-info-wrapper {
    margin-top: 20px;
}
.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
#userName {
    font-size: 1.3em;
    font-weight: 700;
    color: #ffd700;
    margin: 0;
}
#birthInfo {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* 성격 특성 섹션 스타일 */
.trait-section {
    margin-bottom: 20px;
}

.trait-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trait-toggle:hover {
    background: #e9ecef;
}

.trait-toggle i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.trait-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(110, 142, 251, 0.3);
}

.trait-content {
    display: none;
    padding: 15px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-top: 10px;
}

.trait-content.show {
    display: block;
}

/* 네비게이션 버튼 */
.nav-buttons {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.nav-btn i {
    color: #2c3e50;
    font-size: 18px;
}

/* 운세 예측 정확도 정보 */
.forecast-accuracy-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accuracy-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
}

.accuracy-badge i {
    color: #4CAF50;
    font-size: 24px;
}

.accuracy-badge strong {
    font-size: 1.2em;
    color: #4CAF50;
}

.accuracy-note {
    font-size: 0.9em;
    color: #666;
}

.forecast-confidence {
    background: #f0f7ff;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    color: #3498db;
}

.confidence-level {
    display: flex;
    align-items: center;
    gap: 5px;
}

.confidence-level::before {
    content: "•";
    color: #3498db;
}

/* 직업 정보 섹션 */
.career-section {
    margin-top: 30px;
}

.career-toggle {
    width: 100%;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
}

.career-content {
    display: none;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.career-content.show {
    display: block;
}

.job-category {
    margin-bottom: 20px;
}

.job-category h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.job-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.job-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.95em;
    color: #555;
}

/* 반응형 */
@media (max-width: 1024px) {
    .result-container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        margin-bottom: 20px;
    }
    .reading-sections {
        flex-direction: column;
    }
    .reading-section {
        flex: 1 1 100%;
    }
    .content-grid {
        grid-template-columns: 1fr;
    }

    .analysis-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header.minimal {
        padding: 30px 20px;
    }
    .user-info #userName {
        font-size: 1.1em;
    }
    .user-info #birthInfo {
        font-size: 1em;
    }
    .analysis-sections {
        grid-template-columns: 1fr;
    }
    
    .chart-pillar {
        min-width: 80px;
    }
}

/* 모바일 최적화 추가 */
@media screen and (max-width: 768px) {
    /* 결과 컨테이너 */
    .result-container {
        margin: 10px;
    }

    /* 차트 최적화 */
    .elements-bar-chart {
        height: 200px;
        padding: 10px;
        gap: 10px;
    }

    .element-bar {
        min-width: 30px;
    }

    /* 분석 내용 레이아웃 */
    .elements-analysis {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .element-detail-section {
        padding: 15px;
    }

    /* 버튼 최적화 */
    .trait-toggle,
    .career-toggle {
        padding: 12px;
        font-size: 14px;
    }

    /* 직업 카테고리 */
    .job-list {
        grid-template-columns: 1fr;
    }

    /* 예측 섹션 */
    .forecast-accuracy-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .user-info-section {
        padding: 20px;
    }

    #userName {
        font-size: 1.6em;
    }

    #birthInfo {
        font-size: 1.1em;
    }
}

/* 운세 분석 섹션 개선 */
.analysis-content {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.analysis-title {
    font-size: 1.2em;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.analysis-detail {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.lucky-period {
    color: #e74c3c;
    font-weight: 600;
}

.advice-box {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

/* 오류 메시지 스타일 */
.error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: center;
    width: 90%;
    max-width: 400px;
    z-index: 1000;
}

.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.error-content i {
    font-size: 48px;
    color: #e74c3c;
}

.error-content h3 {
    color: #2c3e50;
    font-size: 1.2em;
    margin: 0;
}

.error-content p {
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.error-content button {
    margin-top: 20px;
    padding: 12px 24px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    transition: background 0.3s ease;
}

.error-content button:hover {
    background: #2980b9;
}

/* 오행 분석 개선된 스타일 */
.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.element-item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.element-item:hover {
    transform: translateY(-2px);
}

.element-info {
    flex: 1;
}

.element-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.element-count {
    font-size: 0.9em;
    color: #666;
}

.element-description {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 10px;
}

.element-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.element-trait {
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    color: #666;
}

/* 모바일 최적화 추가 */
@media screen and (max-width: 480px) {
    .elements-grid {
        grid-template-columns: 1fr;
    }

    .element-item {
        padding: 15px;
    }

    .element-traits {
        gap: 5px;
    }

    .element-trait {
        padding: 3px 8px;
        font-size: 0.8em;
    }
}

/* 성능 최적화를 위한 스타일 */
.elements-analysis {
    will-change: transform;
    transform: translateZ(0);
}

.element-item {
    backface-visibility: hidden;
}

/* 애니메이션 최적화 */
@media (prefers-reduced-motion: reduce) {
    .element-item {
        transition: none;
    }
}

/* Time Popup Styles */
.time-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.time-popup-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 400px;
    width: 90%;
}

.time-popup h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.time-popup .close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #666;
}

.timezone-info {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

.timezone-info .time-link {
    color: #6e8efb;
    text-decoration: underline;
    cursor: pointer;
}

/* 시간대 변환 정보 스타일 */
.timezone-conversion-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
}

.time-comparison {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin: 15px 0;
}

.local-time, .korean-time {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.local-time h4, .korean-time h4 {
    color: #2c3e50;
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: 600;
}

.local-time p, .korean-time p {
    color: #333;
    font-size: 1.2em;
    margin: 10px 0;
    font-weight: 500;
}

.time-comparison small {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}

.conversion-arrow {
    display: flex;
    align-items: center;
    color: #6e8efb;
    font-size: 1.5em;
}

@media (max-width: 768px) {
    .time-comparison {
        flex-direction: column;
    }
    
    .conversion-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

/* Highlighted KST Time Section */
.highlighted-kst-time {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.highlighted-kst-time h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.highlighted-kst-time .kst-time {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.highlighted-kst-time .kst-note {
    font-size: 1rem;
    color: #f0f0f0;
    margin-top: 10px;
    line-height: 1.6;
}

/* 운명의 나침반 섹션 */
.destiny-compass-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.destiny-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.destiny-item:hover {
    transform: translateY(-5px);
}

/* 강화된 오행 분석 섹션 */
.enhanced-elements-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.elements-power-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

/* 인연과 궁합 섹션 */
.compatibility-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 운명의 시기 섹션 */
.timeline-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.timeline-waves {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.fortune-wave {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

/* 직업 운세 섹션 */
.career-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

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

/* 공통 박스 스타일 */
.box-item, .element-box, .relationship-box, .wave-box, .career-box {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.box-item:hover, .element-box:hover, .relationship-box:hover, 
.wave-box:hover, .career-box:hover {
    transform: translateY(-5px);
}

/* 섹션 헤더 스타일 */
section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

section h2 i {
    color: #6e8efb;
}

/* 박스 내부 아이콘 스타일 */
.box-item i, .element-box i, .relationship-box i, 
.wave-box i, .career-box i {
    font-size: 2.5rem;
    color: #6e8efb;
    margin-bottom: 15px;
}

/* 박스 제목 스타일 */
.box-item h3, .element-box h3, .relationship-box h3, 
.wave-box h3, .career-box h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* 박스 내용 스타일 */
.box-item p, .element-box p, .relationship-box p, 
.wave-box p, .career-box p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

/* 그리드 레이아웃 */
.destiny-grid, .elements-grid, .relationship-grid, 
.waves-grid, .career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

/* 섹션별 특별 스타일 */
.destiny-compass-section { background: linear-gradient(135deg, #f6f8fd, #f0f7ff); }
.elements-power-section { background: linear-gradient(135deg, #fff6f6, #fff0f7); }
.relationship-map-section { background: linear-gradient(135deg, #f6fdfa, #f0fff7); }
.destiny-waves-section { background: linear-gradient(135deg, #fdf6f6, #fff0f0); }
.career-compass-section { background: linear-gradient(135deg, #f6fafd, #f0f7ff); }

/* 반응형 디자인 */
@media (max-width: 768px) {
    section h2 {
        font-size: 1.5rem;
    }

    .box-item h3, .element-box h3, .relationship-box h3, 
    .wave-box h3, .career-box h3 {
        font-size: 1.1rem;
    }

    .box-item p, .element-box p, .relationship-box p, 
    .wave-box p, .career-box p {
        font-size: 1rem;
    }

    .box-item i, .element-box i, .relationship-box i, 
    .wave-box i, .career-box i {
        font-size: 2rem;
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .elements-power-grid {
        grid-template-columns: 1fr;
    }
}

/* Highlight Box Styles */
.highlight-box {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.highlight-box:hover {
    transform: translateY(-5px);
}

.highlight-box h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.highlight-box p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Elements Grid */
.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.element-box {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.element-box:hover {
    transform: translateY(-5px);
}

.element-box h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.element-box p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .highlight-box h3 {
        font-size: 1rem;
    }

    .highlight-box p {
        font-size: 0.9rem;
    }

    .element-box h3 {
        font-size: 1rem;
    }

    .element-box p {
        font-size: 0.9rem;
    }
}

/* 오행 분포 섹션 */
.elements-distribution-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.elements-bar-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 200px;
    margin-top: 20px;
    padding: 0 20px;
}

.element-bar {
    flex: 1;
    margin: 0 10px;
    position: relative;
    text-align: center;
}

.element-bar-fill {
    width: 100%;
    height: 0;
    background: linear-gradient(to top, #a8e6cf, #7dd3ae);
    border-radius: 8px 8px 0 0;
    transition: height 0.3s ease;
}

.element-bar-fill.목 { background: linear-gradient(to top, #a8e6cf, #7dd3ae); }
.element-bar-fill.화 { background: linear-gradient(to top, #ffd3b6, #ffb88c); }
.element-bar-fill.토 { background: linear-gradient(to top, #ffaaa5, #ff8b8b); }
.element-bar-fill.금 { background: linear-gradient(to top, #dcedc1, #bfd98f); }
.element-bar-fill.수 { background: linear-gradient(to top, #b6e3ff, #8ec8ff); }

.element-label {
    margin-top: 10px;
    font-size: 1rem;
    color: #555;
}

.element-count {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: #333;
    font-weight: bold;
}

.element-summary {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #333;
}