/* Eduplayify Student Hint & Step-by-Step Solution UI */
.gp-hint-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 10px;
}

.gp-hint-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #92400e;
    background: #fef3c7;
    border: 1.5px solid #fcd34d;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.gp-hint-btn:hover,
.gp-hint-btn:focus-visible {
    background: #fde68a;
    border-color: #f59e0b;
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

.gp-hint-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.58);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gp-hint-modal-dialog {
    width: 100%;
    max-width: 620px;
    max-height: 86vh;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: start;
}

.gp-hint-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.gp-hint-modal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.gp-hint-modal-close {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #475569;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gp-hint-modal-close:hover,
.gp-hint-modal-close:focus-visible {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
    outline: 2px solid #f59e0b;
    outline-offset: 1px;
}

.gp-hint-modal-body {
    padding: 14px 16px;
    overflow-y: auto;
    flex: 1;
}

.gp-hint-drawer {
    margin: 10px 0 14px;
    text-align: start;
}

.gp-hint-card,
.gp-solution-card {
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
    border-radius: 12px;
    padding: 12px 14px;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}

.gp-solution-card {
    margin-top: 10px;
    background: #f0f9ff;
    border-color: #bae6fd;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.08);
}

.gp-hint-card-title {
    font-weight: 800;
    font-size: 0.92rem;
    color: #92400e;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.gp-solution-card .gp-hint-card-title {
    color: #0369a1;
}

.gp-hint-text {
    font-size: 0.96rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.gp-hint-img {
    display: block;
    max-width: 100%;
    max-height: 220px;
    margin-top: 8px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    object-fit: contain;
}

.gp-hint-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.gp-hint-sim-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #0369a1;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    border-radius: 8px;
    text-decoration: none;
}

.gp-hint-sim-link:hover {
    background: #bae6fd;
}

.gp-solution-steps-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.gp-solution-step {
    background: #fff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 9px 12px;
}

.gp-solution-step-num {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0284c7;
    margin-bottom: 3px;
}

.gp-solution-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.gp-hint-error {
    color: #b91c1c;
    font-size: 0.86rem;
    font-weight: 700;
}

@media (max-width: 520px) {
    .gp-hint-card,
    .gp-solution-card {
        padding: 10px 11px;
    }
    .gp-hint-btn {
        font-size: 0.82rem;
        padding: 5px 12px;
    }
}
