/* English Modules CSS */

/* Module Header Styling */
.module-header {
    background: linear-gradient(135deg, #101820, #FFB612);
    color: white;
    padding: 3rem 0;
    border-radius: 0 0 20px 20px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.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;
    font-size: 3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.module-progress .progress {
    height: 10px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.3);
}

.module-progress .progress-bar {
    background-color: #FFB612;
}

/* Module Navigation Styling */
.module-navigation {
    margin-bottom: 2rem;
}

.module-navigation .nav-pills {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.module-navigation .nav-link {
    color: #495057;
    font-weight: 600;
    border-radius: 7px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.module-navigation .nav-link:hover {
    background-color: rgba(16, 24, 32, 0.1);
}

.module-navigation .nav-link.active {
    background: linear-gradient(135deg, #101820, #FFB612);
    color: white;
}

/* Learn Tab Styling */
.learn-content {
    padding: 1rem;
}

.learn-section {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.learn-section h3 {
    color: #101820;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.key-concept {
    background-color: #f8f9fa;
    border-left: 4px solid #101820;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 10px 10px 0;
}

.key-concept h4 {
    color: #101820;
    margin-bottom: 1rem;
}

.strategy-box {
    background-color: #fff8e1;
    border-left: 4px solid #FFB612;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 10px 10px 0;
}

.strategy-box h4 {
    color: #f39c12;
    margin-bottom: 1rem;
}

.example-box {
    background-color: #f1f8e9;
    border: 1px solid #c5e1a5;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
}

.example-box h4 {
    color: #558b2f;
    margin-bottom: 1rem;
}

.passage-example {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.act-passage {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.8;
    padding: 1rem;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.act-passage .underlined {
    text-decoration: underline;
    position: relative;
}

.act-passage sup {
    color: #FFB612;
    font-weight: bold;
}

.question-examples {
    margin-top: 1.5rem;
}

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

.answer-explanation {
    background-color: #e8f5e9;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.rule-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.rule-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.rule-card h5 {
    color: #101820;
    margin-bottom: 1rem;
    border-bottom: 2px solid #FFB612;
    padding-bottom: 0.5rem;
}

.pitfalls-box {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 10px 10px 0;
}

.pitfalls-box h4 {
    color: #c62828;
    margin-bottom: 1rem;
}

.pitfall-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pitfall-card h5 {
    color: #c62828;
    margin-bottom: 1rem;
}

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

.next-steps h3 {
    color: #1565c0;
    margin-bottom: 1rem;
}

/* Practice Tab Styling */
.practice-content {
    padding: 1rem;
}

.skill-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.skill-selector button {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

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

.practice-passage-title {
    color: #101820;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.practice-passage-content {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.practice-questions {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

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

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

.answer-option {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 7px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.answer-option.selected {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
}

.answer-option.correct {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.answer-option.incorrect {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.option-letter {
    font-weight: 700;
    margin-right: 0.5rem;
}

.answer-feedback {
    display: none;
    margin-top: 1rem;
}

.answer-feedback.correct {
    color: #28a745;
}

.answer-feedback.incorrect {
    color: #dc3545;
}

/* Challenge Tab Styling */
.challenge-content {
    padding: 1rem;
}

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

.challenge-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.challenge-card-header {
    background: linear-gradient(135deg, #101820, #FFB612);
    color: white;
    padding: 1.5rem;
    position: relative;
}

.challenge-card-header h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.challenge-card-header .badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.9rem;
}

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

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

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

.challenge-active {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.challenge-timer {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    min-width: 150px;
}

.challenge-timer .time {
    font-size: 1.5rem;
    font-weight: 700;
    color: #101820;
}

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

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

.challenge-complete {
    text-align: center;
    padding: 2rem;
}

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

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #101820, #FFB612);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.score-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.score-label {
    font-size: 1rem;
}

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

.stat-box {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #101820;
}

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

.challenge-reward {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reward-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #FFB612;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.reward-value {
    font-weight: 600;
}

/* Test Tab Styling */
.test-content {
    padding: 1rem;
}

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

.test-start-card {
    background: linear-gradient(135deg, #101820, #FFB612);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.test-start-card h3 {
    margin-bottom: 1rem;
}

.test-start-card .btn {
    margin-top: 1rem;
    background-color: white;
    color: #101820;
    border: none;
    font-weight: 600;
}

.test-active {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.test-questions {
    margin-bottom: 2rem;
}

.test-question {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.test-results {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.test-score {
    font-size: 4rem;
    font-weight: 700;
    color: #101820;
    text-align: center;
    margin-top: 2rem;
}

.score-label {
    text-align: center;
    color: #6c757d;
    margin-bottom: 2rem;
}

.test-accuracy {
    margin-bottom: 3rem;
}

.test-analysis h3 {
    color: #101820;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.strength-weakness {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.strength-card {
    background-color: #e8f5e9;
    padding: 1.5rem;
    border-radius: 10px;
}

.strength-card h4 {
    color: #2e7d32;
    margin-bottom: 1rem;
}

.weakness-card {
    background-color: #ffebee;
    padding: 1.5rem;
    border-radius: 10px;
}

.weakness-card h4 {
    color: #c62828;
    margin-bottom: 1rem;
}

.test-recommendations h3 {
    color: #101820;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.recommendation-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    height: 100%;
}

.recommendation-card h4 {
    color: #101820;
    margin-bottom: 1rem;
}

.test-review {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.correct-question {
    border-left: 4px solid #28a745;
}

.incorrect-question {
    border-left: 4px solid #dc3545;
}

.explanation {
    margin-top: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .module-header {
        padding: 2rem 0;
    }
    
    .module-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .learn-section, .practice-passage, .challenge-active, .test-active {
        padding: 1rem;
    }
    
    .rule-cards {
        grid-template-columns: 1fr;
    }
    
    .strength-weakness {
        grid-template-columns: 1fr;
    }
    
    .challenge-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .challenge-rewards {
        flex-direction: column;
        align-items: center;
    }
    
    .skill-selector {
        flex-direction: column;
    }
}

/* Pokemon-themed elements */
.pokemon-badge {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 60px;
    background-color: #ffcb05;
    border-radius: 50%;
    margin: 0 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.pokemon-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    z-index: 1;
}

.pokemon-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #ff0000;
}

/* D&D-themed elements */
.dnd-dice {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: #7b2cbf;
    transform: rotate(45deg);
    margin: 10px;
    display: inline-block;
}

.dnd-dice::before {
    content: attr(data-number);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    color: white;
    font-weight: bold;
    font-size: 16px;
}

/* Steelers-themed elements */
.steelers-colors {
    background: linear-gradient(135deg, #101820, #FFB612);
    color: white;
}

/* Swimming-themed elements */
.wave-animation {
    position: relative;
    height: 20px;
    background: linear-gradient(to right, #4fc3f7, #29b6f6, #03a9f4);
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
}

.wave-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.3)" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
