/*
CHANGE LOG
File: /static/css/report_web.css
Document Type: CSS Stylesheet
Purpose: Web styling for HTML report display (matches July 13 screenshot)
Main App: area_mapping_app.py
Blueprint: report_blueprint.py
HTML Template: report_html.html
Version History:
2025-07-13 v2.0 – Full rewrite. Clarified layout roles, separated map vs. photo containers, improved readability and responsiveness
*/

/* ─── Base Layout ───────────────────────────── */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #f4f6f8;
  color: #333;
}

/* ─── Header ────────────────────────────────── */
.report-header {
  background: linear-gradient(135deg, #5c6bc0, #42a5f5);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  border-bottom: 1px solid #ccc;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.report-header h1 {
  margin: 0;
  font-size: 28px;
}
.report-header h2 {
  font-weight: 400;
  font-size: 16px;
  margin: 4px 0 16px;
}
.report-id-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* ─── Navigation Tabs ───────────────────────── */
.report-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #263238;
}
.report-nav li {
  margin: 0;
}
.report-nav a {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: #ccc;
  font-weight: 500;
  border-bottom: 3px solid transparent;
}
.report-nav a:hover {
  background-color: #37474f;
  color: #fff;
}
.report-nav a.active {
  color: #fff;
  border-bottom: 3px solid #29b6f6;
}

/* ─── Container Blocks ──────────────────────── */
.report-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px;
}
.report-overview,
.report-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  padding: 24px;
  margin-bottom: 40px;
}
.report-overview h3,
.report-section h3 {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 20px;
  color: #263238;
  border-bottom: 2px solid #29b6f6;
  padding-bottom: 6px;
}

/* ─── Tables ────────────────────────────────── */
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
td, th {
  padding: 12px 10px;
  vertical-align: top;
}
th {
  text-align: left;
  color: #555;
  font-weight: 600;
  width: 180px;
  background: #f5f5f5;
}
td {
  background: #fafafa;
}

/* ─── Map Section ───────────────────────────── */
.map-container {
  text-align: center;
}
.map-container img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 16px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ─── Photo Gallery Section ─────────────────── */
.photo-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 24px auto;
  max-width: 960px;
}
.photo-item {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  text-align: center;
}
.photo-item img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 8px;
}
.photo-item .caption {
  font-size: 13px;
  color: #555;
  word-break: break-word;
  line-height: 1.4;
}

/* ─── Links ─────────────────────────────────── */
a {
  color: #1e88e5;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ─── Responsive Tweaks ─────────────────────── */
@media (max-width: 700px) {
  .photo-container {
    grid-template-columns: 1fr;
  }
}
/* ─── Expandable Map Image Styling ───────────── */
.map-container img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
}
.map-container img.expanded {
  transform: scale(2);
  z-index: 999;
  position: relative;
  cursor: zoom-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
