/* 빅파이브 성격 테스트 CSS */

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

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

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

/* 페이지 전환 */
.page {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.page.active {
    display: block;
}

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

/* 시작 페이지 */
.title {
    font-size: 3rem;
    text-align: center;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #e0e6ff;
    margin-bottom: 2rem;
}

.description {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
}

.description p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.features {
    display: flex;
    justify-content: space-around;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 10px;
    color: white;
    text-align: center;
    min-width: 200px;
    font-weight: 500;
}

.start-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

/* 테스트 페이지 */
.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.3);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    background: linear-gradient(45deg, #00d2ff, #3a7bd5);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 5px;
}

.progress-text {
    color: white;
    font-weight: bold;
    display: block;
    text-align: center;
}

.question-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.question {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    line-height: 1.5;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.answer-btn {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #333;
}

.answer-btn:hover {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border-color: #007bff;
    transform: translateX(5px);
}

/* 결과 페이지 */
.result-title {
    font-size: 2.5rem;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.animal-result {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.animal-character {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.animal-name {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.animal-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.big5-results {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.big5-results h3 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
}

.dimension-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.dimension-label {
    flex: 0 0 200px;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.dimension-bar {
    flex: 1;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.dimension-fill {
    height: 100%;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.dimension-score {
    flex: 0 0 60px;
    text-align: right;
    font-weight: bold;
    color: #007bff;
}

.detailed-analysis {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.detailed-analysis h3 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.4rem;
}

.detailed-text {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* 광고 영역 */
.ad-container {
    margin: 2rem 0;
    text-align: center;
}

.adsense-placeholder {
    background: rgba(255, 255, 255, 0.9);
    border: 2px dashed #ccc;
    padding: 2rem;
    border-radius: 15px;
    color: #666;
    font-size: 1.1rem;
}

/* 액션 버튼들 */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn, .restart-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.share-btn {
    background: linear-gradient(45deg, #ffeb3b, #fdd835);
    color: #333;
}

.restart-btn {
    background: linear-gradient(45deg, #4caf50, #388e3c);
    color: white;
}

.share-btn:hover, .restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .features {
        flex-direction: column;
    }
    
    .feature {
        min-width: auto;
    }
    
    .question {
        font-size: 1.2rem;
    }
    
    .dimension-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .dimension-label {
        flex: none;
    }
    
    .dimension-score {
        text-align: left;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .animal-character {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.5rem;
    }
    
    .animal-name {
        font-size: 1.4rem;
    }
    
    .question-container, .animal-result, .big5-results, .detailed-analysis {
        padding: 1rem;
    }
}