/*
 * popup.css
 * The window that opens when you click the bee on the toolbar
 * (also used as the full "My words" page).
 */

body
{
    width: 360px;
    margin: 0;
    padding: 12px 14px 14px;
    background: #f4efe3;
    color: #2b2620;
    font: 14px/1.35 "Segoe UI", system-ui, sans-serif;
}

/* Full-page version (opened from the right-click menu or "Open in a full page") */
body.page
{
    width: auto;
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 16px;
}

.bar
{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.bar img
{
    width: 44px;
    height: 44px;
}

.title
{
    font-size: 17px;
    font-weight: 700;
}

.stats
{
    color: #6b604f;
    font-size: 13px;
}

.quiz-button
{
    width: 100%;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    padding: 10px;
    border: 1px solid #b9861a;
    border-radius: 10px;
    background: #f5b82e;
    color: #2b2620;
    cursor: pointer;
}

.quiz-button:hover
{
    filter: brightness(0.96);
}

h2
{
    margin: 14px 0 6px;
    font-size: 14px;
}

.hint
{
    font-weight: 400;
    color: #6b604f;
    font-size: 12px;
}

.words
{
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 320px;
    overflow: auto;
}

body.page .words
{
    max-height: none;
}

.word-row
{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #d8c79c;
    border-radius: 10px;
    background: #fffaf0;
}

.word-main
{
    flex: 1;
    min-width: 0;
}

.word
{
    font-size: 16px;
    font-weight: 700;
}

.typed
{
    font-size: 12px;
    color: #a33;
}

.sentence
{
    font-size: 12px;
    color: #6b604f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.misses
{
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: #2b2620;
    color: #f5b82e;
}

.forget
{
    border: none;
    background: transparent;
    color: #8a7d68;
    font-size: 15px;
    cursor: pointer;
    border-radius: 6px;
    padding: 2px 6px;
}

.forget:hover
{
    background: rgba(0, 0, 0, 0.08);
}

.dictionary
{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.dictionary-word
{
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 4px 2px 10px;
    border: 1px solid #d8c79c;
    border-radius: 999px;
    background: #fffaf0;
    font-size: 13px;
}

.dictionary .empty
{
    width: 100%;
    padding: 8px;
    font-size: 12px;
}

.empty
{
    padding: 14px;
    text-align: center;
    color: #6b604f;
    border: 1px dashed #d8c79c;
    border-radius: 10px;
}

.footer-links
{
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
}

a
{
    color: #8a5a00;
}

a.danger
{
    color: #a33;
}

.settings
{
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #d8c79c;
    font-size: 13px;
    color: #6b604f;
}

.settings select
{
    font: inherit;
    margin-left: 4px;
}

.voice-row
{
    margin-top: 0;
    padding-top: 4px;
    border-top: none;
}

.voice-row select
{
    max-width: 260px;
}

.voice-tip
{
    font-size: 12px;
    color: #8a5a00;
    margin-top: 2px;
}
