/**
 * 🍎 프리미엄 사주 분석 - 애플 스타일 디자인 v4.0
 * 미래지향적이고 깔끔한 디자인
 */

/* ═══════════════════════════════════════════════════════════════ */
/* 변수 정의 */
/* ═══════════════════════════════════════════════════════════════ */
:root {
    --apple-bg: #f5f5f7;
    --apple-white: #ffffff;
    --apple-black: #1d1d1f;
    --apple-gray: #86868b;
    --apple-blue: #0071e3;
    --apple-hover: #0077ed;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    
    /* 오행 컬러 */
    --wood: #22c55e;
    --fire: #ef4444;
    --earth: #eab308;
    --metal: #f5f5f5;
    --water: #3b82f6;
}

/* ═══════════════════════════════════════════════════════════════ */
/* 분석 페이지 전체 레이아웃 */
/* ═══════════════════════════════════════════════════════════════ */
#premium-analysis-screen {
    background: var(--apple-bg);
    min-height: 100vh;
    padding-bottom: 100px;
}

/* 헤더 - 애플 스타일 네비게이션 */
.premium-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 0;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.header-back {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--apple-blue);
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
}

.header-back:hover {
    background: rgba(0, 113, 227, 0.1);
}

.header-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--apple-black);
    letter-spacing: -0.3px;
}

.header-action {
    width: 40px;
}

/* ═══════════════════════════════════════════════════════════════ */
/* 네비게이션 탭 - 애플 스타일 */
/* ═══════════════════════════════════════════════════════════════ */
.nav-tabs {
    display: flex;
    gap: 0;
    padding: 0 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    flex-shrink: 0;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--apple-gray);
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--apple-blue);
    transition: width 0.3s;
}

.nav-tab.active {
    color: var(--apple-blue);
    font-weight: 600;
}

.nav-tab.active::after {
    width: calc(100% - 24px);
}

/* ═══════════════════════════════════════════════════════════════ */
/* 탭 콘텐츠 영역 */
/* ═══════════════════════════════════════════════════════════════ */
.tab-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* ═══════════════════════════════════════════════════════════════ */
/* 히어로 섹션 - 사용자 요약 */
/* ═══════════════════════════════════════════════════════════════ */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    margin-bottom: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.hero-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.hero-pillar {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    padding: 14px 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-pillar-label {
    font-size: 10px;
    opacity: 0.8;
    margin-bottom: 6px;
}

.hero-pillar-hanja {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.hero-pillar-hangul {
    font-size: 12px;
    opacity: 0.9;
}

.hero-pillar.day-pillar {
    background: rgba(255,255,255,0.25);
    border: 2px solid rgba(255,255,255,0.5);
}

/* ═══════════════════════════════════════════════════════════════ */
/* 애플 스타일 카드 */
/* ═══════════════════════════════════════════════════════════════ */
.apple-card {
    background: var(--apple-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.apple-card:hover {
    box-shadow: var(--shadow-md);
}

.card-title-section {
    padding: 20px 20px 0;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--apple-black);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 14px;
    color: var(--apple-gray);
}

.card-content {
    padding: 16px 20px 20px;
}

/* ═══════════════════════════════════════════════════════════════ */
/* 줄글 풀이 섹션 */
/* ═══════════════════════════════════════════════════════════════ */
.reading-section {
    background: var(--apple-white);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}

.reading-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reading-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reading-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.reading-title h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--apple-black);
}

.reading-title span {
    font-size: 13px;
    color: var(--apple-gray);
}

.reading-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f0f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--apple-gray);
    font-size: 12px;
    transition: transform 0.3s;
}

.reading-section.expanded .reading-toggle {
    transform: rotate(180deg);
}

.reading-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.reading-section.expanded .reading-body {
    max-height: 2000px;
}

.reading-content {
    padding: 20px;
    font-size: 15px;
    line-height: 1.75;
    color: #333;
}

