/* ================================================================
   dictionary.css
   Shared styles for Sanskrit / Marathi / Hindi dictionary pages.
   Covers both search pages (*-dictionary.html) and word pages (*_word.html).
   ================================================================ */

/* ── Google Fonts (Devanagari) ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600&display=swap');

/* ── Devanagari font helper ────────────────────────────────── */
.dict-devanagari {
    font-family: 'Noto Sans Devanagari', 'Arial', sans-serif;
}

/* ================================================================
   PAGE HEADER BANNER
   ================================================================ */
.dict-page-header {
    background: transparent;
    border-bottom: 2px solid rgba(250,129,47,0.4);
    padding: 18px 20px 14px;
    text-align: center;
}
.dict-page-header h1 {
    font-family: Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #FA812F;
    margin: 0 0 4px;
}
.dict-page-header p {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    margin: 0;
}

/* ================================================================
   FORM INPUTS
   ================================================================ */
.dict-input {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(250,129,47,0.4) !important;
    border-radius: 4px !important;
    color: white !important;
    font-family: 'Noto Sans Devanagari', 'Arial', sans-serif;
    font-size: 15px;
}
.dict-input::placeholder {
    color: rgba(255,255,255,0.45) !important;
}
.dict-input:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(250,129,47,0.5) !important;
    border-color: #FA812F !important;
    background: rgba(255,255,255,0.12) !important;
}
.dict-input option {
    background: #1a0a00;
    color: white;
}

/* Filter radio / checkbox labels */
.dict-filter-label {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    cursor: pointer;
}
.dict-filter-label input {
    cursor: pointer;
    accent-color: #FA812F;
}

/* ================================================================
   TYPEAHEAD SUGGESTION DROPDOWN
   ================================================================ */
.dict-suggestions {
    position: absolute;
    z-index: 1050;
    width: 100%;
    background: #1C0D00;
    border: 1px solid rgba(250,129,47,0.5);
    border-radius: 4px;
    max-height: 260px;
    overflow-y: auto;
    left: 0;
    top: calc(100% + 2px);
}
.dict-suggestion-item {
    padding: 8px 14px;
    cursor: pointer;
    font-family: 'Noto Sans Devanagari', sans-serif;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 14px;
    transition: background 0.15s;
}
.dict-suggestion-item:hover,
.dict-suggestion-item.active {
    background: rgba(250,129,47,0.25);
}
.dict-suggestion-meaning {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-left: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* ================================================================
   ADVANCED OPTIONS (Marathi only)
   ================================================================ */
.dict-advanced-toggle {
    color: rgba(250,129,47,0.85);
    font-size: 13px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 4px 0;
    text-decoration: none;
}
.dict-advanced-toggle:hover {
    color: #FA812F;
    text-decoration: none;
}
.dict-advanced-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(250,129,47,0.15);
    border-radius: 4px;
    padding: 12px 16px;
    margin-top: 10px;
}
.dict-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(250,129,47,0.2);
    border-radius: 20px;
    padding: 3px 10px;
    margin: 3px;
    cursor: pointer;
    transition: all .15s;
}
.dict-filter-chip:hover {
    background: rgba(250,129,47,0.15);
}
.dict-filter-chip input[type=checkbox] {
    accent-color: #FA812F;
    cursor: pointer;
}
.dict-filter-chip label {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    margin: 0;
}
.dict-filter-chip.active {
    background: rgba(250,129,47,0.2);
    border-color: rgba(250,129,47,0.5);
}

/* ================================================================
   RESULT WORD CARDS
   ================================================================ */
