/* ====================================
   타로 카드 운세 웹사이트 스타일
   반응형 디자인
==================================== */

/* 기본 리셋 및 변수 설정 */
:root {
    --primary-color: #6a4c93;
    --secondary-color: #c77dff;
    --accent-color: #e0aaff;
    --dark-bg: #1a1423;
    --light-bg: #f8f9fa;
    --text-dark: #2d1b4e;
    --text-light: #ffffff;
    --border-radius: 15px;
    --transition: all 0.3s ease;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.2);
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Malgun Gothic', sans-serif;
    background: linear-gradient(135deg, #DEB564 0%, #C9A246 50%, #B8923A 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: var(--nav-height);
}

/* ====================================
   내비게이션 메뉴 - 세련된 디자인
==================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(45, 35, 20, 0.98) 0%, rgba(60, 45, 25, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    border-bottom: 1px solid rgba(222, 181, 100, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700 0%, #DEB564 50%, #C9A246 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: -0.5px;
    position: relative;
}

.nav-brand::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #DEB564, transparent);
    opacity: 0.5;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid rgba(222, 181, 100, 0.2);
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(222, 181, 100, 0.3) 0%, rgba(255, 215, 0, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 25px;
}

.nav-link:hover {
    color: #FFD700;
    transform: translateY(-1px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link span {
    position: relative;
    z-index: 1;
}

.nav-link.active {
    background: linear-gradient(135deg, #DEB564 0%, #C9A246 100%);
    color: #2D2316;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(222, 181, 100, 0.4);
}

.nav-link.active::before {
    display: none;
}

/* 햄버거 메뉴 버튼 */
.nav-toggle {
    display: none;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(222, 181, 100, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    border: 1px solid rgba(222, 181, 100, 0.3);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: linear-gradient(135deg, rgba(222, 181, 100, 0.3) 0%, rgba(255, 215, 0, 0.2) 100%);
    transform: scale(1.05);
}

.nav-toggle .hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 2px;
    background: #DEB564;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #DEB564;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle .hamburger::before {
    top: -7px;
}

.nav-toggle .hamburger::after {
    top: 7px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ====================================
   헤더 스타일
==================================== */
.header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
}

.title {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--accent-color);
    animation: fadeInUp 1s ease;
}

/* ====================================
   입력 섹션 스타일
==================================== */
.input-section {
    background: var(--light-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    animation: fadeIn 1.2s ease;
}

.input-section h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.user-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(199, 125, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.form-group textarea {
    resize: vertical;
}

/* 카드 개수 선택 버튼 */
.card-count-selector {
    margin: 30px 0;
}

.card-count-selector label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 600;
}

.card-count-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.count-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #C9A246;
    background: white;
    color: #8B6914;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.count-btn:hover {
    background: #FFF5D6;
    border-color: #DEB564;
    transform: translateY(-2px);
}

