/* 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: var(--ink);
}

@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: var(--ink-faint);
    margin-left: 0.5rem;
    cursor: help;
}

.tone-info {
    font-family: monospace;
    color: var(--ink-muted);
}

/* Audio Speed Buttons.
   The circle itself is the shared `.action-circle` control (assets/css/tailwind/
   input.css): white with a slate border and glyph, a slate wash on hover, and
   emerald + a pulsing ring while playing. Only the JS-driven states and the
   "½" label live here — the gold hover that used to override the circle is
   gone, so the button reads like every other control on the page. */
.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: var(--ink-faint);
}

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

.audio-speed-btn:hover .slow-label {
    color: var(--ink-label);
}

.audio-speed-btn.playing .slow-label {
    color: var(--color-primary);
}

.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 */
.ui-btn-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--surface-hover);
    border: none;
    border-radius: 0.5rem;
    transition: background 0.2s;
    color: var(--ink-label);
    text-decoration: none;
}

.ui-btn-icon:hover {
    background: var(--surface-active);
    color: var(--ink);
}

/* Sections */
.definition-main {
    font-size: 1.25rem;
    color: var(--ink);
}

.definition-extended,
.word-usage p,
.word-cultural p {
    color: var(--ink-muted);
    line-height: 1.7;
}

.word-usage,
.word-cultural {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

h3 {
    font-size: 0.875rem;
    color: var(--ink-faint);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Examples */


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

.example-card .romanization {
    color: var(--ink-faint);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    display: block;
}







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

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

.tag-link:hover .ui-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 .ui-card {
    transition: all 0.2s ease;
}

.lesson-card:hover .ui-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;
}
