/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', 'Noto Sans', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* 언어 선택기 */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#language-select {
    padding: 8px 12px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#language-select:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

/* 컨테이너 */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 화면 전환 */
.screen {
    display: none;
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
}

.screen.active {
    display: block;
}

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

/* 히어로 섹션 */
.hero {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

#main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#main-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 타입 카드 */
.type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.type-card {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    padding: 25px 20px;
    border-radius: 15px;
    color: white;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.type-card:nth-child(2) {
    background: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.type-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.type-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.emoji {
    font-size: 2rem;
    margin-top: 10px;
}

/* 버튼 스타일 */
.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: linear-gradient(45deg, #ffeaa7 0%, #fab1a0 100%);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 234, 167, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 234, 167, 0.6);
}

/* 진행 바 */
.progress-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

#progress-text {
    font-weight: 600;
    color: #4a5568;
}

/* 질문 컨테이너 */
.question-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#question-text {
    font-size: 1.4rem;
    color: #2d3748;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 500;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    background: white;
    color: #2d3748;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option-btn:hover {
    border-color: #667eea;
    background: #f7fafc;
    transform: translateX(5px);
}

.option-btn:active {
    transform: scale(0.98);
}

/* 결과 화면 */
.result-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

#result-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

.result-description {
    margin-bottom: 30px;
}

.result-description p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 10px;
    line-height: 1.6;
}

.compatibility {
    background: linear-gradient(45deg, #ffeaa7 0%, #fab1a0 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.compatibility h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.compatibility p {
    color: #333;
    font-size: 1rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.share-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.share-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* 광고 컨테이너 */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 60px;
}

.ad-container ins {
    display: block !important;
    min-width: 300px;
    width: 100%;
}

/* 질문 화면 전용 광고 스타일 */
.ad-container-question {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 250px;
}

/* 광고 반응형 디자인 */
@media (max-width: 768px) {
    .ad-container {
        margin: 20px 0;
        padding: 15px;
    }
    
    .ad-container-question {
        margin: 10px 0;
        padding: 10px;
    }
}

@media (max-width: 320px) {
    .ad-container {
        padding: 10px;
        margin: 15px 0;
    }
    
    .ad-container ins {
        max-width: 100%;
        overflow: hidden;
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    #main-title {
        font-size: 2rem;
    }
    
    .type-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hero {
        padding: 30px 20px;
    }
    
    .question-container {
        padding: 25px 20px;
    }
    
    #question-text {
        font-size: 1.2rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        margin: 5px 0;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    #main-title {
        font-size: 1.8rem;
    }
    
    .language-selector {
        top: 10px;
        right: 10px;
    }
    
    .container {
        padding: 10px;
    }
} 