.count-btn.active {
    background: linear-gradient(135deg, #DEB564 0%, #C9A246 100%);
    color: #2D2316;
    border-color: #B8923A;
    box-shadow: 0 4px 15px rgba(222, 181, 100, 0.4);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #8B6914 0%, #6B5210 100%);
    color: #FFF5D6;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(107, 82, 16, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #9B7916 0%, #7B6212 100%);
    box-shadow: 0 6px 20px rgba(107, 82, 16, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ====================================
   카드 표시 섹션
==================================== */
.cards-section {
    background: var(--light-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    animation: fadeIn 1s ease;
}

.cards-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.8rem;
}

.reading-info {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-style: italic;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.tarot-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: cardAppear 0.6s ease backwards;
}

.tarot-card:nth-child(1) { animation-delay: 0.1s; }
.tarot-card:nth-child(2) { animation-delay: 0.3s; }
.tarot-card:nth-child(3) { animation-delay: 0.5s; }

.tarot-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-position {
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.card-image-container {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    text-align: center;
}

.card-name-en {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 10px;
    font-style: italic;
}

.card-keywords {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.keyword {
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.card-meaning {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--accent-color);
}

.meaning-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.meaning-text {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 0.95rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.meaning-text::-webkit-scrollbar {
    width: 5px;
}

.meaning-text::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 5px;
}

.meaning-text::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

.meaning-text::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ====================================
   종합 해석 섹션
==================================== */
.overall-reading {
    background: linear-gradient(135deg, rgba(106, 76, 147, 0.1), rgba(199, 125, 255, 0.1));
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px 0;
    animation: fadeIn 1s ease 0.8s backwards;
}

.overall-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 15px;
}

.overall-content {
    color: var(--text-dark);
    line-height: 2;
    font-size: 1.05rem;
}

.overall-section {
    margin-bottom: 25px;
}

.overall-section:last-child {
    margin-bottom: 0;
}

.overall-section-title {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.overall-section-title::before {
    content: '✨';
    font-size: 1.2rem;
}

.overall-section-text {
    padding-left: 30px;
    text-align: justify;
}

.reset-btn {
    display: block;
    margin: 0 auto;
    padding: 12px 40px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.reset-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ====================================
   푸터 스타일
==================================== */
.footer {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ====================================
   유틸리티 클래스
==================================== */
.hidden {
    display: none !important;
}

/* ====================================
   애니메이션
==================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: scale(0.8) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotateY(0);
    }
}

/* ====================================
   반응형 디자인 - 태블릿
==================================== */
@media (max-width: 1100px) {
    .nav-menu {
        gap: 3px;
        padding: 5px;
    }
    
    .nav-link {
        font-size: 0.82rem;
        padding: 8px 12px;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: 0;
        top: var(--nav-height);
        flex-direction: column;
        background: linear-gradient(180deg, rgba(45, 35, 20, 0.99) 0%, rgba(60, 45, 25, 0.99) 100%);
        width: 100%;
        padding: 20px 25px 30px;
        gap: 8px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        border-radius: 0 0 25px 25px;
        border: none;
        border-top: 1px solid rgba(222, 181, 100, 0.2);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-item {
        width: 100%;
        animation: slideInMenu 0.4s ease backwards;
    }
    
    .nav-menu.active .nav-item:nth-child(1) { animation-delay: 0.05s; }
    .nav-menu.active .nav-item:nth-child(2) { animation-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(3) { animation-delay: 0.15s; }
    .nav-menu.active .nav-item:nth-child(4) { animation-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(5) { animation-delay: 0.25s; }
    .nav-menu.active .nav-item:nth-child(6) { animation-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(7) { animation-delay: 0.35s; }
    .nav-menu.active .nav-item:nth-child(8) { animation-delay: 0.4s; }
    .nav-menu.active .nav-item:nth-child(9) { animation-delay: 0.45s; }

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 15px 20px;
        font-size: 1rem;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(222, 181, 100, 0.1);
    }
    
    .nav-link:hover {
        background: rgba(222, 181, 100, 0.15);
        border-color: rgba(222, 181, 100, 0.3);
        transform: scale(1.02);
    }
    
    .nav-link.active {
        background: linear-gradient(135deg, #DEB564 0%, #C9A246 100%);
        color: #2D2316;
        border-color: transparent;
    }
    
    @keyframes slideInMenu {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .title {
        font-size: 2rem;
    }

    .input-section,
    .cards-section {
        padding: 25px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-count-buttons {
        flex-direction: column;
    }

    .wish-content {
        flex-direction: column;
    }

    .bucket-list-area,
    .tarot-result-area {
        width: 100%;
    }
}

/* ====================================
   반응형 디자인 - 모바일
==================================== */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .header {
        padding: 30px 15px;
    }

    .title {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .input-section,
    .cards-section {
        padding: 20px 15px;
    }

    .input-section h2,
    .cards-section h2 {
        font-size: 1.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* iOS zoom 방지 */
    }

    .submit-btn {
        font-size: 1rem;
        padding: 12px;
    }

    .tarot-card {
        padding: 20px;
    }

    .card-name {
        font-size: 1.1rem;
    }
}

/* ====================================
   다크모드 지원 (선택사항)
==================================== */
@media (prefers-color-scheme: dark) {
    /* 다크모드 스타일은 필요시 추가 가능 */
}

/* ====================================
   신년 소원 페이지 스타일
==================================== */
.wish-section {
    background: var(--light-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    animation: fadeIn 1s ease;
}

.wish-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.bucket-list-area,
.tarot-result-area {
    flex: 1;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.section-description {
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Wish Input */
.wish-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.wish-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.wish-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(199, 125, 255, 0.1);
}

.add-wish-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #8B6914 0%, #6B5210 100%);
    color: #FFF5D6;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(107, 82, 16, 0.3);
}

.add-wish-btn:hover {
    background: linear-gradient(135deg, #9B7916 0%, #7B6212 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 82, 16, 0.4);
}

.btn-icon {
    font-size: 1.3rem;
    line-height: 1;
}

/* Wish List */
.wish-list {
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px dashed var(--accent-color);
}

.wish-list::-webkit-scrollbar {
    width: 8px;
}

.wish-list::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 5px;
}

.wish-list::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

.wish-list::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.empty-message {
    text-align: center;
    color: #999;
    padding: 60px 20px;
    line-height: 1.8;
}

.wish-item {
    background: linear-gradient(135deg, rgba(224, 170, 255, 0.1), rgba(199, 125, 255, 0.1));
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.wish-item:hover {
    background: linear-gradient(135deg, rgba(224, 170, 255, 0.2), rgba(199, 125, 255, 0.2));
    transform: translateX(5px);
}

.wish-text {
    flex: 1;
    color: var(--text-dark);
    font-size: 1rem;
    word-break: break-word;
}

.wish-number {
    background: var(--secondary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 10px;
    flex-shrink: 0;
}

.delete-wish-btn {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: var(--transition);
    flex-shrink: 0;
}

.delete-wish-btn:hover {
    color: #c0392b;
    transform: scale(1.2);
}

/* Wish Actions */
.wish-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.analyze-btn,
.clear-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-width: 150px;
}

.analyze-btn {
    background: linear-gradient(135deg, #8B6914 0%, #6B5210 100%);
    color: #FFF5D6;
    box-shadow: 0 4px 15px rgba(107, 82, 16, 0.3);
}

.analyze-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #9B7916 0%, #7B6212 100%);
    box-shadow: 0 6px 20px rgba(107, 82, 16, 0.4);
}

.analyze-btn:disabled {
    background: #B8A88A;
    cursor: not-allowed;
    opacity: 0.6;
}

.clear-btn {
    background: white;
    color: #8B6914;
    border: 2px solid #C9A246;
}

.clear-btn:hover {
    background: #FFF5D6;
    color: #6B5210;
    border-color: #8B6914;
    transform: translateY(-2px);
}

/* Tarot Card Display */
.tarot-result-area {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
}

.tarot-card-display {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.card-placeholder {
    text-align: center;
    color: #999;
}

.placeholder-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.tarot-card-result {
    width: 100%;
    max-width: 300px;
    animation: cardFlip 0.6s ease;
}

.tarot-card-result-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.card-message {
    background: linear-gradient(135deg, rgba(106, 76, 147, 0.1), rgba(199, 125, 255, 0.1));
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: 30px;
    display: none;
}

.card-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.card-result-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 15px;
}

.card-name-en {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.message-section {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.message-section.highlight-section {
    background: linear-gradient(135deg, rgba(224, 170, 255, 0.2), rgba(199, 125, 255, 0.15));
    border-left-color: var(--secondary-color);
    border-left-width: 5px;
}

.message-section-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-message-text {
    color: var(--text-dark);
    line-height: 1.9;
    margin-bottom: 15px;
    text-align: justify;
}

.card-message-text:last-child {
    margin-bottom: 0;
}

.highlight-message {
    font-size: 1.05rem;
    font-weight: 500;
    padding: 15px;
    background: linear-gradient(135deg, rgba(224, 170, 255, 0.15), rgba(199, 125, 255, 0.1));
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
}

.final-message {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    line-height: 2;
}

/* Wish Summary */
.wish-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wish-summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(224, 170, 255, 0.1);
    border-radius: 8px;
}

.wish-summary-number {
    background: var(--secondary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.wish-summary-text {
    color: var(--text-dark);
    flex: 1;
}

/* Category Badges */
.category-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.category-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.category-badge.priority-1 {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(199, 125, 255, 0.4);
}

.category-badge.priority-2 {
    background: var(--accent-color);
    color: var(--primary-color);
}

.category-badge.priority-3 {
    background: rgba(224, 170, 255, 0.5);
    color: var(--text-dark);
}

.category-badge.priority-4 {
    background: rgba(224, 170, 255, 0.3);
    color: var(--text-dark);
}

/* Advice List */
.advice-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.advice-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: rgba(224, 170, 255, 0.08);
    border-radius: 8px;
    transition: var(--transition);
}

.advice-item:hover {
    background: rgba(224, 170, 255, 0.15);
    transform: translateX(5px);
}

.advice-number {
    background: var(--secondary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.advice-content {
    flex: 1;
}

.advice-title {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

.advice-text {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 0.95rem;
}

.card-keywords {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.card-keyword-tag {
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes cardFlip {
    0% {
        opacity: 0;
        transform: rotateY(90deg) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: rotateY(0) scale(1);
    }
}

/* ====================================
   사주 팔자 페이지 스타일
==================================== */
.saju-container {
    max-width: 1000px;
}

.saju-header {
    background: linear-gradient(135deg, rgba(26, 20, 35, 0.9), rgba(106, 76, 147, 0.8));
    border-radius: var(--border-radius);
    padding: 50px 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.saju-header .title {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.saju-description {
    color: #b8b8b8;
    font-size: 0.95rem;
    margin-top: 10px;
}

/* 사주 입력 섹션 */
.saju-input-section {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.saju-input-section h2 {
    color: var(--primary-color);
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.saju-form {
    max-width: 700px;
    margin: 0 auto;
}

.saju-form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.saju-form-row:last-of-type {
    grid-template-columns: 1fr 1fr;
}

.saju-form-group {
    display: flex;
    flex-direction: column;
}

.saju-form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 1rem;
}

.saju-form-group input,
.saju-form-group select {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: #f8f9fa;
}

.saju-form-group input:focus,
.saju-form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(199, 125, 255, 0.1);
}

.saju-hour-group select {
    font-size: 0.95rem;
}

.saju-gender-group {
    justify-content: flex-end;
}

.saju-gender-options {
    display: flex;
    gap: 15px;
    height: 100%;
    align-items: flex-end;
}

.saju-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: var(--transition);
    background: #f8f9fa;
}

.saju-radio-label:hover {
    border-color: var(--secondary-color);
    background: white;
}

.saju-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.saju-radio-label input[type="radio"]:checked + .saju-radio-text {
    color: var(--primary-color);
    font-weight: 600;
}

.saju-radio-text {
    font-size: 1rem;
}

.saju-submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #8B6914 0%, #6B5210 100%);
    color: #FFF5D6;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(107, 82, 16, 0.3);
}

.saju-submit-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #9B7916 0%, #7B6212 100%);
    box-shadow: 0 10px 25px rgba(107, 82, 16, 0.4);
}

/* 사주 결과 섹션 */
.saju-result-section {
    animation: fadeIn 0.8s ease;
}

.saju-result-section h2 {
    color: white;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 네 기둥 표시 */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.pillar-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease backwards;
}

.pillar-card:nth-child(1) { animation-delay: 0.1s; }
.pillar-card:nth-child(2) { animation-delay: 0.2s; }
.pillar-card:nth-child(3) { animation-delay: 0.3s; }
.pillar-card:nth-child(4) { animation-delay: 0.4s; }

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.pillar-name {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.pillar-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.pillar-stem,
.pillar-branch {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

.element-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    color: white;
    position: absolute;
    right: -10px;
    top: -5px;
    font-weight: 500;
}

.pillar-animal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.animal-emoji {
    font-size: 2rem;
}

.animal-name {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* 오행 차트 */
.saju-elements-chart {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.8s ease 0.3s backwards;
}

.saju-elements-chart h3 {
    color: var(--primary-color);
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.elements-chart {
    max-width: 500px;
    margin: 0 auto;
}

.element-bar-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.element-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 70px;
}

.element-emoji {
    font-size: 1.2rem;
}

.element-name {
    font-weight: 600;
    color: var(--text-dark);
}

.element-bar-wrapper {
    flex: 1;
    height: 25px;
    background: #eee;
    border-radius: 12px;
    overflow: hidden;
}

.element-bar {
    height: 100%;
    border-radius: 12px;
    transition: width 1s ease;
}

.element-value {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
    color: #666;
}

.element-analysis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px dashed #eee;
}

.element-strong,
.element-weak {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
}

.element-strong {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.2));
    border: 2px solid rgba(34, 197, 94, 0.3);
}

.element-weak {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.2));
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.element-analysis h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.element-analysis p {
    font-size: 0.9rem;
    color: #666;
}

/* 해석 섹션 */
.saju-interpretation {
    animation: fadeIn 0.8s ease 0.5s backwards;
}

.interpretation-section {
    margin-bottom: 30px;
}

.interpretation-section h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.interpretation-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.interpretation-card .card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(106, 76, 147, 0.1), rgba(199, 125, 255, 0.1));
    border-bottom: 1px solid #eee;
}

.animal-large {
    font-size: 4rem;
}

.element-large {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.card-title h4 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.card-title p {
    color: #666;
    font-size: 0.95rem;
}

.card-content {
    padding: 25px;
}

.trait-group {
    margin-bottom: 20px;
}

.trait-group h5 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.trait-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trait-tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.trait-tag.positive {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.trait-tag.negative {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.trait-tag.element-trait {
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.info-label {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.info-value {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.element-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    background: #f8f9fa;
    border-radius: 10px;
}

.detail-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.detail-label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 3px;
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.career-advice {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(106, 76, 147, 0.05), rgba(199, 125, 255, 0.1));
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.career-advice h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.career-advice p {
    color: #555;
    font-size: 0.95rem;
}

/* 종합 운세 카드 */
.summary-card {
    border: 2px solid var(--secondary-color);
}

.summary-content {
    padding: 30px;
}

.summary-highlight {
    font-size: 1.2rem;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(199, 125, 255, 0.1), rgba(224, 170, 255, 0.15));
    border-radius: 12px;
    margin-bottom: 20px;
}

.gender-interpretation {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

.gender-interpretation p {
    color: #555;
    line-height: 1.7;
}

.balance-advice {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 12px;
    border: 1px dashed var(--secondary-color);
}

.balance-advice h5 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.balance-advice p {
    color: #555;
    line-height: 1.7;
}

/* 면책 조항 */
.disclaimer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.disclaimer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 5px;
}

/* 사주 푸터 */
.saju-footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.saju-footer p {
    margin-bottom: 5px;
}

/* 상세 설명 */
.detailed-description {
    padding: 20px;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9), rgba(233, 236, 239, 0.9));
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid var(--secondary-color);
}

.detailed-description p {
    color: #444;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* 상세 섹션 */
.detail-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.detail-section h5 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.detail-highlight {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.detail-text {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* 궁합 섹션 */
.compatibility-section {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 192, 203, 0.15), rgba(255, 182, 193, 0.2));
    border-radius: 12px;
}

.compatibility-section h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.compatibility-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.compat-good, .compat-bad {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.compat-good {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.compat-bad {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.compat-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.compat-animals {
    font-size: 1rem;
    color: var(--text-dark);
}

/* 행운 섹션 */
.lucky-section {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.15));
    border-radius: 12px;
}

.lucky-section h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.lucky-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.lucky-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.lucky-icon {
    font-size: 1.5rem;
}

.lucky-label {
    font-size: 0.75rem;
    color: #888;
}

.lucky-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

/* 오행 정보 그리드 */
.element-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.element-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    background: #f8f9fa;
    border-radius: 10px;
}

.element-info-item .info-icon {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.element-info-item .info-label {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 3px;
}

.element-info-item .info-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* 오행 상생상극 */
.element-relation {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.15));
    border-radius: 12px;
}

.element-relation h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.relation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.relation-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
}

.relation-item.boost {
    background: rgba(34, 197, 94, 0.1);
}

.relation-item.create {
    background: rgba(59, 130, 246, 0.1);
}

.relation-item.weaken {
    background: rgba(239, 68, 68, 0.1);
}

.relation-item.controlled {
    background: rgba(234, 179, 8, 0.1);
}

.relation-label {
    font-size: 0.8rem;
    color: #666;
}

.relation-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* 종합 분석 섹션 */
.summary-header {
    margin-bottom: 25px;
}

.analysis-section {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.analysis-section h5 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.analysis-section p {
    color: #555;
    line-height: 1.7;
}

.gender-interpretation h5 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

/* 균형 섹션 */
.balance-section {
    margin-top: 25px;
}

.balance-section h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.balance-analysis {
    padding: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 12px;
}

.balance-analysis > p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.7;
}

.balance-tips {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.balance-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.tip-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.tip-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 연간 운세 */
.yearly-advice {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.15));
    border-radius: 12px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.yearly-advice h5 {
    color: #b45309;
    margin-bottom: 12px;
}

.yearly-advice p {
    color: #555;
    line-height: 1.7;
}

/* 사주 반응형 */
@media (max-width: 768px) {
    .saju-header .title {
        font-size: 2rem;
    }
    
    .saju-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .saju-form-row:last-of-type {
        grid-template-columns: 1fr;
    }
    
    .saju-gender-options {
        justify-content: center;
    }
    
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .pillar-stem,
    .pillar-branch {
        font-size: 2rem;
    }
    
    .element-analysis {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .element-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .interpretation-card .card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .compatibility-grid {
        grid-template-columns: 1fr;
    }
    
    .lucky-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .element-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .relation-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .saju-header {
        padding: 30px 20px;
    }
    
    .saju-header .title {
        font-size: 1.6rem;
    }
    
    .saju-input-section {
        padding: 25px 20px;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .pillar-card {
        padding: 20px;
    }
    
    .saju-elements-chart {
        padding: 20px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .element-details {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .lucky-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
    }
    
    .element-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .balance-tip {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
