/* =========================
   ОБРАТНА ВРЪЗКА ОТ УЧИТЕЛИ
   Споделен блок за уроците и PDF ресурсите.
   Цветовете се вземат от палитрата на страницата
   (уроци: --color-*, оферти: --oferta-*, медальон: --paper/--green),
   а при липса – от основната палитра на EduMathLab.
========================== */

.teacher-feedback {
    --tf-accent: var(--color-primary, var(--oferta-green, var(--oferta-purple, var(--green, #0f8f72))));
    --tf-surface: var(--color-surface, var(--oferta-surface, var(--paper-light, #ffffff)));
    --tf-text: var(--color-text, var(--oferta-text, var(--ink, #18212b)));
    --tf-text-soft: var(--color-text-soft, var(--oferta-text-soft, #617080));
    --tf-border: var(--color-border, var(--oferta-border, var(--border, #dfe6ec)));

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin: 32px 0 0;
    padding: 18px 22px;
    border: 1px solid var(--tf-border);
    border-left: 4px solid var(--tf-accent);
    border-radius: 18px;
    background: var(--tf-surface);
    color: var(--tf-text);
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
    line-height: 1.5;
}

.teacher-feedback-text {
    min-width: 0;
}

.teacher-feedback .teacher-feedback-title {
    margin: 0 0 4px;
    color: var(--tf-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.teacher-feedback .teacher-feedback-description {
    margin: 0;
    color: var(--tf-text-soft);
    font-size: 0.93rem;
}

.teacher-feedback .teacher-feedback-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid var(--tf-accent);
    border-radius: 999px;
    background: transparent;
    color: var(--tf-accent);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.teacher-feedback .teacher-feedback-button:hover,
.teacher-feedback .teacher-feedback-button:focus-visible {
    background: var(--tf-accent);
    color: #ffffff;
}

.teacher-feedback .teacher-feedback-button:focus-visible {
    outline: 3px solid var(--tf-accent);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .teacher-feedback {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .teacher-feedback .teacher-feedback-button {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}

@media print {
    .teacher-feedback {
        display: none !important;
    }
}
