/* Math Modules Specific Styles */

/* Module Header */
.module-header {
    background: linear-gradient(135deg, var(--pokemon-blue), #1565c0);
    color: white;
    padding: 3rem 2rem;
    margin-bottom: 1rem;
}

.module-header h1 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.module-header .lead {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.module-progress {
    margin-top: 1.5rem;
}

.module-icon {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.module-icon i {
    font-size: 3rem;
}

/* Module Navigation */
.module-navigation {
    background-color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.module-navigation .nav-link {
    color: var(--dark-color) !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    margin: 0 0.25rem;
}

.module-navigation .nav-link.active {
    background-color: var(--pokemon-blue);
    color: white !important;
}

/* Module Content */
.module-content {
    padding-bottom: 4rem;
}

/* Learn Tab */
.learn-content {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.learn-content h2 {
    color: var(--pokemon-blue);
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
}

.learn-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.learn-section:last-child {
    border-bottom: none;
}

.learn-section h3 {
    color: var(--steelers-black);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.math-formula {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: center;
}

.example-box {
    background-color: #e3f2fd;
    border-left: 5px solid var(--pokemon-blue);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
}

.example-box h4 {
    color: var(--pokemon-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.solution-steps {
    margin-top: 1rem;
}

.solution-steps p {
    margin-bottom: 0.5rem;
}

.key-concept {
    background-color: #fff8e1;
    border-left: 5px solid var(--steelers-gold);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
}

.key-concept h4 {
    color: var(--steelers-black);
    margin-bottom: 1rem;
    font-weight: 600;
}

.next-steps {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f5f5f5;
    border-radius: 10px;
}

.next-steps h3 {
    margin-bottom: 1rem;
}

/* Practice Tab */
.practice-content {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.practice-content h2 {
    color: var(--pokemon-blue);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.difficulty-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.practice-problem {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.practice-problem h3 {
    color: var(--steelers-black);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.answer-options {
    margin-top: 1.5rem;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.answer-option:hover {
    background-color: #f1f1f1;
}

.answer-option.selected {
    background-color: #e3f2fd;
    border-color: var(--pokemon-blue);
}

.answer-option.correct {
    background-color: #d4edda;
    border-color: #28a745;
}

.answer-option.incorrect {
    background-color: #f8d7da;
    border-color: #dc3545;
}

.answer-feedback {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    display: none;
}

.answer-feedback.correct {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.answer-feedback.incorrect {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

.practice-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Challenge Tab */
.challenge-content {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.challenge-content h2 {
    color: var(--pokemon-blue);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.challenge-cards {
    margin: 2rem 0;
}

.challenge-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.challenge-card-header {
    background-color: var(--steelers-black);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.challenge-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.challenge-card-body {
    padding: 1.5rem;
}

.challenge-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    color: #6c757d;
}

.challenge-card-footer {
    padding: 1.5rem;
    background-color: #f1f1f1;
    text-align: center;
}

.challenge-timer {
    background-color: var(--steelers-black);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.challenge-timer .time {
    font-size: 2rem;
    font-weight: 700;
}

.challenge-progress {
    margin-bottom: 2rem;
}

.challenge-progress .progress {
    height: 1.5rem;
    border-radius: 10px;
}

.challenge-complete {
    text-align: center;
    padding: 2rem;
    background-color: #d4edda;
    border-radius: 10px;
    margin-top: 2rem;
}

.challenge-complete h3 {
    color: #155724;
    margin-bottom: 1rem;
}

.challenge-rewards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.challenge-reward {
    text-align: center;
}

.challenge-reward .reward-icon {
    width: 80px;
    height: 80px;
    background-color: var(--steelers-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.challenge-reward .reward-icon i {
    font-size: 2.5rem;
    color: var(--steelers-black);
}

/* Test Tab */
.test-content {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.test-content h2 {
    color: var(--pokemon-blue);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.test-intro {
    margin: 2rem 0;
}

.test-start-card {
    background-color: #e3f2fd;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.test-start-card h3 {
    color: var(--pokemon-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.test-timer {
    background-color: var(--steelers-black);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.test-timer .time {
    font-size: 2rem;
    font-weight: 700;
}

.test-question {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.test-question h3 {
    color: var(--steelers-black);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.test-results {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-top: 2rem;
}

.test-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--pokemon-blue);
    margin-bottom: 1rem;
}

.test-analysis {
    margin: 2rem 0;
}

.test-analysis h3 {
    margin-bottom: 1.5rem;
}

.strength-weakness {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.strength-card, .weakness-card {
    flex: 1;
    padding: 1.5rem;
    border-radius: 10px;
}

.strength-card {
    background-color: #d4edda;
    color: #155724;
}

.weakness-card {
    background-color: #f8d7da;
    color: #721c24;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .module-header {
        padding: 2rem 1rem;
    }
    
    .module-icon {
        width: 80px;
        height: 80px;
        margin-top: 1rem;
    }
    
    .module-icon i {
        font-size: 2rem;
    }
    
    .module-navigation .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .learn-content, .practice-content, .challenge-content, .test-content {
        padding: 1.5rem;
    }
    
    .math-formula {
        padding: 1rem;
        overflow-x: auto;
    }
    
    .challenge-card {
        margin-bottom: 1.5rem;
    }
    
    .strength-weakness {
        flex-direction: column;
        gap: 1rem;
    }
}
