/* quiz.css - Styles for the Life Stage Self-Assessment Quiz - Color scheme updated to match the main website */

/* Navigation Bar Styles */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.nav-logo a {
    text-decoration: none;
}

.nav-tagline {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: 0.75rem 1.5rem;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%); /* Updated to main website colors */
    min-height: 100vh;
    padding: 100px 20px 20px; /* Added top padding for fixed navbar */
    color: #333;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.quiz-header {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%); /* Updated to main website colors */
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.logo {
    font-size: 1.5em;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quiz-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.quiz-form {
    padding: 40px 30px;
}

.question-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.question-card:hover {
    border-color: #3498db; /* Updated to main website colors */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1); /* Updated to main website colors */
}

.question-card h3 {
    color: #2d3748;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.options label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.options label:hover {
    background: #f7fafc;
    border-color: #3498db; /* Updated to main website colors */
}

.options input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #3498db; /* Updated to main website colors */
}

.options label:has(input:checked) {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(44, 62, 80, 0.15) 100%); /* Updated to main website colors */
    border-color: #3498db; /* Updated to main website colors */
    font-weight: 500;
}

.submit-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 40px auto 0;
    padding: 15px 30px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%); /* Updated to main website colors */
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3); /* Updated to main website colors */
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4); /* Updated to main website colors */
}

.submit-btn:active {
    transform: translateY(0);
}

.result-container {
    padding: 40px 30px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

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

#resultTitle {
    font-size: 2em;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 700;
}

#resultDescription {
    font-size: 1.2em;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 30px;
}

.result-details {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.score-display {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #2d3748;
}

.score-value {
    font-size: 2em;
    font-weight: 700;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%); /* Updated to main website colors */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dimension-scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.dimension-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

.dimension-name {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 5px;
}

.dimension-score {
    font-size: 1.2em;
    color: #3498db; /* Updated to main website colors */
    font-weight: 700;
}

.back-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%); /* Updated to main website colors */
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3); /* Updated to main website colors */
    border: none;
    cursor: pointer;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4); /* Updated to main website colors */
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .quiz-header {
        padding: 30px 20px;
    }

    .quiz-header h1 {
        font-size: 2em;
    }

    .quiz-form {
        padding: 30px 20px;
    }

    .question-card {
        padding: 20px;
    }

    .question-card h3 {
        font-size: 1.1em;
    }

    .options label {
        padding: 10px 12px;
        font-size: 0.95em;
    }

    .submit-btn {
        font-size: 1.1em;
    }

    .dimension-scores {
        grid-template-columns: 1fr;
    }
}

/* Animation Effects */
.question-card {
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

.question-card:nth-child(1) { animation-delay: 0.1s; }
.question-card:nth-child(2) { animation-delay: 0.15s; }
.question-card:nth-child(3) { animation-delay: 0.2s; }
.question-card:nth-child(4) { animation-delay: 0.25s; }
.question-card:nth-child(5) { animation-delay: 0.3s; }
.question-card:nth-child(6) { animation-delay: 0.35s; }
.question-card:nth-child(7) { animation-delay: 0.4s; }
.question-card:nth-child(8) { animation-delay: 0.45s; }
.question-card:nth-child(9) { animation-delay: 0.5s; }
.question-card:nth-child(10) { animation-delay: 0.55s; }
.question-card:nth-child(11) { animation-delay: 0.6s; }
.question-card:nth-child(12) { animation-delay: 0.65s; }
.question-card:nth-child(13) { animation-delay: 0.7s; }
.question-card:nth-child(14) { animation-delay: 0.75s; }
.question-card:nth-child(15) { animation-delay: 0.8s; }
.question-card:nth-child(16) { animation-delay: 0.85s; }
.question-card:nth-child(17) { animation-delay: 0.9s; }
.question-card:nth-child(18) { animation-delay: 0.95s; }
.question-card:nth-child(19) { animation-delay: 1s; }
.question-card:nth-child(20) { animation-delay: 1.05s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Progress Bar */
.progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%); /* Updated to main website colors */
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Recommendation Path */
.recommendation-container {
    margin-top: 20px;
}

.recommended-route {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid #3498db; /* Updated to main website colors */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.view-path-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%); /* Updated to main website colors */
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-path-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3); /* Updated to main website colors */
}

.retake-btn {
    background: white;
    color: #3498db; /* Updated to main website colors */
    border: 2px solid #3498db; /* Updated to main website colors */
}

.retake-btn:hover {
    background: rgba(52, 152, 219, 0.1); /* Updated to main website colors */
}