/* =============================================================
   PRESS — Evaluation Visualizer
   ============================================================= */

/* --- Loading --- */
.ev-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 16px;
  color: #999;
  font-size: 13px;
}

.ev-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #eee;
  border-top-color: #3a86c9;
  border-radius: 50%;
  animation: ev-spin 0.7s linear infinite;
}

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

/* --- Empty --- */
.ev-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 50px 16px;
  text-align: center;
  color: #aaa;
  font-size: 13px;
}

.ev-empty-hint {
  font-size: 11px;
  color: #ccc;
}

/* --- Header --- */
.ev-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #eee;
}

.ev-badge {
  width: 10px;
  height: 42px;
  border-radius: 3px;
  flex-shrink: 0;
}

.ev-header-text { min-width: 0; }

.ev-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 3px;
}

.ev-location {
  font-size: 11px;
  font-family: 'Consolas', 'SF Mono', monospace;
  color: #999;
}

/* --- Classification --- */
.ev-class-card {
  padding: 12px 18px;
  border-bottom: 1px solid #eee;
}

.ev-class-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  gap: 10px;
}

.ev-class-label {
  font-size: 11px;
  font-weight: 500;
  color: #999;
  flex-shrink: 0;
}

.ev-class-value {
  font-size: 12px;
  color: #333;
  text-align: right;
  word-break: break-word;
}

/* --- Assessment --- */
.ev-assessment {
  padding: 12px 18px;
  border-bottom: 1px solid #eee;
}

.ev-assessment p {
  font-size: 12px;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

.ev-detail-desc {
  font-size: 11px;
  font-style: italic;
  color: #999;
  margin-top: 6px;
}

/* --- Sections --- */
.ev-section {
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
}

.ev-section-title {
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}

/* --- Gauge --- */
.ev-gauge-wrap {
  display: flex;
  justify-content: center;
  padding: 4px 0 12px;
  height: 140px;
}

/* --- Risk --- */
.ev-risk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #888;
  padding-top: 8px;
}

.ev-risk-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}

.ev-risk-low { background: #e8f5e9; color: #2e7d32; }
.ev-risk-medium { background: #fff8e1; color: #f9a825; }
.ev-risk-high { background: #fce4ec; color: #c62828; }
.ev-risk-unknown { background: #f5f5f5; color: #999; }

/* --- Chart --- */
.ev-chart-wrap {
  height: 160px;
  position: relative;
}

/* --- Resource Notes --- */
.ev-notes-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ev-note-row {
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

.ev-note-row:last-child { border-bottom: none; }

.ev-note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.ev-note-name { font-size: 12px; font-weight: 500; color: #444; }
.ev-note-pct { font-size: 11px; font-weight: 600; color: #888; }

.ev-note-bar-bg {
  width: 100%;
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  margin-bottom: 4px;
  overflow: hidden;
}

.ev-note-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.ev-note-text {
  font-size: 11px;
  color: #aaa;
  line-height: 1.4;
}

/* --- Station Cards --- */
.ev-station-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.ev-station-card:last-child { margin-bottom: 0; }

.ev-station-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ev-station-icon {
  font-size: 14px;
  color: #3a86c9;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.ev-station-info {
  flex: 1;
  min-width: 0;
}

.ev-station-name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev-station-meta {
  display: block;
  font-size: 10px;
  color: #999;
}

.ev-station-dist {
  font-size: 12px;
  font-weight: 600;
  color: #3a86c9;
  white-space: nowrap;
  flex-shrink: 0;
}

.ev-station-details {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #eee;
  font-size: 11px;
  color: #888;
}

.ev-no-stations {
  font-size: 12px;
  color: #aaa;
  text-align: center;
  padding: 12px;
}

/* --- Zone Button --- */
.ev-zone-section {
  text-align: center;
}

.ev-zone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f8f4e8;
  border: 1px solid #e8d8a0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #8a7530;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ev-zone-btn:hover {
  background: #f0eacd;
  border-color: #d4c480;
}

.ev-zone-btn svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ev-zone-hint {
  font-size: 11px;
  color: #bbb;
  margin-top: 8px;
}

/* --- Expandable details --- */
.ev-details-section { padding: 0; }

.ev-details-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  transition: background 0.15s ease;
}

.ev-details-toggle:hover { background: #f8f8f8; }

.ev-details-toggle .ev-chevron { transition: transform 0.2s ease; }
.ev-details-toggle.open .ev-chevron { transform: rotate(180deg); }

.ev-details-card {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 18px;
}

.ev-details-card.open {
  max-height: 1500px;
  padding: 0 18px 12px;
}

/* --- Instructions --- */
.ev-instructions {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 40px 20px;
}

.ev-instructions p {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  margin: 0;
}

.ev-instructions-hint {
  font-size: 11px;
  color: #bbb;
}