.dict-word-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(250,129,47,0.25);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}
.dict-word-card:hover {
    border-color: rgba(250,129,47,0.55);
}
.dict-word-card-header {
    background: linear-gradient(90deg, rgba(250,129,47,0.18) 0%, rgba(255,97,56,0.08) 100%);
    border-bottom: 1px solid rgba(250,129,47,0.2);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* Word heading — search results size */
.dict-word-primary {
    font-family: 'Noto Sans Devanagari', 'Arial', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #FA812F;
    text-decoration: none;
}
.dict-word-primary:hover {
    color: #ffaa6e;
    text-decoration: none;
}

/* Word heading — individual word page (larger) */
.dict-word-primary-lg {
    font-family: 'Noto Sans Devanagari', 'Arial', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #FA812F;
}

.dict-word-alt {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
}
.dict-type-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-style: italic;
}
.dict-badge-vakpra {
    background: linear-gradient(45deg, #FA812F, #FF6138);
    color: white;
    border-radius: 3px;
    font-size: 11px;
    padding: 2px 7px;
}

/* Like / comment icon buttons */
.dict-icon-btn {
    border: none;
    background: transparent;
    color: rgba(250,129,47,0.7);
    font-size: 0.95rem;
    padding: 2px 6px;
    cursor: pointer;
    transition: color 0.15s;
}
.dict-icon-btn:hover {
    color: #FA812F;
}
.dict-like-count {
    font-size: 0.85rem;
    color: #FA812F;
    font-weight: 500;
}

/* ================================================================
   CARD BODY — MEANING ROWS
   ================================================================ */
.dict-word-card-body {
    padding: 12px 16px;
}
.dict-meaning-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin-bottom: 7px;
    font-size: 15px;
}
.dict-meaning-label {
    font-weight: 600;
    min-width: 160px;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    flex-shrink: 0;
}
.dict-meaning-value {
    font-family: 'Noto Sans Devanagari', 'Arial', sans-serif;
    color: rgba(255,255,255,0.9);
}
.dict-transliteral-val {
    color: rgba(255,255,255,0.55);
    font-style: italic;
}

/* Detail rows — samasa, sandhi, example (Marathi / Hindi) */
.dict-detail-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin-bottom: 5px;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 6px;
}

/* ================================================================
   ALERTS AND BARS
   ================================================================ */
.dict-noresult-bar {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(250,129,47,0.3);
    border-radius: 6px;
    padding: 18px 20px;
    color: rgba(255,255,255,0.8);
    text-align: center;
}
.dict-suggest-bar {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(250,129,47,0.2);
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-family: 'Noto Sans Devanagari', sans-serif;
    color: rgba(255,255,255,0.75);
    margin-top: 10px;
}
.dict-english-header {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    border-left: 3px solid #FA812F;
    padding-left: 10px;
    margin-bottom: 14px;
}

/* ================================================================
   BREADCRUMB (word pages)
   ================================================================ */
.dict-breadcrumb {
    background: transparent;
    padding: 6px 0;
    margin-bottom: 14px;
    font-size: 13px;
}
.dict-breadcrumb a {
    color: rgba(250,129,47,0.8);
}
.dict-breadcrumb a:hover {
    color: #FA812F;
}
.dict-breadcrumb .active {
    color: rgba(255,255,255,0.5);
}

/* ================================================================
   FUZZY MATCH WORD LINKS (word pages)
   ================================================================ */
.dict-fuzzy-word {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #FA812F;
    text-decoration: none;
}
.dict-fuzzy-word:hover {
    color: #ffaa6e;
    text-decoration: none;
}

/* ================================================================
   LETTER QUICK-NAV PANEL
   ================================================================ */
.dict-letters-panel {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 12px 0;
    text-align: center;
    margin-top: 16px;
}
.dict-letters-panel strong {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.dict-letter-btn {
    display: inline-block;
    padding: 3px 9px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(250,129,47,0.3);
    border-radius: 3px;
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: all .15s;
    margin: 2px;
}
.dict-letter-btn:hover {
    background: linear-gradient(45deg, #FA812F, #FF6138);
    color: white;
    text-decoration: none;
    border-color: transparent;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 576px) {
    .dict-page-header h1     { font-size: 1.3rem; }
    .dict-word-primary       { font-size: 1.1rem; }
    .dict-word-primary-lg    { font-size: 1.35rem; }
    .dict-meaning-label      { min-width: 90px; }
}