/* ================================================
   BWS — EAS Maker Page
   ================================================ */

/* ── Active warnings quick-load ───────────────── */
.aw-section {
  margin-bottom: var(--sp-lg);
}

.aw-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.aw-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aw-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  transition: filter 0.15s, transform 0.1s;
  text-align: left;
}

.aw-card:hover { filter: brightness(1.25); transform: translateY(-1px); }
.aw-card:active { transform: translateY(0); }

.aw-card.aw-red    { border-color: rgba(204,0,0,0.45);    background: rgba(204,0,0,0.10);    color: #f08080; }
.aw-card.aw-amber  { border-color: rgba(184,92,0,0.45);   background: rgba(184,92,0,0.10);   color: #f0b060; }
.aw-card.aw-yellow { border-color: rgba(154,125,0,0.45);  background: rgba(154,125,0,0.10);  color: #d4c040; }

.aw-badge {
  font-size: 0.62rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 3px;
  color: #fff;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.aw-title {
  font-weight: 600;
  flex: 1;
}

.aw-hint {
  font-size: 0.72rem;
  opacity: 0.55;
  flex-shrink: 0;
}

/* ── EAS Preview ─────────────────────────────── */
.eas-screen {
  background: #000;
  border-radius: var(--radius-md);
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  font-family: 'Arial Black', 'Courier New', monospace;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), inset 0 0 0 2px rgba(255,255,255,0.05);
  user-select: none;
}

.eas-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 10;
}

.eas-tv-bg {
  position: absolute;
  inset: 0;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eas-tv-bg-icon {
  font-size: 6vw;
  opacity: 0.08;
  filter: blur(2px);
  color: white;
}

.eas-overlay-main {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.eas-top-stripe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(4px, 1.2vw, 10px) clamp(8px, 2vw, 18px);
  font-weight: 900;
  font-size: clamp(0.5rem, 1.5vw, 0.85rem);
  letter-spacing: clamp(0.5px, 0.2vw, 2px);
  text-transform: uppercase;
  flex-shrink: 0;
}

.eas-bws-logo-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.eas-body {
  flex: 1;
  padding: clamp(6px, 1.5vw, 16px) clamp(8px, 2vw, 18px);
  display: flex;
  flex-direction: column;
  gap: clamp(3px, 0.8vw, 8px);
  overflow: hidden;
  position: relative;
}

.eas-main-title {
  font-size: clamp(0.7rem, 2.2vw, 1.3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: clamp(0.3px, 0.15vw, 1.5px);
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.eas-sub-title {
  font-size: clamp(0.55rem, 1.5vw, 0.9rem);
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.9;
}

.eas-areas-line {
  font-size: clamp(0.5rem, 1.3vw, 0.78rem);
  opacity: 0.85;
  line-height: 1.4;
}

.eas-time-line {
  font-size: clamp(0.45rem, 1.1vw, 0.72rem);
  opacity: 0.75;
  margin-top: auto;
}

.eas-issued-line {
  font-size: clamp(0.4rem, 1vw, 0.65rem);
  opacity: 0.6;
}

.eas-crawl-zone {
  flex-shrink: 0;
  border-top: clamp(1px, 0.3vw, 3px) solid;
  overflow: hidden;
  height: clamp(20px, 5vw, 42px);
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.65);
}

.eas-crawl-text {
  white-space: nowrap;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(0.45rem, 1.3vw, 0.82rem);
  letter-spacing: clamp(0.2px, 0.1vw, 0.8px);
  animation: eas-scroll-anim 65s linear infinite;
  padding-left: 100%;
}

@keyframes eas-scroll-anim {
  from { transform: translateX(0%); }
  to   { transform: translateX(-200%); }
}

.eas-crawl-text.paused { animation-play-state: paused; }

.eas-bottom-stripe {
  padding: clamp(3px, 0.7vw, 6px) clamp(8px, 2vw, 18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(0.38rem, 0.9vw, 0.6rem);
  opacity: 0.7;
  flex-shrink: 0;
}

/* Audio panel */
.audio-panel {
  background: #0d1117;
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  border: 1px solid #30363d;
}

.audio-panel h4 {
  color: #56d364;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  margin-bottom: var(--sp-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.audio-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #21262d;
  font-size: 0.82rem;
}

.audio-step:last-child { border-bottom: none; }

.audio-step-icon { font-size: 1.1rem; flex-shrink: 0; color: #56d364; width: 22px; text-align: center; }

.audio-step-label { color: #c9d1d9; flex: 1; }

.audio-step-duration {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #56d364;
}

.audio-step-bar {
  width: 60px;
  height: 4px;
  background: #21262d;
  border-radius: 2px;
  overflow: hidden;
}

.audio-step-fill {
  height: 100%;
  background: #56d364;
  width: 0%;
  transition: width 0.1s linear;
}

.same-display {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: var(--radius-sm);
  padding: var(--sp-md);
}

.same-display pre {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #56d364;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.8;
  margin: 0;
}

.same-copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.75rem;
  cursor: pointer;
  color: #8b949e;
  background: none;
  border: none;
  font-family: var(--font-mono);
  padding: 0;
  transition: color var(--transition);
}

.same-copy-btn:hover { color: #56d364; }

.type-preview-strip {
  height: 6px;
  border-radius: 3px;
  margin-bottom: 8px;
  transition: background 0.3s;
}

.region-search {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  width: 100%;
  margin-bottom: 8px;
  outline: none;
}

.region-search:focus { border-color: var(--bws-blue); }

.eas-severity-box {
  position: absolute;
  top: clamp(4px, 1.5vw, 12px);
  right: clamp(6px, 2vw, 16px);
  border-radius: clamp(2px, 0.4vw, 4px);
  padding: clamp(2px, 0.4vw, 4px) clamp(5px, 1vw, 10px);
  font-weight: 900;
  font-size: clamp(0.4rem, 1vw, 0.7rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tone-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.tone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #56d364;
  animation: tone-pulse 0.5s ease-in-out infinite alternate;
}

.tone-dot:nth-child(2) { animation-delay: 0.15s; }
.tone-dot:nth-child(3) { animation-delay: 0.3s; }
.tone-dot:nth-child(4) { animation-delay: 0.45s; }

@keyframes tone-pulse {
  from { transform: scaleY(0.3); opacity: 0.4; }
  to   { transform: scaleY(1.5); opacity: 1; }
}

.tone-dots.inactive .tone-dot {
  animation: none;
  opacity: 0.2;
  transform: scaleY(0.3);
}

/* Voice selector */
.voice-select {
  background: #0d1117;
  color: #56d364;
  border: 1px solid #30363d;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 9px 13px;
  width: 100%;
  outline: none;
  cursor: pointer;
}

.voice-select:focus { border-color: #56d364; }

.voice-info-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  font-size: 0.72rem;
  color: #8b949e;
}

.voice-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #56d364;
  flex-shrink: 0;
}
