/* teacher/missed-questions — öğrenci × ders özeti + galeri */

.mq-view .mq-hero-panel {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(15, 118, 110, 0.12), transparent 48%),
        radial-gradient(ellipse at 0% 100%, rgba(79, 70, 229, 0.08), transparent 42%),
        #fff;
}

.mq-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.mq-panel-sub {
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.4;
}

.mq-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.mq-panel-head h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.mq-summary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.mq-summary-pill {
    font-size: 0.625rem;
    font-weight: 800;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    white-space: nowrap;
}

.mq-summary-pill.is-warn {
    border-color: #fcd34d;
    background: #fffbeb;
    color: #b45309;
}

.mq-summary-pill.is-ok {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}

.mq-filter-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mq-filter-student {
    border: 1px solid #c7d2fe;
    border-radius: 1rem;
    padding: 0.7rem 0.75rem;
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
}

.mq-filter-label {
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.mq-filter-student .mq-filter-label {
    color: #4338ca;
}

.mq-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.mq-student-chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.mq-student-chip-row::-webkit-scrollbar {
    height: 4px;
}

.mq-chip {
    font-size: 0.625rem;
    font-weight: 800;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    color: #64748b;
    background: #fff;
    transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.mq-chip:hover {
    border-color: #cbd5e1;
    color: #334155;
}

.mq-chip.is-active-subject {
    border-color: #4f46e5;
    background: #eef2ff;
    color: #4338ca;
}

.mq-chip.is-active-status {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #b45309;
}

.mq-chip.is-active-student {
    border-color: #0f766e;
    background: #ccfbf1;
    color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.mq-chip-badge {
    font-style: normal;
    font-size: 0.55rem;
    font-weight: 900;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: #f59e0b;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mq-chip.is-active-student .mq-chip-badge {
    background: #0f766e;
}

@media (max-width: 1023px) {
    .mq-chip-row:not(.mq-student-chip-row) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
    }
    .mq-chip-row:not(.mq-student-chip-row) .mq-chip {
        width: 100%;
        text-align: center;
        justify-content: center;
        font-size: 0.72rem;
        padding: 0.55rem 0.5rem;
        border-radius: 0.75rem;
        min-height: 2.4rem;
    }
    .mq-filter-block:not(.mq-filter-student) {
        border: 1px solid #e2e8f0;
        border-radius: 1rem;
        padding: 0.65rem 0.7rem;
        background: #f8fafc;
    }
    .mq-student-chip-row {
        display: flex;
        grid-template-columns: none;
    }
    .mq-student-chip-row .mq-chip {
        width: auto;
        min-height: 2.15rem;
        font-size: 0.7rem;
        border-radius: 999px;
    }
}

.mq-active-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.875rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #475569;
}

.mq-active-filter button {
    font-size: 0.625rem;
    font-weight: 800;
    color: #64748b;
    padding: 0.2rem 0.45rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background: #fff;
}

.mq-roster-head,
.mq-gallery-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.mq-roster-head h3,
.mq-gallery-head h3 {
    font-size: 0.875rem;
    font-weight: 800;
    color: #1e293b;
}

.mq-roster-reset {
    font-size: 0.625rem;
    font-weight: 800;
    color: #4f46e5;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    align-self: flex-start;
}

.mq-student-roster {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mq-roster-empty,
.mq-gallery-empty {
    margin: 0;
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
}

.mq-student-card {
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.mq-student-card.is-selected {
    border-color: #818cf8;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15), 0 8px 24px rgba(15, 23, 42, 0.06);
}

.mq-student-card-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.mq-student-card-head::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.22), transparent 42%),
        radial-gradient(circle at 10% 90%, rgba(0, 0, 0, 0.1), transparent 45%);
    pointer-events: none;
}

.mq-student-card-head > * {
    position: relative;
    z-index: 1;
}

.mq-grade-5.mq-student-card-head,
.mq-grade-5.mq-gallery-card-head {
    background: linear-gradient(145deg, #0284c7 0%, #4f46e5 100%);
}

.mq-grade-6.mq-student-card-head,
.mq-grade-6.mq-gallery-card-head {
    background: linear-gradient(145deg, #059669 0%, #0d9488 100%);
}

.mq-grade-7.mq-student-card-head,
.mq-grade-7.mq-gallery-card-head {
    background: linear-gradient(145deg, #d97706 0%, #ea580c 100%);
}

.mq-grade-8.mq-student-card-head,
.mq-grade-8.mq-gallery-card-head {
    background: linear-gradient(145deg, #7c3aed 0%, #db2777 100%);
}

.mq-grade-default.mq-student-card-head,
.mq-grade-default.mq-gallery-card-head {
    background: linear-gradient(145deg, #475569 0%, #334155 100%);
}

.mq-student-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mq-student-ident {
    min-width: 0;
    flex: 1;
}

.mq-student-name {
    font-size: 0.8125rem;
    font-weight: 900;
    color: #fff;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mq-student-meta {
    font-size: 0.625rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
}

.mq-student-total {
    text-align: right;
    flex-shrink: 0;
}

.mq-student-total strong {
    display: block;
    font-size: 1rem;
    font-weight: 900;
    color: #fbbf24;
    line-height: 1.1;
}

.mq-student-total span {
    font-size: 0.5625rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
}

.mq-student-total.is-clear strong {
    color: #34d399;
}

.mq-subject-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.65rem;
}

@media (min-width: 640px) {
    .mq-subject-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .mq-subject-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.mq-subject-tile {
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    padding: 0.5rem 0.45rem;
    text-align: left;
    background: #f8fafc;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    min-height: 4.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mq-subject-tile:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.mq-subject-tile.is-active {
    border-color: var(--mq-subj-color, #6366f1);
    background: color-mix(in srgb, var(--mq-subj-color, #6366f1) 8%, #fff);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--mq-subj-color, #6366f1) 25%, transparent);
}

.mq-subject-tile.is-empty {
    opacity: 0.72;
}

.mq-subject-tile-label {
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--mq-subj-color, #64748b);
    line-height: 1.2;
}

.mq-subject-tile-counts {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.mq-count-badge {
    font-size: 0.5625rem;
    font-weight: 800;
    padding: 0.15rem 0.35rem;
    border-radius: 0.35rem;
    line-height: 1.2;
}

.mq-count-badge.is-open {
    background: #fef3c7;
    color: #b45309;
}

.mq-count-badge.is-done {
    background: #d1fae5;
    color: #047857;
}

.mq-count-badge.is-zero {
    background: #f1f5f9;
    color: #94a3b8;
}

.mq-roster-empty {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.75rem;
    color: #94a3b8;
    font-style: italic;
}

.mq-gallery-count {
    font-size: 0.625rem;
    font-weight: 800;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
}

.mq-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .mq-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .mq-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.mq-gallery-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.mq-gallery-card-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.mq-gallery-card-head::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.18), transparent 50%);
    pointer-events: none;
}

.mq-gallery-card-head > * {
    position: relative;
    z-index: 1;
}

.mq-gallery-card-head .mq-subj-pill {
    margin-left: auto;
    font-size: 0.5625rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
}

.mq-gallery-thumb {
    display: block;
    width: 100%;
    height: 9rem;
    background: #f1f5f9;
    overflow: hidden;
}

.mq-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.mq-gallery-thumb:hover img {
    transform: scale(1.04);
}

.mq-gallery-card-body {
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: #f8fafc;
}

.mq-gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5rem 1rem;
    font-size: 0.75rem;
    color: #94a3b8;
    font-style: italic;
    border: 1px dashed #e2e8f0;
    border-radius: 1rem;
    background: #fafafa;
}
