/* Scoped CSS for elevation-and-ocean-depth-lookup (prefix: eodl-) */

.eodl-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text, #1f2937);
}

.eodl-header-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.eodl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.eodl-badge-alt {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.eodl-badge-ocean {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

.eodl-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-heading, #111827);
  margin: 0 0 0.5rem 0;
  line-height: 1.25;
}

.eodl-subtitle {
  color: var(--text-muted, #4b5563);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.eodl-nav-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border, #e5e7eb);
  margin-bottom: 1.5rem;
}

.eodl-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted, #4b5563);
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.eodl-tab-btn:hover {
  color: var(--text, #111827);
}

.eodl-tab-btn.eodl-active {
  color: #0d9488;
  border-bottom-color: #0d9488;
}

.eodl-panel {
  display: none;
}

.eodl-panel.eodl-active {
  display: block;
}

.eodl-controls-bar {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.eodl-form-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 680px) {
  .eodl-form-row {
    flex-direction: row;
    align-items: flex-end;
  }
}

.eodl-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.eodl-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text, #374151);
}

.eodl-input, .eodl-select {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--surface, #ffffff);
  color: var(--text, #111827);
  font-family: inherit;
}

.eodl-input:focus, .eodl-select:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.15);
}

.eodl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  background: #0d9488;
  color: #ffffff;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.eodl-btn:hover {
  background: #0f766e;
}

.eodl-presets-wrap {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  align-items: center;
}

.eodl-preset-pill {
  font-size: 0.75rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.eodl-preset-pill:hover {
  background: #ccfbf1;
  border-color: #5eead4;
  color: #0f766e;
}

.eodl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 840px) {
  .eodl-grid-split {
    grid-template-columns: 1.1fr 1fr;
  }
}

.eodl-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.eodl-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eodl-metric-banner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eodl-metric-val {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: #0f172a;
}

.eodl-metric-unit {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.eodl-depth-gauge-wrap {
  height: 24px;
  background: linear-gradient(to right, #0284c7 0%, #38bdf8 55%, #10b981 56%, #d97706 80%, #ffffff 100%);
  border-radius: 12px;
  position: relative;
  margin: 1.5rem 0 0.5rem 0;
}

.eodl-gauge-marker {
  position: absolute;
  top: -6px;
  width: 4px;
  height: 36px;
  background: #dc2626;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left 0.3s ease;
}

.eodl-gauge-marker::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -4px;
  width: 12px;
  height: 12px;
  background: #dc2626;
  border-radius: 50%;
}

.eodl-gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748b;
}

.eodl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.eodl-table th, .eodl-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
  text-align: left;
}

.eodl-table th {
  background: #f9fafb;
  font-weight: 600;
  color: var(--text-muted, #4b5563);
}

.eodl-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.eodl-ad-slot {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  margin: 2rem 0;
  color: #9ca3af;
  font-size: 0.85rem;
}
