/* ============================================
   DICTIONARY ARCHIVE
   ============================================ */

.dict-archive { background: #fafafa; }

/* Archive Header */
.dict-archive .archive-header {
    background: #1a1a2e;
    padding: 32px 16px;
    text-align: center;
    margin-bottom: 32px;
}

.dict-archive .archive-title {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 24px;
    font-weight: 600;
}

/* Alphabet Bar */
.alphabet-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
}

.alpha-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}
.alpha-link:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}
.alpha-link.active {
    background: #d4a017;
    color: #111;
    border-color: #d4a017;
}
.alpha-link:first-child {
    width: auto;
    padding: 0 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Archive Search */
.archive-search-bar {
    max-width: 400px;
    margin: 0 auto;
}
.archive-search-bar form {
    display: flex;
}
.archive-search-bar input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px 0 0 6px;
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 0.9rem;
    font-family: inherit;
}
.archive-search-bar input::placeholder { color: rgba(255,255,255,0.4); }
.archive-search-bar input:focus { outline: none; border-color: #d4a017; }
.archive-search-bar button {
    padding: 10px 16px;
    background: #d4a017;
    border: none;
    border-radius: 0 6px 6px 0;
    color: #111;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

/* ============================================
   ENTRIES TABLE
   ============================================ */

.entries-table {
    background: white;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    margin-bottom: 32px;
}

.entry-row {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.1s;
}
.entry-row:last-child { border-bottom: none; }
.entry-row:hover { background: #f8f9ff; }

.entry-row-link {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    text-decoration: none;
    gap: 24px;
}

.entry-col-word {
    flex: 0 0 200px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.entry-word {
    font-family: var(--font-ewe);
    font-size: 1.1rem;
    color: #1a1a2e;
    font-weight: 600;
}
.entry-pron {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

.entry-col-trans {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.entry-eng { font-size: 0.95rem; color: #333; }
.entry-fr { font-size: 0.85rem; color: #888; }

.entry-col-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.entry-cat {
    padding: 3px 10px;
    background: #f0f4ff;
    color: #1a73e8;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.entry-tone {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.entry-dialect {
    font-size: 0.8rem;
    color: #999;
}

/* ============================================
   TONE COLORS
   ============================================ */
.tone-high { background: #e8f5e9; color: #2e7d32; }
.tone-mid { background: #fff8e1; color: #f57f17; }
.tone-low { background: #fce4ec; color: #c62828; }
.tone-rising { background: #e3f2fd; color: #1565c0; }
.tone-falling { background: #f3e5f5; color: #7b1fa2; }

/* No Results */
.no-results { text-align: center; padding: 48px; }
.no-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; opacity: 0.5; }
.no-results h2 { font-size: 1.25rem; color: #333; margin-bottom: 8px; }
.no-results p { color: #888; }

/* Pagination */
.pagination { text-align: center; margin-bottom: 40px; }
.page-numbers { display: inline-flex; gap: 4px; }
.page-numbers span,
.page-numbers a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #333;
    font-size: 0.9rem;
    text-decoration: none;
}
.page-numbers .current {
    background: #1a1a2e;
    color: white;
    border-color: #1a1a2e;
}
.page-numbers a:hover { border-color: #d4a017; }

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 768px) {
    .archive-title { font-size: 1.2rem; }
    .alpha-link { width: 30px; height: 30px; font-size: 0.75rem; }
    
    .entry-row-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 16px;
    }
    .entry-col-word { flex: none; }
    .entry-col-meta { flex-wrap: wrap; }
}