* {
    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: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.intro-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.intro-section h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 2rem;
}

.dimensions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.dimension {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.dimension h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.test-info {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
}

.test-info h3 {
    color: #1976d2;
    margin-bottom: 15px;
}

.test-info ul {
    list-style: none;
    padding-left: 0;
}

.test-info li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.test-info li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1976d2;
    font-weight: bold;
}

.start-btn, .btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 10px 5px;
}

.start-btn:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.btn-share {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* 테스트 페이지 스타일 */
.test-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.question-counter {
    text-align: center;
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 30px;
}

.question-card {
    text-align: center;
    margin-bottom: 40px;
}

.question-card h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #333;
    line-height: 1.4;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.answer-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
}

.answer-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
}

.option-label {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.option-text {
    font-size: 1rem;
    line-height: 1.4;
}

.test-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.back-btn, .reset-btn {
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-btn {
    background: #6c757d;
    color: white;
}

.reset-btn {
    background: #dc3545;
    color: white;
}

.back-btn:hover, .reset-btn:hover {
    transform: translateY(-2px);
}

/* 결과 페이지 스타일 */
.result-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.result-header {
    text-align: center;
    margin-bottom: 40px;
}

.result-header h1 {
    color: #667eea;
    margin-bottom: 20px;
}

.mbti-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin: 20px 0;
}

.mbti-type {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.mbti-name {
    font-size: 1.5rem;
    opacity: 0.9;
}

.result-content {
    margin-bottom: 40px;
}

.description-section,
.characteristics-section,
.careers-section,
.scores-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.description-section h3,
.characteristics-section h3,
.careers-section h3,
.scores-section h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.score-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.score-item span:first-child {
    min-width: 150px;
    font-weight: bold;
}

.score-item span:last-child {
    min-width: 60px;
    text-align: center;
    font-weight: bold;
}

.score-bar {
    flex: 1;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    display: flex;
    overflow: hidden;
}

.score-fill-e, .score-fill-s, .score-fill-t, .score-fill-j {
    background: #667eea;
    transition: width 0.5s ease;
}

.score-fill-i, .score-fill-n, .score-fill-f, .score-fill-p {
    background: #764ba2;
    transition: width 0.5s ease;
    margin-left: auto;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 유형 페이지 스타일 */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.type-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.type-card:hover {
    transform: translateY(-5px);
}

.type-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.type-header h3 {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 5px;
}

.type-header h4 {
    color: #6c757d;
    font-weight: normal;
}

.type-description {
    font-style: italic;
    margin-bottom: 15px;
    color: #495057;
}

.type-details strong {
    color: #667eea;
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
}

.back-to-test {
    text-align: center;
}

footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    opacity: 0.8;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .intro-section,
    .test-container,
    .result-container {
        padding: 20px;
    }
    
    .answer-options {
        gap: 10px;
    }
    
    .answer-btn {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .mbti-type {
        font-size: 2.5rem;
    }
    
    .score-item {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .score-item span:first-child,
    .score-item span:last-child {
        min-width: auto;
        text-align: center;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .types-grid {
        grid-template-columns: 1fr;
    }
}