/* ============================================
   SINGLE DICTIONARY 
   ============================================ */

.dict-single { padding: 0 0 60px; background: #fafafa; }

.dict-single .container { max-width: 750px; margin: 0 auto; padding: 0 16px; }

/* ============================================
   WORD HEADER
   ============================================ */
.word-header {
    background: white;
    margin: 0 -16px;
    padding: 40px 24px 32px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 0;
}

.word-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.word-title {
    font-family: var(--font-ewe);
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.audio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f0f4ff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}
.audio-btn:hover { background: #d2e3fc; transform: scale(1.1); }

.word-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.word-pronunciation {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

.word-tone-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.word-cat-link {
    display: inline-block;
    padding: 4px 12px;
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
}
.word-cat-link:hover { background: #d2e3fc; }

.word-dialect {
    font-size: 0.85rem;
    color: #888;
}

/* ============================================
   MEANINGS SECTION
   ============================================ */
.meanings-section {
    padding: 32px 0;
}

.meaning-block {
    display: flex;
    gap: 20px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 28px 24px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}
.meaning-block:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.04); }

.meaning-number-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #1a1a2e;
    color: #ffd700;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.meaning-content { flex: 1; }

.meaning-ewe-word {
    font-family: var(--font-ewe);
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.meaning-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.meta-pron {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.meta-tone {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.meta-context {
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #555;
}

/* Translations */
.meaning-translations {
    margin-bottom: 16px;
}

.trans-block {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    align-items: baseline;
}

.trans-lang {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    min-width: 65px;
}

.trans-text {
    font-size: 1.08rem;
    color: #333;
    line-height: 1.4;
}

/* Examples */
.meaning-examples {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px 20px;
    border-left: 3px solid #1a73e8;
}

.examples-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 10px;
}

.example-item { margin-bottom: 6px; }
.example-item:last-child { margin-bottom: 0; }

.example-ewe {
    font-family: var(--font-ewe);
    font-size: 1rem;
    color: #1a1a2e;
    line-height: 1.5;
}

.example-translations {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    padding-left: 0;
}

.example-fr {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    line-height: 1.5;
}

.example-en {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    line-height: 1.5;
}

/* ============================================
   ENTRY FOOTER INFO
   ============================================ */
.entry-footer-info {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    align-items: baseline;
}
.info-row + .info-row { border-top: 1px solid #f0f0f0; }

.info-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    min-width: 60px;
}

.info-value { font-size: 0.9rem; color: #333; }

.tag-link {
    display: inline-block;
    padding: 2px 8px;
    background: #f0f4ff;
    color: #1a73e8;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    margin-right: 6px;
}
.tag-link:hover { background: #d2e3fc; }

/* ============================================
   NAVIGATION
   ============================================ */
.word-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 32px;
}

.nav-left a,
.nav-right a {
    font-size: 0.9rem;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}
.nav-left a:hover,
.nav-right a:hover { text-decoration: underline; }

.nav-right { text-align: right; }

.nav-center { text-align: center; }

.nav-all {
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
}
.nav-all:hover { border-color: #1a73e8; color: #1a73e8; }

/* ============================================
   RELATED WORDS
   ============================================ */
.related-section { margin-top: 16px; }

.related-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.related-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s;
}
.related-card:hover { border-color: #1a73e8; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }

.rel-word { font-family: var(--font-ewe); font-size: 1.05rem; color: #1a1a2e; font-weight: 600; margin-bottom: 4px; }
.rel-eng { font-size: 0.8rem; color: #555; margin-bottom: 4px; }
.rel-tone { font-size: 0.65rem; font-weight: 600; padding: 1px 6px; border-radius: 3px; align-self: flex-start; }

/* ============================================
   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; }
.tone-high-low,
.tone-low-high { background: #ede7f6; color: #4527a0; }

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 768px) {
    .word-header { padding: 28px 16px 24px; margin: 0 -16px; }
    .word-title { font-size: 2rem; }
    .word-title-row { gap: 10px; }
    .audio-btn { width: 38px; height: 38px; font-size: 1rem; }
    
    .meaning-block { flex-direction: column; gap: 12px; padding: 20px 16px; }
    .meaning-number-circle { align-self: flex-start; }
    
    .word-navigation { grid-template-columns: 1fr; text-align: center; gap: 8px; }
    .nav-left, .nav-right { text-align: center; }
    
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .word-title { font-size: 1.6rem; }
    .word-pronunciation { font-size: 0.95rem; }
    .word-meta-row { gap: 8px; }
    .related-grid { grid-template-columns: 1fr; }
}


/* ============================================
   REPORT ERROR LINK
   ============================================ */

.report-error-section {
    margin: 24px 0;
    text-align: center;
}

.report-error-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #fff8e1;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    color: #e65100;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.report-error-link:hover {
    background: #fff3e0;
    border-color: #ffcc80;
    color: #bf360c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.meta-audio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f0f4ff;
    border: 1px solid #d0d8f0;
    border-radius: 50%;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
}
.meta-audio-btn:hover {
    background: #d2e3fc;
    transform: scale(1.1);
}