/* 無盡藏 사주팔자 고급 분석 시스템 CSS */

:root {
    --primary: #2d8659;
    --gold: #FFD700;
    --accent: #dc143c;
    --text: #2c3e50;
    --light: #faf9f7;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 주의사항 배너 */
.notice-banner {
    background: linear-gradient(135deg, #4a90e2, #7c4dff);
    color: white;
    padding: 12px 0;
    text-align: center;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 999;
}

.notice-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* 헤더 */
.header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 51px;
    z-index: 998;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

/* 로고 - 좌우 균형 */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.dharma-wheel {
    flex-shrink: 0;
}

.logo-text-balanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    text-align: center;
}

.logo-main {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 0.1em;
}

.logo-sub {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text);
    margin-top: 2px;
}

.desktop-nav {
    display: flex;
    gap: 25px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.desktop-nav a:hover {
    color: var(--primary);
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* 히어로 */
.hero {
    background: linear-gradient(135deg, var(--primary), #191970);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gold);
    color: var(--text);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.4);
}

/* 입력 섹션 */
.input-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

.input-mode-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.mode-btn {
    padding: 12px 30px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 1rem;
}

.mode-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.mode-btn:hover {
    transform: translateY(-2px);
}

/* 폼 스타일 */
.saju-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--light);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: none;
}

.saju-form.active {
    display: block;
    animation: fadeIn 0.3s;
}

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

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45,134,89,0.1);
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s;
    margin-bottom: 0;
}

.radio-group label:hover {
    border-color: var(--primary);
}

.radio-group input[type="radio"] {
    width: auto;
}

.pillar-input-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.pillar-input label {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), #1e5f3e);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45,134,89,0.3);
}

/* 결과 섹션 */
.result-section {
    padding: 80px 0;
    background: var(--light);
}

.result-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text);
}

/* 사주 디스플레이 */
.saju-display {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.saju-display h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary);
}

.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.pillar {
    text-align: center;
    padding: 20px;
    background: var(--light);
    border-radius: 15px;
    transition: all 0.3s;
}

.pillar:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.pillar-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.pillar-value {
    font-family: 'Noto Serif KR', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

.pillar-value.highlight {
    color: var(--accent);
}

/* 대운표 */
.daeun-table {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.daeun-table h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary);
}

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

.daeun-item {
    padding: 20px;
    background: var(--light);
    border-radius: 15px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
}

.daeun-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.daeun-item.current {
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(45,134,89,0.2));
    border-left-color: var(--gold);
}

.daeun-age {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.daeun-pillar {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.daeun-years {
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* 세운 분석 */
.seyun-analysis {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.seyun-analysis h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary);
}

.seyun-content {
    line-height: 1.8;
}

.seyun-pillar {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 15px 0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text), #191970);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.95;
}

/* 반응형 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .pillars,
    .pillar-input-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .daeun-grid {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-main {
        font-size: 1.5rem;
    }
    
    .logo-sub {
        font-size: 0.75rem;
    }
}