/* Flashcards Screen Styles */

#flashcards-game-screen {
    background: var(--bg-app);
}

.flashcard-wrapper {
    max-width: 800px;
    width: 95%;
    margin: 40px auto;
    perspective: 1000px;
    text-align: center;
}

.flashcard {
    width: 100%;
    min-height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

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

.flashcard-front, .flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 25px;
    border: 2px solid var(--border);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.flashcard-back {
    transform: rotateY(180deg);
    border-color: var(--accent);
}

.card-label {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.card-text {
    font-size: 2.2rem;
    line-height: 1.3;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 20px;
    word-break: break-word;
    max-width: 100%;
}

.card-hint {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 20px;
}

.card-example {
    font-style: italic;
    font-size: 1rem;
    opacity: 0.7;
    margin-top: 15px;
    color: var(--blue);
}

.flashcard-controls {
    margin-top: 40px;
    animation: fadeIn 0.4s ease;
}

.rating-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.rate-btn {
    padding: 15px 10px;
    border-radius: var(--radius);
    border: none;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    color: white;
    transition: transform 0.2s;
}

.rate-btn:active { transform: scale(0.95); }

.rate-btn.r1 { background: #e74c3c; }
.rate-btn.r3 { background: #f39c12; }
.rate-btn.r5 { background: #2ecc71; }

.reveal-btn {
    margin-top: 40px;
    width: 100%;
    padding: 15px;
    border-radius: var(--radius);
    border: none;
    background: var(--accent);
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 0 #b33939;
}

.flashcard-results {
    text-align: center;
    padding: 40px;
}

.res-icon { font-size: 4rem; margin-bottom: 20px; }

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