/* Report page layout + modal (uses how_it_works.css tokens) */

.report-hero {
  padding: 7rem 0 4rem;
  background: var(--gradient-hero);
}

.report-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .report-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.report-summary h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 1rem;
}

.report-summary p {
  color: var(--muted-foreground);
  font-size: 1.05rem;
  line-height: 1.7;
}

.report-note {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  background-color: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  color: var(--muted-foreground);
}

.report-cta {
  margin-top: 1.5rem;
}

.report-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .report-stat-grid {
    grid-template-columns: 1fr;
  }
}

.report-stat-card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.report-stat-card h4 {
  margin: 0.75rem 0 0.25rem;
  font-size: 1.1rem;
}

.report-track-card {
  background: var(--card);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.report-track-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.report-track-body {
  padding: 1.5rem 1.75rem 2rem;
}

.report-track-body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.report-track-body p {
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}

.report-track-group {
  margin-bottom: 1rem;
}

.report-track-group h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.report-track-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Modal */
.report-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
}

.report-modal-overlay.open {
  display: flex;
}

.report-modal {
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  background: var(--card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.report-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
}

.report-modal-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.report-modal-header p {
  margin: 0.35rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.report-modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted-foreground);
}

.report-modal-body {
  padding: 1.75rem 2rem 2rem;
  overflow: auto;
}

/* Form styles pulled from saferating.css */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #495057;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  font-size: 1em;
  outline: none;
  transition: border-color 0.3s;
  font-family: 'Work Sans', system-ui, sans-serif;
}

.form-control:focus {
  border-color: var(--primary);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  padding: 8px;
  cursor: pointer;
  color: #212529;
  background: #f8f9fa;
  border-radius: 5px;
  margin-bottom: 5px;
}

.checkbox-label input {
  margin-right: 8px;
}

.error {
  background: #f8d7da;
  color: #721c24;
  padding: 20px;
  border-radius: var(--radius);
  border-left: 4px solid #dc3545;
}
