/* ─── Issue Reporting Page ─────────────────────────────────── */

.reports-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 16px 60px;
}

.reports-hero {
    text-align: center;
    margin-bottom: 32px;
}

.reports-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

.reports-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.report-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.report-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.report-form-section {
    display: grid;
    gap: 16px;
}

.report-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-field label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.report-required-mark {
    color: var(--error);
    margin-left: 2px;
}

.report-help {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.report-screenshot-preview {
    margin-top: 12px;
    border: 1px dashed var(--border-card);
    border-radius: 8px;
    padding: 8px;
    background: var(--surface-hover);
    max-width: 100%;
    width: min(100%, 420px);
}

.report-screenshot-preview img {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.report-file-input-visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.report-file-upload {
    align-items: center;
    background: var(--surface-hover);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    display: flex;
    gap: 10px;
    min-height: 44px;
    padding: 6px;
}

.report-file-upload__button {
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700;
    min-height: 34px;
    padding: 0 12px;
    white-space: nowrap;
}

.report-file-upload__button:hover {
    border-color: var(--border-hover);
}

.report-file-upload__name {
    color: var(--text-secondary);
    font-size: 0.88rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-form-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.report-submit {
    min-height: 48px;
    padding: 0 32px;
    font-size: 1.05rem;
    font-weight: 700;
}

/* Success State */
.report-success {
    text-align: center;
    padding: 40px 20px;
}

.report-success-icon {
    width: 64px;
    height: 64px;
    background: #e4f8eb;
    color: #159947;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
}

.report-success h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.report-success p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

@media (max-width: 640px) {
    .report-form-card {
        padding: 16px;
    }

    .report-submit {
        width: 100%;
    }

    .report-file-upload {
        align-items: stretch;
        flex-direction: column;
    }

    .report-file-upload__button {
        justify-content: center;
        width: 100%;
    }

    .report-file-upload__name {
        text-align: center;
        width: 100%;
    }
}

html[data-theme="dark"] .report-file-upload {
    background: var(--input-bg);
}
