/* Practice Page Specific Styles */

/* Practice hero will now use the advanced hero styles from advanced-hero.css */
.practice-hero {
    /* Keep specific background image for practice page */
    background-image: linear-gradient(to right, rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.6)), url('../img/practice-hero-bg.jpg');
}

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

.practice-card {
    background-color: var(--light-dark-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
}

.practice-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.practice-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.practice-card h3 {
    color: var(--light-color);
    margin-bottom: 1rem;
}

.practice-card p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    min-height: 4.8rem;
    flex-grow: 1;
}

.practice-container {
    background-color: var(--light-dark-color);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
    min-height: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Flashcards */
.flashcard-container {
    max-width: 700px;
    margin: 0 auto;
}

.flashcard {
    background-color: var(--medium-dark-color);
    height: 350px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    perspective: 1000px;
    margin: 2rem auto;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front, .flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-radius: 10px;
}

.flashcard-front {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.flashcard-back {
    background-color: var(--secondary-color);
    color: var(--light-color);
    transform: rotateY(180deg);
}

.flashcard-term {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Permanent Marker', cursive;
}

.flashcard-description {
    font-size: 1.2rem;
}

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

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--medium-dark-color);
    color: var(--light-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

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

.flashcard-progress {
    text-align: center;
    margin-top: 1rem;
    color: var(--gray-color);
}

.flashcard-hint {
    text-align: center;
    margin-top: 1rem;
    color: var(--gray-color);
    font-style: italic;
}

/* Quiz */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

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

.quiz-header h2 {
    font-size: 2rem;
    color: var(--secondary-color);
}

.quiz-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.quiz-progress-bar {
    flex: 1;
    height: 8px;
    background-color: var(--medium-dark-color);
    border-radius: 4px;
    margin: 0 1rem;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background-color: var(--secondary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.quiz-score {
    text-align: center;
    color: var(--gray-color);
}

.quiz-question {
    background-color: var(--medium-dark-color);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quiz-question h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.quiz-option {
    background-color: var(--light-dark-color);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.quiz-option:hover {
    border-color: var(--primary-color);
}

.quiz-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(140, 26, 255, 0.2);
}

.quiz-option.correct {
    border-color: var(--success-color);
    background-color: rgba(0, 200, 83, 0.2);
}

.quiz-option.incorrect {
    border-color: var(--error-color);
    background-color: rgba(255, 23, 68, 0.2);
}

.quiz-feedback {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
}

.quiz-feedback.correct {
    background-color: rgba(0, 200, 83, 0.2);
    color: var(--success-color);
}

.quiz-feedback.incorrect {
    background-color: rgba(255, 23, 68, 0.2);
    color: var(--error-color);
}

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

.quiz-results {
    text-align: center;
    padding: 2rem;
}

.quiz-results h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.results-score {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.results-message {
    margin-bottom: 2rem;
    color: var(--light-color);
}

/* Fill in the Blanks */
.fill-blanks-container {
    max-width: 800px;
    margin: 0 auto;
}

.fill-blanks-header {
    text-align: center;
    margin-bottom: 2rem;
}

.fill-blanks-header h2 {
    font-size: 2rem;
    color: var(--secondary-color);
}

.dialogue-container {
    background-color: var(--medium-dark-color);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
}

.dialogue-text {
    font-family: monospace;
    white-space: pre-line;
    line-height: 1.8;
    font-size: 1.1rem;
}

.blank-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-bottom: 2px dashed var(--secondary-color);
    color: var(--light-color);
    font-family: monospace;
    font-size: 1.1rem;
    padding: 0.3rem 0.5rem;
    width: 150px;
    text-align: center;
    margin: 0 0.5rem;
}

.blank-input:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.blank-input.correct {
    border-bottom-color: var(--success-color);
    background-color: rgba(0, 200, 83, 0.2);
}

.blank-input.incorrect {
    border-bottom-color: var(--error-color);
    background-color: rgba(255, 23, 68, 0.2);
}

.fill-blanks-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.available-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.term-chip {
    background-color: var(--light-dark-color);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--gray-color);
}

.term-chip:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.term-chip.used {
    opacity: 0.5;
    pointer-events: none;
}

/* Term Matching */
.matching-container {
    max-width: 900px;
    margin: 0 auto;
}

.matching-header {
    text-align: center;
    margin-bottom: 2rem;
}

.matching-header h2 {
    font-size: 2rem;
    color: var(--secondary-color);
}

.matching-game {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.matching-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.matching-item {
    background-color: var(--medium-dark-color);
    padding: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.matching-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.matching-item.selected {
    border: 2px solid var(--primary-color);
}

.matching-item.matched {
    border: 2px solid var(--success-color);
    pointer-events: none;
}

.matching-text {
    font-weight: 500;
}

.matching-term {
    color: var(--primary-color);
    font-weight: 700;
}

.matching-definition {
    color: var(--light-color);
}

.matching-line {
    position: absolute;
    height: 2px;
    background-color: var(--accent-color);
    z-index: 10;
    pointer-events: none;
}

.matching-feedback {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.2rem;
}

.matching-timer {
    text-align: center;
    margin-top: 1rem;
    color: var(--gray-color);
}

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

/* No Terms Message */
.no-terms-message {
    width: 100%;
    background-color: var(--light-dark-color);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.no-terms-message .message-content {
    max-width: 600px;
    margin: 0 auto;
}

.no-terms-message i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.no-terms-message h3 {
    color: var(--light-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-terms-message p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.no-terms-message a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.no-terms-message a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .matching-game {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .flashcard {
        height: 300px;
    }

    .flashcard-term {
        font-size: 2rem;
    }

    .quiz-option {
        padding: 0.8rem;
    }
}

@media (max-width: 576px) {
    .practice-container {
        padding: 1.5rem;
    }

    .dialogue-container {
        padding: 1.5rem;
    }

    .flashcard {
        height: 250px;
    }

    .flashcard-term {
        font-size: 1.8rem;
    }

    .flashcard-description {
        font-size: 1rem;
    }

    .quiz-buttons,
    .fill-blanks-buttons,
    .matching-buttons {
        flex-direction: column;
    }
}
