/* Writing Test Practice Styles (css/writing_test.css) */

.sentence-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.sentence-card.card-speaking {
    border-color: #fbbf24 !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.55);
}

.sentence-card.card-matched .sentence-card-body {
    background-color: rgba(236, 253, 245, 0.72);
}

/* Hover / press Hint reveal bar */
.hint-trigger {
    position: relative;
}

.hint-preview-text {
    opacity: 0;
    filter: blur(5px);
    transition: opacity 0.2s ease, filter 0.2s ease;
    pointer-events: none;
    user-select: none;
}

.sentence-card.hint-active .hint-preview-text,
.sentence-card.is-checked .hint-preview-text {
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
    user-select: text;
}

/* Word-by-word comparison highlights */
.diff-word-match {
    color: #065f46;
    background-color: #d1fae5;
    padding: 0 4px;
    border-radius: 4px;
}

.diff-word-miss {
    color: #991b1b;
    background-color: #fee2e2;
    padding: 0 4px;
    border-radius: 4px;
    text-decoration: underline wavy rgba(185, 28, 28, 0.55);
}

/* Writing input focus ring */
.writing-input {
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.writing-input:focus {
    outline: none;
    border-color: #172554;
    box-shadow: 0 0 0 3px rgba(23, 37, 84, 0.14);
}

/* Writing Card Left Banner: Calm warm parchment gradient with fine brown diagonal weave */
.sentence-card .left-banner-strip {
    background-color: #ebd7b2;
    background-image:
        repeating-linear-gradient(135deg,
            rgba(120, 53, 15, 0.08) 0px,
            rgba(120, 53, 15, 0.08) 2px,
            transparent 2px,
            transparent 6px),
        linear-gradient(192deg, #fffbeb 0%, #ebd7b2 55%, #ebd7b2 100%);
    background-repeat: repeat, no-repeat;
    background-size: auto, 100% 100%;
    border-right-color: rgba(217, 179, 114, 0.55);
}

.sentence-card .banner-qa-badge {
    border-color: rgba(245, 198, 92, 0.85);
    box-shadow: 0 1px 4px rgba(120, 53, 15, 0.14);
}

.sentence-card .banner-play-btn {
    box-shadow: 0 2px 6px rgba(120, 53, 15, 0.2);
}
