/* Modern, Calming Enneagram Quiz UI */

:root {
    --bg-primary: #faf9f7;
    --bg-secondary: #f5f3f0;
    --text-primary: #2c2c2c;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --accent: #8b7355;
    --accent-light: #a68b5b;
    --border: #e5e3e0;
    --shadow: rgba(0, 0, 0, 0.04);
    --shadow-hover: rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Landing Section */
.landing-section {
    text-align: center;
    animation: fadeInUp 0.8s ease;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-section.slide-up {
    transform: translateY(-50px);
    opacity: 0.3;
    pointer-events: none;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.app-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
}

.name-input-section {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.name-input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-primary);
    transition: all 0.3s ease;
    font-weight: 400;
}

.name-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.team-input-group {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
}

.team-input {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-primary);
    transition: all 0.3s ease;
    font-weight: 400;
}

.team-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.team-input-group .input-hints {
    margin: 0.5rem 0 0 0;
    text-align: left;
}

.input-hints {
    margin: 0.5rem 0 1rem 0;
    text-align: center;
}

.hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

.start-btn {
    padding: 1rem 2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.start-btn:hover:not(:disabled) {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.start-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.disclaimer {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1.5rem;
    line-height: 1.5;
}

/* Quiz Section */
.quiz-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.quiz-section.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.quiz-header {
    text-align: center;
    margin-bottom: 3rem;
}

.quiz-title {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin: 2rem 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Question Cards */
.question-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px var(--shadow);
    transition: all 0.3s ease;
}

.question-card:hover {
    box-shadow: 0 4px 20px var(--shadow-hover);
}

.question-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
}

.question-number {
    color: var(--accent);
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Answer Options */
.answer-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.answer-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.answer-option:hover .option-circle {
    border-color: var(--accent);
    transform: scale(1.05);
}

.option-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1.2;
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.option-circle {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    background: white;
}

.answer-option input[type="radio"] {
    display: none;
}

.answer-option input[type="radio"]:checked + .option-circle {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.option-number {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Navigation */
.quiz-navigation {
    text-align: center;
    margin-top: 3rem;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.quiz-navigation.enabled {
    opacity: 1;
}

.next-btn {
    padding: 1rem 3rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-btn:hover:not(:disabled) {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.next-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Results Section */
.results-section {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.results-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 32px var(--shadow);
    margin-bottom: 2rem;
}

.result-type {
    font-size: 2.2rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.result-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.scores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.score-item {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.score-item.top-score {
    border-color: var(--accent);
    background: rgba(139, 115, 85, 0.05);
}

.score-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
}

.score-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.retake-btn {
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retake-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .app-title {
        font-size: 2rem;
    }
    
    .name-input-section {
        padding: 2rem 1.5rem;
    }
    
    .input-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .team-input,
    .name-input {
        width: 100%;
    }
    
    .start-btn {
        width: 100%;
    }
    
    .answer-options {
        gap: 0.5rem;
    }
    
    .option-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .option-label {
        font-size: 0.7rem;
        min-height: 2rem;
    }
    
    .scores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}