/* English Flashcard Page Styles for Chinese UI */

/* Flashcard Card */
.flashcard-card {
    min-height: 280px;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.flashcard-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* English Word Display */
.flashcard-word {
    font-size: 3.5rem;
    font-weight: 700;
    color: #0d6efd;
    line-height: 1.2;
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* Phonetic Display */
.flashcard-phonetic {
    font-size: 1.3rem;
    font-family: 'Lucida Sans Unicode', 'Arial Unicode MS', sans-serif;
}

/* Chinese Definition Display */
.flashcard-definition {
    font-size: 1.8rem;
    color: #333;
    font-weight: 500;
}

/* Hidden State for Quiz Mode */
.flashcard-hidden {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flashcard-hidden:hover {
    background: linear-gradient(135deg, #dee2e6 0%, #ced4da 100%);
}

.flashcard-hidden .question-mark {
    font-size: 4rem;
    color: #6c757d;
}

.flashcard-hidden-text {
    font-style: italic;
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flashcard-hidden-text:hover {
    background-color: #e9ecef;
}

/* Example Sentences */
.example-sentence {
    padding: 10px;
    border-left: 3px solid #0d6efd;
    background-color: #f8f9fa;
    border-radius: 0 6px 6px 0;
}

.example-english {
    font-size: 1.1rem;
    color: #0d6efd;
}

.example-chinese {
    font-size: 1rem;
    color: #333;
}

.example-pinyin {
    font-size: 0.9rem;
}

/* Progress Bar */
.progress {
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(90deg, #0d6efd 0%, #0dcaf0 100%);
    transition: width 0.3s ease;
}

/* Ad Placeholders */
.ad-placeholder {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder.ad-sidebar {
    min-height: 250px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .flashcard-word {
        font-size: 2.5rem;
    }
    
    .flashcard-phonetic {
        font-size: 1.1rem;
    }
    
    .flashcard-definition {
        font-size: 1.4rem;
    }
    
    .flashcard-card {
        min-height: 220px;
    }
}

@media (max-width: 576px) {
    .flashcard-word {
        font-size: 2rem;
    }
    
    .flashcard-definition {
        font-size: 1.2rem;
    }
}

/* Part of Speech Badge Colors */
.badge.bg-secondary {
    font-weight: normal;
    font-size: 0.75rem;
}

/* Navigation Buttons */
.btn-primary {
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Accordion Styling */
.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0d6efd;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