.reading-content p.reading-paragraph {
    margin: 0 0 12px 0;
}

.reading-content p.reading-bullet {
    margin: 4px 0 4px 8px;
}

.reading-content h4.reading-section-title {
    margin: 18px 0 8px 0;
    color: #1d1d1f;
    font-size: 15px;
    font-weight: 600;
}

.reading-content em {
    color: var(--apple-blue);
    font-style: normal;
    font-weight: 600;
}

.reading-content strong {
    color: var(--apple-black);
}

.reading-highlight {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
    border-left: 4px solid var(--apple-blue);
    padding: 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 16px;
    font-size: 14px;
    color: #1a365d;
}

/* ═══════════════════════════════════════════════════════════════ */
/* 지표 그리드 */
/* ═══════════════════════════════════════════════════════════════ */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.metric-card {
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.metric-label {
    font-size: 11px;
    color: var(--apple-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--apple-black);
}

.metric-sub {
    font-size: 11px;
    color: var(--apple-gray);
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════ */
/* 오행 밸런스 차트 */
/* ═══════════════════════════════════════════════════════════════ */
.ohaeng-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.ohaeng-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ohaeng-label {
    width: 60px;
    font-size: 14px;
    font-weight: 600;
}

.ohaeng-bar-container {
    flex: 1;
    height: 28px;
    background: #f0f0f2;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.ohaeng-bar {
    height: 100%;
    border-radius: 14px;
    transition: width 0.8s ease;
    display: flex;
    align-items: center;
    padding-left: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.ohaeng-bar.wood { background: linear-gradient(90deg, #22c55e, #16a34a); }
.ohaeng-bar.fire { background: linear-gradient(90deg, #ef4444, #dc2626); }
.ohaeng-bar.earth { background: linear-gradient(90deg, #eab308, #ca8a04); }
.ohaeng-bar.metal { background: linear-gradient(90deg, #9ca3af, #6b7280); color: #333; }
.ohaeng-bar.water { background: linear-gradient(90deg, #3b82f6, #2563eb); }

.ohaeng-none {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.ohaeng-score {
    width: 50px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: var(--apple-gray);
}

/* ═══════════════════════════════════════════════════════════════ */
/* 대운/세운/월운/일운 타임라인 */
/* ═══════════════════════════════════════════════════════════════ */
.timeline-scroll {
    overflow-x: auto;
    padding: 16px 0;
    scrollbar-width: none;
}

.timeline-scroll::-webkit-scrollbar {
    display: none;
}

.timeline-row {
    display: flex;
    gap: 12px;
    padding: 0 20px;
}

.timeline-item {
    flex-shrink: 0;
    width: 100px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.timeline-item:hover {
    background: #f0f0f2;
}

.timeline-item.current {
    background: linear-gradient(135deg, #e8f4ff 0%, #dbeafe 100%);
    border-color: var(--apple-blue);
}

.timeline-item.selected {
    background: var(--apple-blue);
    color: white;
}

.timeline-item .age {
    font-size: 11px;
    color: var(--apple-gray);
    margin-bottom: 8px;
}

.timeline-item.selected .age {
    color: rgba(255,255,255,0.8);
}

.timeline-item .hanja {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-item .hangul {
    font-size: 12px;
    color: var(--apple-gray);
}

.timeline-item.selected .hangul {
    color: rgba(255,255,255,0.9);
}

/* ═══════════════════════════════════════════════════════════════ */
/* 선택된 운세 상세 분석 패널 */
/* ═══════════════════════════════════════════════════════════════ */
.fortune-detail-panel {
    background: var(--apple-white);
    border-radius: var(--radius-md);
    margin-top: 16px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

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

.panel-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 20px;
}

.panel-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.panel-subtitle {
    font-size: 13px;
    opacity: 0.8;
}

.panel-body {
    padding: 20px;
}

.panel-reading {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.panel-reading p.reading-paragraph {
    margin: 0 0 12px 0;
}

.panel-reading p.reading-bullet {
    margin: 4px 0 4px 8px;
    padding-left: 0;
}

.panel-reading h4.reading-section-title {
    margin: 20px 0 10px 0;
    color: #1d1d1f;
    font-size: 16px;
    font-weight: 600;
}

.panel-reading strong {
    color: #1d1d1f;
}

.panel-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.keyword-chip {
    background: #f0f0f2;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--apple-black);
}

.panel-advice {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.panel-advice-icon {
    font-size: 24px;
}

.panel-advice-text {
    font-size: 14px;
    line-height: 1.7;
    color: #92400e;
}

/* ═══════════════════════════════════════════════════════════════ */
/* 일운 달력 그리드 */
/* ═══════════════════════════════════════════════════════════════ */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.calendar-title {
    font-size: 18px;
    font-weight: 700;
}

.calendar-nav-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f2;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: var(--apple-gray);
    transition: all 0.2s;
}

.calendar-nav-btn:hover {
    background: #e5e5ea;
    color: var(--apple-black);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 8px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--apple-gray);
}

.weekday:first-child { color: #ef4444; }
.weekday:last-child { color: var(--apple-blue); }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 12px 16px 20px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 4px;
}

.calendar-day:hover {
    background: #f0f0f2;
}

.calendar-day.today {
    background: #e8f4fd;
    color: var(--apple-blue);
    font-weight: 600;
}

.calendar-day.selected {
    background: var(--apple-blue);
    color: white;
}

.calendar-day .day-num {
    font-size: 14px;
    font-weight: 600;
}

.calendar-day .day-gan {
    font-size: 10px;
    color: var(--apple-gray);
    margin-top: 2px;
}

.calendar-day.today .day-gan {
    color: var(--apple-blue);
}

.calendar-day.selected .day-gan {
    color: rgba(255,255,255,0.8);
}

.calendar-day.sunday .day-num { color: #ef4444; }
.calendar-day.saturday .day-num { color: var(--apple-blue); }

/* ═══════════════════════════════════════════════════════════════ */
/* 합충형파해 관계 시각화 */
/* ═══════════════════════════════════════════════════════════════ */
.relation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px;
}

.relation-item {
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.relation-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.relation-badge.hap { background: linear-gradient(135deg, #22c55e, #16a34a); }
.relation-badge.chung { background: linear-gradient(135deg, #ef4444, #dc2626); }
.relation-badge.hyung { background: linear-gradient(135deg, #f97316, #ea580c); }
.relation-badge.pa { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.relation-badge.hae { background: linear-gradient(135deg, #64748b, #475569); }

.relation-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--apple-black);
}

.relation-info span {
    font-size: 12px;
    color: var(--apple-gray);
}

/* ═══════════════════════════════════════════════════════════════ */
/* 신살 표시 */
/* ═══════════════════════════════════════════════════════════════ */
.sinsal-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
}

.sinsal-chip {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.sinsal-chip.good {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
}

.sinsal-chip.neutral {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.sinsal-chip.bad {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

.sinsal-icon {
    font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════════ */
/* 종합 조언 섹션 */
/* ═══════════════════════════════════════════════════════════════ */
.advice-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    color: white;
    margin-top: 20px;
}

.advice-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.advice-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.advice-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.1);
}

.advice-number {
    width: 28px;
    height: 28px;
    background: var(--apple-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.advice-text {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
}

/* ═══════════════════════════════════════════════════════════════ */
/* 하단 고정 버튼 */
/* ═══════════════════════════════════════════════════════════════ */
.bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 12px 20px;
    display: flex;
    gap: 12px;
}

.action-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn.primary {
    background: var(--apple-blue);
    color: white;
}

.action-btn.primary:hover {
    background: var(--apple-hover);
}

.action-btn.secondary {
    background: #f0f0f2;
    color: var(--apple-black);
}

/* ═══════════════════════════════════════════════════════════════ */
/* 반응형 */
/* ═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .hero-name {
        font-size: 24px;
    }
    
    .hero-pillar-hanja {
        font-size: 18px;
    }
    
    .metrics-grid {
        gap: 8px;
    }
    
    .timeline-item {
        width: 85px;
        padding: 12px 8px;
    }
    
    .timeline-item .hanja {
        font-size: 18px;
    }
    
    .reading-content {
        font-size: 14px;
    }
    
    .relation-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/* 유틸리티 */
/* ═══════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 12px; }
.text-gray { color: var(--apple-gray); }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none; }

/* ═══════════════════════════════════════════════════════════════ */
/* 프리미엄 분석 카드 스타일 */
/* ═══════════════════════════════════════════════════════════════ */
.analysis-card-premium {
    background: var(--apple-white);
    border-radius: var(--radius-md);
    margin: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.card-header-premium {
    padding: 16px 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header-premium i {
    font-size: 18px;
}

.card-header-premium h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.card-body-premium {
    padding: 20px;
}

.summary-box-premium {
    padding: 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
}

.summary-box-premium p {
    margin: 0;
}

/* 오행 차트 프리미엄 */
.ohaeng-chart-premium {
    margin-top: 16px;
}

.ohaeng-row-premium {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ohaeng-row-premium.strongest {
    background: #fffbeb;
    margin: 0 -20px;
    padding: 10px 20px;
    border-radius: 8px;
}

.ohaeng-label-premium {
    width: 50px;
    font-size: 13px;
    font-weight: 600;
}

.ohaeng-bar-container-premium {
    flex: 1;
    height: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
}

.ohaeng-bar-premium {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.ohaeng-bar-premium.wood { background: linear-gradient(90deg, #66bb6a, #43a047); }
.ohaeng-bar-premium.fire { background: linear-gradient(90deg, #ef5350, #e53935); }
.ohaeng-bar-premium.earth { background: linear-gradient(90deg, #ffca28, #ffc107); }
.ohaeng-bar-premium.metal { background: linear-gradient(90deg, #bdbdbd, #9e9e9e); }
.ohaeng-bar-premium.water { background: linear-gradient(90deg, #42a5f5, #2196f3); }

.ohaeng-none-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #bbb;
    font-size: 11px;
}

.ohaeng-info-premium {
    width: 70px;
    text-align: right;
}

.ohaeng-info-premium .score {
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.ohaeng-info-premium .strength {
    font-size: 10px;
    color: #888;
    margin-left: 4px;
}

/* 격국 박스 */
.gyeokguk-box {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    border-radius: 16px;
    margin-bottom: 16px;
}

.gyeokguk-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.gyeokguk-name {
    font-size: 20px;
    font-weight: 700;
    color: #6a1b9a;
}

.gyeokguk-hanja {
    font-size: 12px;
    color: #9c27b0;
    margin-top: 4px;
}

.gyeokguk-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 16px;
}

.gyeokguk-features {
    margin-top: 16px;
}

.features-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-tag {
    padding: 6px 12px;
    background: #f3e5f5;
    color: #7b1fa2;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
}

/* 신살 표 프리미엄 */
.sinsal-table-premium {
    margin-top: 16px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.sinsal-table-premium table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.sinsal-table-premium th {
    padding: 10px 6px;
    background: #f5f5f5;
    color: #666;
    font-weight: 600;
    border: 1px solid #e0e0e0;
}

.sinsal-table-premium td {
    padding: 10px 6px;
    text-align: center;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
}

.sinsal-table-premium td.label-cell {
    background: #fafafa;
    font-weight: 600;
    color: #795548;
    width: 50px;
}

.sinsal-table-premium td.sinsal-cell {
    font-size: 10px;
    color: #666;
}

.sinsal-table-premium td.sinsal-cell.gil {
    color: #2e7d32;
    background: #e8f5e9;
}

.sinsal-table-premium td.sinsal-cell.hyung {
    color: #c62828;
    background: #ffebee;
}

.sinsal-table-premium small {
    color: #888;
    font-size: 10px;
}

/* 신살 강약 */
.sinsal-strength {
    margin-top: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.strength-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.strength-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.strength-item {
    text-align: center;
    padding: 12px;
    border-radius: 10px;
}

.strength-item.gil { background: #e8f5e9; }
.strength-item.jung { background: #fff3e0; }
.strength-item.hyung { background: #ffebee; }

.strength-count {
    font-size: 24px;
    font-weight: 700;
}

.strength-item.gil .strength-count { color: #2e7d32; }
.strength-item.jung .strength-count { color: #ff9800; }
.strength-item.hyung .strength-count { color: #d32f2f; }

.strength-label {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.strength-summary {
    text-align: center;
    font-size: 12px;
    color: #555;
    margin-top: 12px;
}

/* 신살 상세 */
.sinsal-detail {
    margin-top: 16px;
    padding: 14px;
    border-radius: 10px;
}

.sinsal-detail.gil { background: #e8f5e9; border-left: 4px solid #4caf50; }
.sinsal-detail.jung { background: #fff3e0; border-left: 4px solid #ff9800; }
.sinsal-detail.hyung { background: #ffebee; border-left: 4px solid #f44336; }

.detail-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.sinsal-detail.gil .detail-title { color: #2e7d32; }
.sinsal-detail.jung .detail-title { color: #e65100; }
.sinsal-detail.hyung .detail-title { color: #c62828; }

.detail-item {
    padding: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
    margin-bottom: 8px;
}

.detail-item:last-child { margin-bottom: 0; }

.item-name {
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.item-desc {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.item-pos {
    font-size: 10px;
    color: #888;
    margin-top: 4px;
}

/* 신강신약 박스 */
.singang-box {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 16px;
    margin-bottom: 16px;
}

.singang-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.singang-result {
    font-size: 22px;
    font-weight: 700;
    color: #2e7d32;
}

.singang-sub {
    font-size: 12px;
    color: #4caf50;
    margin-top: 4px;
}

.singang-factors {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.factor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fafafa;
    border-radius: 10px;
    border-left: 4px solid #e0e0e0;
}

.factor-item.pass { border-left-color: #4caf50; background: #f1f8e9; }
.factor-item.fail { border-left-color: #ef5350; background: #fff8f8; }

.factor-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    min-width: 60px;
}

.factor-status {
    font-size: 16px;
    font-weight: 700;
}

.factor-item.pass .factor-status { color: #4caf50; }
.factor-item.fail .factor-status { color: #ef5350; }

.factor-desc {
    flex: 1;
    font-size: 11px;
    color: #666;
}

/* 용신 박스 프리미엄 */
.yongsin-box-premium {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
    border-radius: 16px;
    margin-bottom: 16px;
}

.yongsin-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.yongsin-name {
    font-size: 20px;
    font-weight: 700;
    color: #00695c;
}

.yongsin-desc {
    font-size: 12px;
    color: #00897b;
    margin-top: 4px;
}

.yongsin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.yongsin-item {
    text-align: center;
    padding: 14px;
    background: #fafafa;
    border-radius: 10px;
}

.item-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
}

.item-value {
    font-size: 18px;
    font-weight: 700;
}

.item-value.use { color: #00695c; }
.item-value.hee { color: #1565c0; }
.item-value.gi { color: #c62828; }

.yongsin-tips {
    margin-top: 16px;
    padding: 16px;
    background: #f0f4f8;
    border-radius: 12px;
}

.tips-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tip-item {
    font-size: 12px;
    color: #555;
}

/* ═══════════════════════════════════════════════════════════════ */
/* 원국 9가지 체계적 해석 스타일 */
/* 레퍼런스: 1995/12/13 13:13 여성 사주 */
/* ═══════════════════════════════════════════════════════════════ */

/* 섹션 구분선 */
.section-divider {
    text-align: center;
    padding: 32px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin: 24px 0;
}

.divider-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.divider-text {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}

.divider-sub {
    font-size: 13px;
    color: #64748b;
}

/* 읽기 콘텐츠 박스 */
.reading-content-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 16px 0;
}

.reading-section {
    padding: 14px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 3px solid #3b82f6;
}

.reading-label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reading-text {
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
}

/* 키워드 칩 */
.keyword-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.chip {
    padding: 6px 14px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 12px;
    color: #475569;
    font-weight: 500;
}

.chip.highlight {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

/* 요약 결론 박스 - 아코디언 스타일 */
.summary-accordion {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.summary-accordion-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-left: 4px solid #22c55e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.summary-accordion-header:hover {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.summary-accordion-header .header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #166534;
}

.summary-accordion-header .toggle-icon {
    font-size: 12px;
    color: #166534;
    transition: transform 0.3s ease;
}

.summary-accordion.open .toggle-icon {
    transform: rotate(180deg);
}

.summary-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #f9fafb;
}

.summary-accordion.open .summary-accordion-content {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

.summary-accordion-body {
    padding: 16px;
    font-size: 14px;
    line-height: 2;
    color: #374151;
    white-space: pre-line;
}

.summary-accordion-body .section-title {
    display: block;
    font-weight: 700;
    color: #1f2937;
    margin-top: 16px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e5e7eb;
}

.summary-accordion-body .section-title:first-child {
    margin-top: 0;
}

/* 하이라이트 버전 (인생테마용) */
.summary-accordion.highlight .summary-accordion-header {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left-color: #f59e0b;
}

.summary-accordion.highlight .summary-accordion-header .header-left,
.summary-accordion.highlight .summary-accordion-header .toggle-icon {
    color: #92400e;
}

.summary-accordion.highlight .summary-accordion-header:hover {
    background: linear-gradient(135deg, #fde68a, #fcd34d);
}

/* 기존 summary-conclusion 유지 (하위 호환) */
.summary-conclusion {
    padding: 16px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 12px;
    border-left: 4px solid #22c55e;
    margin-top: 16px;
}

.summary-conclusion p {
    font-size: 14px;
    line-height: 1.7;
    color: #166534;
    margin: 0;
}

.summary-conclusion.highlight {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left-color: #f59e0b;
}

.summary-conclusion.highlight p {
    color: #92400e;
}

/* 직업 유형 박스 */
.job-type-box {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
    border-radius: 16px;
    margin-bottom: 16px;
}

.job-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.job-type {
    font-size: 20px;
    font-weight: 700;
    color: #00695c;
}

/* 인생 테마 박스 */
.life-theme-box {
    text-align: center;
    padding: 28px;
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
    border-radius: 16px;
    margin-bottom: 16px;
}

.theme-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.theme-title {
    font-size: 24px;
    font-weight: 800;
    color: #c2410c;
    margin-bottom: 8px;
}

.theme-meaning {
    font-size: 14px;
    color: #9a3412;
    line-height: 1.6;
}

/* 인생 요약 박스 */
.life-summary-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 16px;
    margin-top: 16px;
}

.summary-icon {
    font-size: 28px;
}

.summary-text {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* 반응형 조정 */
@media (max-width: 480px) {
    .section-divider {
        padding: 24px 12px;
    }
    
    .divider-text {
        font-size: 18px;
    }
    
    .reading-section {
        padding: 12px;
    }
    
    .reading-text {
        font-size: 13px;
    }
    
    .life-theme-box {
        padding: 20px;
    }
    
    .theme-title {
        font-size: 20px;
    }
    
    .life-summary-box {
        flex-direction: column;
        text-align: center;
    }
}
