/* Assessment Tools Page Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--background-color) 0%, var(--surface-color) 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-muted-color);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.decoration-line {
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.decoration-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* Assessment Overview */
.assessment-overview {
    padding: 80px 0;
    background: var(--background-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.assessment-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-muted-color);
    line-height: 1.6;
}

/* Quiz Section */
.quizzes-section {
    padding: 80px 0;
    background: var(--surface-color);
}

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.quiz-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quiz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #e63946);
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

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

.quiz-icon {
    font-size: 2.5rem;
}

.quiz-level {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-level.beginner {
    background: #e8f5e8;
    color: #2e7d32;
}

.quiz-level.intermediate {
    background: #fff3e0;
    color: #f57c00;
}

.quiz-level.advanced {
    background: #fce4ec;
    color: #c2185b;
}

.quiz-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.quiz-card p {
    color: var(--text-muted-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.quiz-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-weight: 500;
    color: var(--text-color);
}

.detail-value {
    color: var(--text-muted-color);
    font-weight: 600;
}

.quiz-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), #e63946);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 72, 58, 0.3);
}

/* Journal Section */
.journals-section {
    padding: 80px 0;
    background: var(--background-color);
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.journal-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.journal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
}

.journal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

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

.journal-icon {
    font-size: 2.5rem;
}

.journal-type {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #e8f5e8;
    color: #2e7d32;
}

.journal-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.journal-card p {
    color: var(--text-muted-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.journal-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.feature-tag {
    background: var(--surface-color);
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.journal-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.journal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

/* PDF Resources Section */
.pdf-resources-section {
    padding: 80px 0;
    background: var(--surface-color);
}

.pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pdf-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.pdf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pdf-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.pdf-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.pdf-card p {
    color: var(--text-muted-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.pdf-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pdf-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--surface-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pdf-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* Teacher Resources Section */
.teacher-resources-section {
    padding: 80px 0;
    background: var(--background-color);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.resource-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.resource-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.resource-card p {
    color: var(--text-muted-color);
    line-height: 1.6;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.quiz-modal-content,
.journal-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.quiz-modal-header,
.journal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}

.quiz-progress,
.journal-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #e63946);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-muted-color);
    font-weight: 500;
}

.journal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.journal-step {
    font-size: 0.9rem;
    color: var(--text-muted-color);
    font-weight: 500;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted-color);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-color);
}

.quiz-modal-body,
.journal-modal-body {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Quiz and Journal Styles */
.question-container {
    max-width: 100%;
}

.question-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.4;
}

.question-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.audio-container {
    margin: 1rem 0;
    text-align: center;
}

.question-audio {
    width: 100%;
    max-width: 300px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 2rem 0;
}

.option-btn {
    padding: 1rem 1.5rem;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option-btn:hover {
    background: #f5f5f5;
    border-color: var(--primary-color);
}

.option-btn.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.question-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: white;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.nav-btn.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.nav-btn.primary:hover:not(:disabled) {
    background: #e63946;
    border-color: #e63946;
}

/* Quiz Results */
.quiz-results {
    text-align: center;
}

.results-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #e63946);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    color: white;
}

.score-percentage {
    font-size: 2rem;
    font-weight: 700;
}

.score-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.results-summary {
    margin: 2rem 0;
}

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

.breakdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.breakdown-label {
    font-size: 0.9rem;
    color: var(--text-muted-color);
}

.breakdown-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.breakdown-value.correct {
    color: #4caf50;
}

.breakdown-value.incorrect {
    color: #f44336;
}

.detailed-results {
    text-align: left;
    margin: 2rem 0;
}

.detailed-results h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.question-review {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.question-review.correct {
    background: #e8f5e8;
    border-left-color: #4caf50;
}

.question-review.incorrect {
    background: #ffebee;
    border-left-color: #f44336;
}

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

.question-number {
    font-weight: 600;
    color: var(--text-color);
}

.review-status {
    font-weight: 600;
}

.question-review.correct .review-status {
    color: #4caf50;
}

.question-review.incorrect .review-status {
    color: #f44336;
}

.review-question {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.review-answers {
    margin-bottom: 0.5rem;
}

.user-answer,
.correct-answer {
    margin: 0.25rem 0;
}

.explanation {
    font-style: italic;
    color: var(--text-muted-color);
    font-size: 0.9rem;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background: var(--primary-color);
    color: white;
}

.action-btn.primary:hover {
    background: #e63946;
}

.action-btn.secondary {
    background: var(--surface-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.action-btn.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Journal Styles */
.journal-step-container {
    max-width: 100%;
}

.step-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: center;
}

.journal-step-content {
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.journal-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.journal-results {
    text-align: center;
}

.journal-results h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.journal-results p {
    font-size: 1.1rem;
    color: var(--text-muted-color);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .quiz-grid,
    .journal-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .quiz-modal-header,
    .journal-modal-header {
        padding: 1rem;
    }
    
    .quiz-modal-body,
    .journal-modal-body {
        padding: 1rem;
    }
    
    .results-breakdown {
        flex-direction: column;
        gap: 1rem;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 200px;
    }
}
