/* Browser-only enhancements for report-city.html — not inlined in PDF mode. */

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: #f5f6f8;
  padding: 0;
  margin: 0;
  font-family: 'Varela Round', Helvetica, Arial, sans-serif;
  color: #2c2c2c;
  display: flex;
  flex-direction: column;
}

/* ── Sticky header ───────────────────────────────────────── */

.site-header {
  flex-shrink: 0;
  z-index: 100;
}

/* ── Page chrome ─────────────────────────────────────────── */

.page-chrome {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.page-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}

.eu-footer {
  flex-shrink: 0;
}

/* ── Sidebar ─────────────────────────────────────────────── */

.city-sidebar {
  width: 240px;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 32px 0 32px 24px;
  border-right: 1px solid #ebebeb;
  background: #ffffff;
}

.sidebar-label {
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #bbb;
  font-weight: 600;
  margin: 0 0 12px 12px;
}

.sidebar-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: .88rem;
  color: #666;
  margin-bottom: 2px;
  transition: background .15s, color .15s;
  word-break: break-word;
}

.sidebar-link:hover { background: #f5f6f8; color: #141414; }

.sidebar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
  background: #ddd;
  transition: background .3s;
}

.sidebar-link[data-worst="green"]  .sidebar-dot { background: #2ecc71; }
.sidebar-link[data-worst="yellow"] .sidebar-dot { background: #fcbd2a; }
.sidebar-link[data-worst="red"]    .sidebar-dot { background: #e74c3c; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

/* ── Main content area ───────────────────────────────────── */

.page-content-col {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.page-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 40px 40px 60px;
}

/* ── Report header ───────────────────────────────────────── */

.report-header {
  border-bottom: none;
  margin-bottom: 28px;
  padding-bottom: 0;
}

.report-header h1 {
  font-size: 1.7rem;
  font-weight: 400;
  color: #141414;
  margin: 0 0 6px;
  letter-spacing: -.01em;
}

/* ── State panels ────────────────────────────────────────── */

.state-panel {
  background: #ffffff;
  border-radius: 10px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.state-msg {
  font-size: 1rem;
  color: #aaa;
  font-style: normal;
  margin: 0;
}

.state-msg.error { color: #e74c3c; }

/* ── Generating progress panel ───────────────────────────── */

.generating-panel {
  background: #ffffff;
  border-radius: 10px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.generating-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 6px;
}

.generating-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #e0e0e0;
  border-top-color: #00bdd1;
  border-radius: 50%;
  flex-shrink: 0;
  animation: spin 0.8s linear infinite;
}

.generating-title {
  font-size: 1.05rem;
  color: #141414;
  margin: 0;
}

.generating-subtitle {
  font-size: .85rem;
  color: #aaa;
  margin: 0 0 28px;
}

.progress-track {
  background: #f0f0f0;
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  margin: 0 auto 10px;
  max-width: 360px;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00bdd1, #fcbd2a);
  border-radius: 8px;
  transition: width .6s ease;
}

/* Shimmer overlay — visible only when no real progress yet (width: 0%) */
.progress-fill[style*="width:0%"]::after,
.progress-fill[style*="width: 0%"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0,189,209,.35) 50%, transparent 100%);
  animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* ── Resource cards ──────────────────────────────────────── */

.resource-block {
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
  page-break-inside: avoid;
}

.resource-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: none;
  border-left: none;
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 20px 14px;
}

.resource-icon { font-size: 1.1rem; flex-shrink: 0; }

.resource-name {
  font-size: 1rem;
  font-weight: 600;
  color: #141414;
  letter-spacing: .01em;
}

.resource-meta {
  font-size: .78rem;
  color: #bbb;
  margin-left: 0;
}

/* ── Dimension table ─────────────────────────────────────── */

.dim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.dim-table tr { border-bottom: 1px solid #f5f5f5; }
.dim-table tr:last-child { border-bottom: none; }

.dim-name {
  width: 130px;
  font-weight: 600;
  padding: 10px 8px 10px 16px;
  color: #444;
  text-transform: capitalize;
}

/* Browser: replace text chip with a small coloured dot */
.dim-score {
  width: 24px;
  padding: 0 6px;
  font-size: 0;
  text-align: center;
  vertical-align: middle;
}

.dim-score::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dim-score-green::after  { background: #2ecc71; }
.dim-score-yellow::after { background: #fcbd2a; }
.dim-score-red::after    { background: #e74c3c; }

.dim-text {
  padding: 10px 16px 10px 8px;
  color: #555;
  line-height: 1.5;
}
