/* Wordbank Flashcards Styles */

.wordbank-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
    max-width: 100%;
}

.flashcard {
    width: 100%;
    height: 360px;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.flashcard:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.flashcard-front, .flashcard-back {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.flashcard-front img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.flashcard-word-jp {
    position: relative;
    z-index: 2;
    font-size: 28px;
    font-weight: bold;
    color: #1a202c;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    margin: 0 15px 15px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.flashcard-audio-btn {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(44, 82, 130, 0.1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    position: relative;
}

.flashcard-audio-btn img {
    width: 16px;
    height: 16px;
    display: block;
    pointer-events: none;
    position: static !important;
    object-fit: none !important;
}

.flashcard-audio-btn svg {
    fill: #2c5282;
    transition: fill 0.2s ease;
    pointer-events: none;
}

.flashcard-audio-btn:hover {
    background: rgba(44, 82, 130, 0.2);
    transform: scale(1.1);
}

.flashcard-audio-btn:hover svg {
    fill: #1a365d;
}

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

.flashcard-back {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 20px;
    overflow-y: auto;
    justify-content: flex-start;
    align-items: flex-start;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.flashcard-word-en {
    font-size: 24px;
    font-weight: bold;
    color: #2c5282;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
    word-wrap: break-word;
    box-sizing: border-box;
}

.flashcard-examples-label {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
}

.flashcard-examples {
    font-size: 14px;
    color: #2d3748;
    text-align: left;
    padding-left: 20px;
    margin: 0;
    list-style-type: disc;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.flashcard-examples li {
    margin-bottom: 10px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}
