/* 글로벌 여행 테마 - 세계지도 & 여권 컨셉 */
:root {
    --travel-blue: #1e40af;
    --passport-green: #16a085;
    --urgent-red: #dc2626;
    --gold-accent: #f59e0b;
    --sky-blue: #0ea5e9;
    --cream-white: #fefce8;
    --warm-gray: #f8fafc;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #9ca3af;
    --border-light: #e5e7eb;
    --shadow-travel: 0 4px 20px rgba(30, 64, 175, 0.15);
    --gradient-main: linear-gradient(135deg, #1e40af 0%, #16a085 100%);
    --gradient-urgent: linear-gradient(135deg, #dc2626 0%, #f59e0b 100%);
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--warm-gray);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* 세계지도 배경 패턴 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(30, 64, 175, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(22, 160, 133, 0.05) 0%, transparent 40%),
        linear-gradient(45deg, transparent 48%, rgba(245, 158, 11, 0.02) 50%, transparent 52%);
    pointer-events: none;
    z-index: -1;
}

/* 페이지 공통 */
.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.page.hidden {
    display: none;
}

.container {
    max-width: 800px;
    width: 100%;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-travel);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

/* 광고 섹션 */
.ad-section {
    padding: 20px;
    background: var(--cream-white);
    border-bottom: 1px solid var(--border-light);
}

/* 시작 페이지 */
.content {
    padding: 40px;
}

.header-section {
    text-align: center;
    margin-bottom: 40px;
}

.urgent-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-urgent);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-travel);
    animation: pulse 2s infinite;
}

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

.badge-icon {
    font-size: 1.2em;
}

.badge-text {
    font-weight: 600;
    font-size: 0.95em;
}

.main-title {
    font-size: 2.8em;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.highlight-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2em;
    color: var(--text-medium);
    margin-bottom: 20px;
}

/* 상황별 카드 */
.situation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.situation-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.situation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
}

.situation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-travel);
    border-color: var(--travel-blue);
}

.card-icon {
    font-size: 2.5em;
    margin-bottom: 12px;
}

.situation-card h3 {
    font-size: 1.3em;
    color: var(--travel-blue);
    margin-bottom: 8px;
    font-weight: 700;
}

.situation-card p {
    color: var(--text-medium);
    font-size: 0.9em;
    margin-bottom: 16px;
}

.status {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85em;
}

.status.possible {
    background: rgba(22, 160, 133, 0.1);
    color: var(--passport-green);
    border: 1px solid var(--passport-green);
}

.status.limited {
    background: rgba(245, 158, 11, 0.1);
    color: var(--gold-accent);
    border: 1px solid var(--gold-accent);
}

.status.difficult {
    background: rgba(220, 38, 38, 0.1);
    color: var(--urgent-red);
    border: 1px solid var(--urgent-red);
}

/* 주요 정보 박스 */
.key-info {
    margin-bottom: 30px;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    margin-bottom: 16px;
    background: var(--cream-white);
    border-radius: 12px;
    border-left: 4px solid var(--travel-blue);
}

.info-icon {
    font-size: 1.5em;
    color: var(--travel-blue);
    margin-top: 4px;
}

.info-content h4 {
    color: var(--text-dark);
    margin-bottom: 6px;
    font-weight: 600;
}

.info-content p {
    color: var(--text-medium);
    font-size: 0.95em;
    line-height: 1.5;
}

/* 경고 안내 */
.warning-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    margin-bottom: 30px;
    background: rgba(220, 38, 38, 0.05);
    border-radius: 12px;
    border: 1px solid var(--urgent-red);
}

.warning-icon {
    font-size: 1.5em;
    color: var(--urgent-red);
    margin-top: 4px;
}

.warning-content h4 {
    color: var(--urgent-red);
    margin-bottom: 8px;
    font-weight: 600;
}

.warning-content p {
    color: var(--text-dark);
    font-size: 0.95em;
    line-height: 1.6;
}

/* 기능 그리드 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: var(--cream-white);
    border-color: var(--travel-blue);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.3em;
    color: var(--passport-green);
}

/* 시작 버튼 */
.start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 16px;
    font-size: 1.3em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-travel);
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

.btn-icon {
    font-size: 1.2em;
}

/* 질문 페이지 */
.progress-section {
    background: var(--gradient-main);
    padding: 30px;
    text-align: center;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.3);
    height: 8px;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}

.progress-fill {
    background: white;
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    color: white;
    font-size: 1.1em;
    font-weight: 600;
}

.question-content {
    padding: 40px;
}

.question-title {
    font-size: 1.8em;
    color: var(--text-dark);
    margin-bottom: 16px;
    font-weight: 700;
}

.question-desc {
    color: var(--text-medium);
    margin-bottom: 30px;
    font-size: 1.1em;
}

.answers-grid {
    display: grid;
    gap: 16px;
}

.answer-option {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    text-align: left;
}

.answer-option:hover {
    background: var(--cream-white);
    border-color: var(--travel-blue);
    transform: translateX(5px);
}

.answer-option.selected {
    background: rgba(30, 64, 175, 0.1);
    border-color: var(--travel-blue);
    color: var(--travel-blue);
    font-weight: 600;
}

/* 모달 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header h3 {
    font-size: 1.8em;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.modal-header p {
    color: var(--text-medium);
    margin-bottom: 30px;
}

.analysis-steps {
    margin-bottom: 30px;
}

.step-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--cream-white);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.step-item.active {
    background: rgba(30, 64, 175, 0.1);
    border-color: var(--travel-blue);
}

.step-icon {
    font-size: 1.5em;
}

.step-text {
    flex: 1;
    margin-left: 16px;
    text-align: left;
    font-weight: 500;
}

.step-check {
    font-size: 1.2em;
    font-weight: bold;
}

.timer-section {
    margin-bottom: 30px;
}

.timer-circle {
    width: 80px;
    height: 80px;
    border: 4px solid var(--travel-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: var(--gradient-main);
}

.timer-display {
    font-size: 2em;
    font-weight: bold;
    color: white;
}

.popup-ad {
    margin-top: 20px;
    padding: 20px;
    background: var(--cream-white);
    border-radius: 12px;
}

/* 결과 페이지 */
.result-header {
    background: var(--gradient-main);
    padding: 40px;
    text-align: center;
    color: white;
}

.result-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
}

.result-title {
    font-size: 2.2em;
    margin-bottom: 12px;
    font-weight: 700;
}

.result-summary {
    font-size: 1.2em;
    opacity: 0.9;
}

.result-content {
    padding: 40px;
}

.result-content > div {
    margin-bottom: 30px;
    padding: 25px;
    background: var(--cream-white);
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.action-section {
    display: flex;
    gap: 16px;
    padding: 30px 40px;
    background: var(--cream-white);
    flex-wrap: wrap;
}

.action-section button {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.detail-btn {
    background: var(--gradient-main);
    color: white;
}

.other-test-btn {
    background: var(--gradient-urgent);
    color: white;
}

.share-btn {
    background: #fee500;
    color: #3c1e1e;
}

.restart-btn {
    background: var(--sky-blue);
    color: white;
}

.action-section button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-travel);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.2em;
    }
    
    .situation-cards {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .action-section {
        flex-direction: column;
    }
    
    .action-section button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 20px;
    }
    
    .question-content {
        padding: 20px;
    }
    
    .modal-content {
        padding: 20px;
        margin: 20px;
    }
    
    .main-title {
        font-size: 1.8em;
    }
    
    .info-box,
    .warning-notice {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon,
    .warning-icon {
        margin-top: 0;
    }
}
