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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* 네비게이션 바 */
.navbar {
    background: rgba(0, 0, 0, 0.8);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    padding: 15px 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #667eea;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    margin-top: 20px;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 10px;
}

.description {
    font-size: 1em;
    opacity: 0.8;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 선택 섹션 */
.selection-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.choice-group {
    margin-bottom: 20px;
}

.choice-group:last-child {
    margin-bottom: 30px;
}

.choice-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.time-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.choice-group select,
.choice-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
    background-color: white;
}

.choice-group select {
    cursor: pointer;
}

.choice-group select:hover,
.choice-group input:hover {
    border-color: #667eea;
}

.choice-group select:focus,
.choice-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.check-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.check-btn:active {
    transform: translateY(0);
}

/* 결과 섹션 */
.result-section {
    animation: slideIn 0.5s ease-out;
}

.result-section.hidden {
    display: none;
}

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

.result-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.result-header h2 {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 10px;
}

#result-date, #user-info {
    color: #999;
    font-size: 1em;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.luck-item {
    display: flex;
    flex-direction: column;
}

.luck-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.luck-item p {
    color: #555;
    line-height: 1.6;
    font-size: 1em;
}

/* 운세 통계 */
.luck-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 10px;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.stat-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease-out;
    width: 0%;
}

.stat p {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

/* 행운 색상 */
.color-box {
    width: 100%;
    height: 80px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 버튼 */
.reset-btn {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: #f0f0f0;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.reset-btn:hover {
    background: #e0e0e0;
    border-color: #667eea;
}

/* 정보 섹션 */
.info-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.info-section h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.info-section h3 {
    color: #555;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.info-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.info-section ul {
    margin-left: 20px;
    color: #666;
    line-height: 1.8;
}

.info-section ul li {
    margin-bottom: 8px;
}

/* 별자리 그리드 */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.zodiac-item {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #667eea;
    transition: transform 0.3s;
}

.zodiac-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(102, 126, 234, 0.2);
}

.zodiac-item strong {
    color: #667eea;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.zodiac-item p {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

/* 광고 컨테이너 */
.ad-container {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.adsbygoogle {
    display: inline-block;
    max-width: 100%;
}

/* 푸터 */
footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    padding-bottom: 20px;
    opacity: 0.8;
    font-size: 0.95em;
}

.footer-content {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
}

.footer-content p {
    margin-bottom: 5px;
}

/* 페이지 콘텐츠 */
.page-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-content h1 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.page-content h2 {
    color: #555;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.page-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.page-content ul {
    margin-left: 20px;
    color: #666;
    line-height: 1.8;
}

.page-content ul li {
    margin-bottom: 8px;
}

.page-content a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.page-content a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 반응형 디자인 */
@media (max-width: 600px) {
    header h1 {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1em;
    }

    .description {
        font-size: 0.9em;
    }

    .nav-menu {
        gap: 15px;
        font-size: 0.85em;
    }

    .luck-stats {
        grid-template-columns: 1fr;
    }

    .result-card {
        padding: 20px;
    }

    .selection-section {
        padding: 20px;
    }

    .info-section {
        padding: 20px;
    }

    .zodiac-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-header h2 {
        font-size: 1.8em;
    }

    .page-content {
        padding: 20px;
    }

    .page-content h1 {
        font-size: 1.8em;
    }

    .compatibility-stats {
        grid-template-columns: 1fr;
    }

    .names-display {
        font-size: 0.9em;
    }
}

/* 궁합 분석 페이지 스타일 */
.compatibility-result {
    margin-top: 30px;
}

.compatibility-result.hidden {
    display: none;
}

.compatibility-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.compatibility-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #FFE5EC;
}

.compatibility-header h2 {
    font-size: 2.5em;
    color: #FF6B9D;
    margin-bottom: 15px;
}

.names-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.name-badge {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8FA3 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.heart-icon {
    font-size: 1.5em;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.compatibility-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.compatibility-score {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #FFE5EC 0%, #FFF0F5 100%);
    border-radius: 10px;
}

.score-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    border: 8px solid #FF6B9D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(255, 143, 163, 0.1) 100%);
}

.score-value {
    font-size: 3em;
    font-weight: 700;
    color: #FF6B9D;
}

.score-message {
    color: #555;
    font-size: 1.1em;
    line-height: 1.6;
    margin-top: 10px;
}

/* 궁합 통계 */
.compatibility-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 10px;
}

.compat-stat {
    text-align: center;
}

.compat-stat .stat-label {
    display: block;
    font-weight: 600;
    color: #FF6B9D;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.compat-stat .stat-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.compat-stat .stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B9D 0%, #FFB6C1 100%);
    transition: width 0.5s ease-out;
    width: 0%;
}

.compat-stat p {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

/* 궁합 조언 */
.compatibility-advice {
    background: #FFF5F7;
    padding: 20px;
    border-left: 4px solid #FF6B9D;
    border-radius: 5px;
}

.compatibility-advice h3 {
    color: #FF6B9D;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.compatibility-advice p {
    color: #555;
    line-height: 1.6;
}

/* 궁합 상세 분석 */
.compatibility-analysis {
    background: #F0F8FF;
    padding: 20px;
    border-left: 4px solid #667eea;
    border-radius: 5px;
}

.compatibility-analysis h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.compatibility-analysis p {
    color: #555;
    line-height: 1.6;
}

/* 버튼 스타일 */
.check-btn {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8FA3 100%);
    color: white;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 157, 0.3);
}

.reset-btn {
    background: #ddd;
    color: #333;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.reset-btn:hover {
    background: #ccc;
    transform: translateY(-2px);
}
