/* ---- Search bar ---- */

.dict-search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.dict-search-row input {
    flex: 1;
    min-width: 0;
    padding: 11px 16px;
    font-family: inherit;
    font-size: 1.05rem;
    border: 1px solid #999999;
    border-radius: 6px;
    box-sizing: border-box;
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dict-search-row input:focus {
    outline: none;
    border-color: #0004ee;
    box-shadow: 0 0 0 3px rgba(0, 0, 238, 0.1);
}

.dict-search-row button {
    padding: 11px 24px;
    font-family: inherit;
    font-size: 1rem;
    color: #000000;
    background-color: #ffffff;
    border: 1px solid #999999;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: background-color 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
}

.dict-search-row button:hover {
    background-color: #f5f5f5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dict-search-row button:active {
    transform: scale(0.97);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.dict-message {
    color: #666666;
    font-style: italic;
    margin: 10px 0 20px;
}

.dict-suggestion-btn {
    background: none;
    border: none;
    padding: 0;
    font-style: italic;
    font-family: inherit;
    font-size: inherit;
    color: #0000ee;
    text-decoration: underline;
    cursor: pointer;
}

.dict-suggestion-btn:hover {
    color: #ff0000;
}

/* ---- Word entry ---- */

.dict-entry {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid #cccccc;
}

.dict-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.dict-word-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.dict-word {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.dict-phonetic {
    font-size: 1.1rem;
    color: #555555;
}

.dict-audio-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #999999;
    border-radius: 50%;
    background-color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: background-color 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease, border-color 0.12s ease;
}

.dict-audio-btn svg {
    width: 18px;
    height: 18px;
    color: #333333;
    transition: color 0.12s ease;
}

.dict-audio-btn:hover {
    background-color: #f5f5f5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.dict-audio-btn:active {
    transform: scale(0.93);
}

.dict-audio-btn.playing {
    border-color: #0000ee;
    background-color: #eef2ff;
}

.dict-audio-btn.playing svg {
    color: #0000ee;
}

.dict-audio-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.dict-origin {
    font-style: italic;
    color: #333333;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #999999;
}

/* ---- Meanings, grouped by part of speech ---- */

.dict-meaning {
    margin-bottom: 22px;
}

.dict-meaning:last-child {
    margin-bottom: 0;
}

.dict-pos {
    display: inline-block;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #333333;
    background-color: #eef2f7;
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 12px;
}

.dict-def-list {
    margin: 0;
    padding-left: 22px;
}

.dict-def-item {
    margin-bottom: 14px;
    font-size: 1.05rem;
    line-height: 1.55;
}

.dict-def-item:last-child {
    margin-bottom: 0;
}

.dict-example {
    font-style: italic;
    color: #555555;
    margin: 4px 0 0;
    font-size: 0.98rem;
}

.dict-syn-antonym {
    font-size: 0.9rem;
    color: #333333;
    margin: 5px 0 0;
}

.dict-syn-antonym strong {
    font-weight: bold;
}

.dict-meaning-synonyms {
    font-size: 0.9rem;
    color: #333333;
    margin: 10px 0 0;
}

/* ---- Source attribution ---- */

.dict-source {
    font-size: 0.8rem;
    color: #888888;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed #cccccc;
}

.dict-source a {
    color: #0000ee;
    text-decoration: underline;
}

.dict-source a:visited {
    color: #660099;
}

/* ---- Mobile ---- */

@media (max-width: 700px) {
    .dict-search-row {
        flex-direction: column;
    }

    .dict-search-row button {
        width: 100%;
    }

    .dict-word {
        font-size: 1.6rem;
    }

    .dict-def-item {
        font-size: 1rem;
    }
}




/* ---- Unsplash widget additions (reuses .art-widget etc. for everything else) ---- */

.unsplash-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
}

.unsplash-download-btn {
    padding: 6px 16px;
    font-family: inherit;
    font-size: 0.85rem;
    color: #000000;
    background-color: #ffffff;
    border: 1px solid #999999;
    cursor: pointer;
}

.unsplash-download-btn:hover {
    background-color: #f2f2f2;
}

.unsplash-download-btn:disabled {
    opacity: 0.5;
    cursor: default;
}
