/* Reports page specific styles */
@import url('styles.css');

.reports-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.reports-loading,
.reports-empty {
  color: var(--text-on-paper-soft);
  font-size: 1rem;
  margin: 0;
  padding: 32px 0;
  text-align: center;
}

.report-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: white;
  border: 1px solid rgba(32, 29, 24, 0.12);
  border-radius: 3px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.report-card:hover {
  box-shadow: 0 4px 16px rgba(32, 29, 24, 0.08);
  transform: translateY(-2px);
}

.report-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0;
  color: var(--text-on-paper);
}

.report-summary {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-on-paper-soft);
  max-width: 640px;
}

.report-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brass);
  text-transform: uppercase;
  margin: 0 0 6px;
}

.report-read-btn {
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--brass-light);
  color: var(--ink);
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
  transition: transform .15s ease, background .15s ease;
  white-space: nowrap;
}

.report-read-btn:hover {
  transform: translateY(-1px);
  background: #D8B463;
}

@media (max-width: 620px) {
  .report-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Modal (shared pattern with roles.html) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 8, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}
.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: var(--paper);
  color: var(--text-on-paper);
  max-width: 460px;
  width: 100%;
  border-radius: 6px;
  padding: 28px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card-wide {
  max-width: 860px;
}

.modal-card h3 {
  font-family: var(--font-display);
  margin: 0 0 10px;
}

.report-open-new {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brass);
  border-bottom: 1px solid var(--brass);
  margin: 0 0 18px;
}
.report-open-new:hover {
  color: var(--brass-light);
  border-color: var(--brass-light);
}
.report-open-new:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 2px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
  line-height: 1;
  padding: 4px 8px;
}
.modal-close:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 2px;
}

.report-frame-wrap {
  width: 100%;
  height: 70vh;
}

.report-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(32, 29, 24, 0.12);
  border-radius: 3px;
  background: white;
}

@media (max-width: 640px) {
  .modal-card-wide {
    max-width: 100%;
  }
  .report-frame-wrap {
    height: 60vh;
  }
}
