/* =========================
   PROFILE — PHRASEBOOK GRID (profile index tab)
   ========================= */

.phrasebookFlag img{
    display: inline-block !important;
    height: 30px;
    width: 30px;
    border: none !important;
    margin-right :10px;
}

/* --- grid container for desktop --- */
.phraseGroupGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* --- individual phrase card --- */
.phraseCard {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    transition: box-shadow .2s ease;
}

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

/* --- text area --- */

.phraseGroupHeading {
    border-bottom: 1px solid black;
}

.phraseTexts {
    margin-bottom: 0.5rem;
}

.phraseTexts .sourceLanguage {
    font-weight: 600;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
    color: rgb(21, 108, 21);
}

.translatedLanguage {
    font-style: italic;
    color: #333;
    word-wrap: break-word;
}

/* --- button row --- */
.phraseActions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: .75rem;
    /* max-width: 135px; */
}

.removePhraseBtn {
    margin-right: auto;
}

.phraseActions button,
.phraseActions a {
    border: none;
    background: #f4f4f4;
    padding: .35rem .55rem;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    color: #111;
    font-size: 1.5rem;
    line-height: 1;
    transition: background .2s;
}

.phraseActions button:hover,
.phraseActions a:hover {
    background: #e0e0e0;
}

/* icons */
.removePhraseBtn {
    color: #e11;
}

.playButton {
    color: #1976d2;
}

/* responsive tweaks */
@media (max-width: 768px) {
    .phraseGroupGrid {
        grid-template-columns: 1fr;
    }
}