/* Word Detail Styles */

.word-detail-card {
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    border: none;
    padding: 2rem;
}

.word-main h1 {
    font-size: 3.5rem;
    /* Large Thai Text */
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #0F172A;
}

@media (max-width: 768px) {
    .word-main h1 {
        font-size: 2.5rem;
    }
}

.word-romanization .romanization {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.25rem;
    font-family: var(--font-family-romanization);
}

.word-romanization .ipa {
    color: #64748B;
    margin-left: 0.5rem;
}

.tone-info {
    font-family: monospace;
    color: #475569;
}

/* Audio Speed Buttons */
.audio-speed-btn {
    position: relative;
    transition: all 0.2s;
}

.audio-speed-btn .slow-label {
    font-size: 0.6rem;
    font-weight: 700;
    position: absolute;
    bottom: 4px;
    right: 6px;
    line-height: 1;
    color: #64748B;
}

.audio-speed-btn .bi-play-fill {
    font-size: 1.1rem;
}

.audio-speed-btn.playing {
    background: var(--color-primary, #0D9488) !important;
    color: white !important;
}

.audio-speed-btn.playing .slow-label {
    color: white;
}

.audio-speed-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.audio-speed-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.audio-speed-btn.no-audio {
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* Action Buttons */
.btn-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: #F1F5F9;
    border: none;
    border-radius: 0.5rem;
    transition: background 0.2s;
    color: #334155;
    text-decoration: none;
}

.btn-icon:hover {
    background: #E2E8F0;
    color: #0F172A;
}

/* Sections */
.definition-main {
    font-size: 1.25rem;
    color: #134E4A;
}

.definition-extended,
.word-usage p,
.word-cultural p {
    color: #475569;
    line-height: 1.7;
}

.word-usage,
.word-cultural {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E2E8F0;
}

h3 {
    font-size: 0.875rem;
    color: #64748B;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Examples */
.example-card {
    background: #FFFBF7;
    padding: 1.25rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--color-primary);
    margin-bottom: 1rem;
}

.example-card .thai-text {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    display: block;
}

.example-card .romanization {
    color: #64748B;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    display: block;
}

.related-card {
    display: block;
    background: white;
    border: 1px solid #E2E8F0;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.related-card:hover {
    border-color: var(--color-primary);
    background: #F0FDFA;
    /* primary-50 approx */
    text-decoration: none;
}

.mnemonic-card {
    border: 1px solid #E2E8F0;
    padding: 1.25rem;
    border-radius: 0.5rem;
}

/* Word Meta Badge Alignment */
.word-meta .badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    line-height: 1;
}

/* Tag Link Hover Effects */
.tag-link .badge {
    transition: all 0.2s ease;
    transform: translateY(0);
}

.tag-link:hover .badge {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    filter: brightness(1.1);
}

/* Lesson Card Hover Effects */
.lesson-card {
    transition: all 0.2s ease;
    display: block;
}

.lesson-card .card {
    transition: all 0.2s ease;
}

.lesson-card:hover .card {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.lesson-card:hover {
    text-decoration: none;
}
