/* Aviation Weather Briefing & METAR/TAF Decoder CSS (Prefix: awbl-) */

.awbl-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.awbl-header {
  background-color: #0f172a;
  border-bottom: 1px solid #1e293b;
  padding: 0.75rem 1.5rem;
}

.awbl-nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.awbl-logo-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: none;
}

.awbl-logo-link:hover {
  color: #7dd3fc;
}

.awbl-nav-badge {
  background-color: #1e293b;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.awbl-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.awbl-breadcrumbs {
  margin-bottom: 1rem;
}

.awbl-bc-list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.awbl-bc-item {
  display: inline;
}

.awbl-bc-link {
  color: #0284c7;
  text-decoration: none;
}

.awbl-bc-link:hover {
  text-decoration: underline;
}

.awbl-bc-separator {
  margin: 0 0.5rem;
  color: #94a3b8;
}

.awbl-bc-current {
  color: #334155;
  font-weight: 500;
}

/* Safety Alert */
.awbl-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.awbl-disclaimer-icon {
  font-size: 1.35rem;
  color: #dc2626;
  line-height: 1;
}

.awbl-disclaimer-text {
  font-size: 0.85rem;
  color: #991b1b;
  line-height: 1.4;
}

/* Hero */
.awbl-hero {
  margin-bottom: 1.5rem;
}

.awbl-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.awbl-subtitle {
  font-size: 1.05rem;
  color: #475569;
  margin: 0;
  max-width: 800px;
}

/* Preset Airport Bar */
.awbl-station-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  background-color: #e2e8f0;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.awbl-station-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.awbl-preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.awbl-preset-btn {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.awbl-preset-btn:hover {
  background-color: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Cards & Form */
.awbl-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.awbl-input-card {
  margin-bottom: 1.5rem;
}

.awbl-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.awbl-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.awbl-col-code {
  flex: 1 1 240px;
}

.awbl-col-runway {
  flex: 1 1 180px;
}

.awbl-col-elev {
  flex: 1 1 180px;
}

.awbl-form-group {
  display: flex;
  flex-direction: column;
}

.awbl-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.awbl-input-wrap {
  display: flex;
  gap: 0.5rem;
}

.awbl-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #0f172a;
  background-color: #fff;
  box-sizing: border-box;
}

.awbl-input:focus, .awbl-textarea:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.awbl-textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  color: #0f172a;
  background-color: #fcfcfc;
  resize: vertical;
  box-sizing: border-box;
}

.awbl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.awbl-btn-primary {
  background-color: #0284c7;
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.awbl-btn-primary:hover {
  background-color: #0369a1;
}

.awbl-btn-secondary {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.awbl-btn-secondary:hover {
  background-color: #e2e8f0;
}

.awbl-btn-outline {
  background-color: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.awbl-btn-outline:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

/* Status Bar & Summary */
.awbl-status-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.awbl-badge-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.awbl-metric-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.awbl-metric-val {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}

.awbl-metric-sub {
  font-size: 0.825rem;
  color: #64748b;
}

.awbl-flight-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  width: fit-content;
}

.awbl-cat-vfr {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.awbl-cat-mvfr {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.awbl-cat-ifr {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.awbl-cat-lifr {
  background-color: #f5d0fe;
  color: #86198f;
  border: 1px solid #f0abfc;
}

.awbl-cat-subtext {
  font-size: 0.825rem;
  color: #475569;
}

/* Results Grid */
.awbl-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 850px) {
  .awbl-results-grid {
    grid-template-columns: 1fr;
  }
}

.awbl-col-full {
  grid-column: 1 / -1;
}

.awbl-card-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.awbl-table-container {
  overflow-x: auto;
}

.awbl-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.awbl-data-table th, .awbl-data-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.awbl-data-table th {
  background-color: #f8fafc;
  font-weight: 600;
  color: #475569;
}

.awbl-code {
  font-family: ui-monospace, monospace;
  background-color: #f1f5f9;
  color: #0f172a;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Performance Metrics */
.awbl-perf-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.awbl-perf-item {
  background-color: #f8fafc;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.awbl-perf-label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.awbl-perf-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.awbl-text-green {
  color: #16a34a;
}

.awbl-text-amber {
  color: #d97706;
}

.awbl-text-red {
  color: #dc2626;
}

/* Runway Visualizer */
.awbl-rwy-visualizer {
  position: relative;
  height: 140px;
  background-color: #f1f5f9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}

.awbl-rwy-strip {
  position: relative;
  width: 48px;
  height: 120px;
  background-color: #334155;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.5);
}

.awbl-rwy-centerline {
  position: absolute;
  top: 15px;
  bottom: 15px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, #ffffff, #ffffff 8px, transparent 8px, transparent 14px);
}

.awbl-rwy-num-top, .awbl-rwy-num-bottom {
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: monospace;
  z-index: 2;
}

.awbl-wind-arrow {
  position: absolute;
  width: 70px;
  height: 20px;
  pointer-events: none;
  display: flex;
  align-items: center;
  transform-origin: 35px 10px;
  transition: transform 0.3s ease;
}

.awbl-arrow-shaft {
  width: 50px;
  height: 3px;
  background-color: #ef4444;
}

.awbl-arrow-tip {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #ef4444;
}

/* TAF Blocks */
.awbl-taf-blocks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.awbl-taf-block {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  background-color: #f8fafc;
}

.awbl-taf-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.awbl-taf-pill {
  background-color: #0284c7;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.awbl-taf-time {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.awbl-taf-text {
  margin: 0;
  font-size: 0.9rem;
  color: #1e293b;
}

/* Ads */
.awbl-ad-wrapper {
  margin: 2rem 0;
  min-height: 280px;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Guide & Educational */
.awbl-guide-section {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.awbl-guide-article {
  margin-bottom: 2rem;
}

.awbl-guide-article:last-child {
  margin-bottom: 0;
}

.awbl-guide-article h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem 0;
}

.awbl-guide-article p {
  color: #334155;
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.awbl-flight-rules-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.awbl-rules-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.awbl-rules-table th, .awbl-rules-table td {
  padding: 0.65rem 0.75rem;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.awbl-rules-table th {
  background-color: #f1f5f9;
  font-weight: 600;
  color: #1e293b;
}

.awbl-guide-list {
  padding-left: 1.25rem;
  color: #334155;
  line-height: 1.7;
}

.awbl-faq-list {
  margin: 0;
}

.awbl-faq-q {
  font-weight: 700;
  color: #0f172a;
  margin-top: 1rem;
  font-size: 1rem;
}

.awbl-faq-a {
  margin: 0.35rem 0 0.75rem 0;
  color: #475569;
  line-height: 1.5;
}

/* Related Tools */
.awbl-related-tools {
  margin-bottom: 2rem;
}

.awbl-related-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.awbl-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.awbl-related-card {
  display: block;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.awbl-related-card:hover {
  border-color: #0284c7;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.awbl-related-title {
  display: block;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 0.35rem;
}

.awbl-related-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

.awbl-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 2rem 1.5rem;
  font-size: 0.875rem;
  text-align: center;
}

.awbl-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.awbl-copied-notification {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #0f172a;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
}
