/* ========================================= */
/* WX1GYX Broadcast Ticker — Tier 1 Upgrade  */
/* ========================================= */

#gyx-hazard-ticker {
  width: 100%;
  font-family: Arial, sans-serif;
  position: relative;
}

/* --- Ticker wrapper --- */
.gyx-ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  padding: 8px 0;
  white-space: nowrap;
  border-bottom: 2px solid #ff0000;
  position: relative;
}

/* --- Storm shimmer background --- */
.gyx-shimmer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 60%);
  animation: gyx-shimmer-move 6s linear infinite;
  pointer-events: none;
}

@keyframes gyx-shimmer-move {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* --- Fade masks --- */
.gyx-fade-left,
.gyx-fade-right {
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.gyx-fade-left {
  left: 0;
  background: linear-gradient(to right, #000 0%, transparent 100%);
}

.gyx-fade-right {
  right: 0;
  background: linear-gradient(to left, #000 0%, transparent 100%);
}

/* --- Scrolling track --- */
.gyx-track {
  display: inline-block;
  padding-left: 100%;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0.5px;
  animation: gyx-scroll 24s linear infinite;
  position: relative;
  z-index: 5;
}

@keyframes gyx-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* --- Spotter bar --- */
.gyx-spotter-bar {
  width: 100%;
  background: #222;
  color: #fff;
  padding: 6px 12px;
  font-size: 18px;
  border-top: 2px solid #ff0000;
}

/* --- Hazard colors + glow --- */
.gyx-warning {
  color: #ff4b4b;
  text-shadow: 0 0 6px rgba(255, 0, 0, 0.7);
  animation: gyx-warning-pulse 1.6s ease-in-out infinite;
}

@keyframes gyx-warning-pulse {
  0%   { text-shadow: 0 0 4px rgba(255,0,0,0.6); }
  50%  { text-shadow: 0 0 10px rgba(255,0,0,1); }
  100% { text-shadow: 0 0 4px rgba(255,0,0,0.6); }
}

.gyx-watch {
  color: #ffd24d;
  text-shadow: 0 0 6px rgba(255, 200, 0, 0.6);
}

.gyx-advisory {
  color: #4da6ff;
  text-shadow: 0 0 6px rgba(0, 120, 255, 0.6);
}

.gyx-sps {
  color: #cccccc;
  text-shadow: 0 0 4px rgba(255,255,255,0.4);
}

.gyx-clear {
  color: #7dff7d;
  text-shadow: none;
}

/* ============================================================
   TAKEOVER MODE — FINAL FIX (Astra/Elementor override)
   ============================================================ */

#gyx-takeover {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 99999 !important;

    /* Prevent Astra/Elementor from collapsing the container */
    min-height: 140px !important;
    padding: 25px !important;
    margin: 15px 0 !important;
}

.gyx-takeover {
    background: #0a0a0a;
    color: #ffffff;
    padding: 22px;
    border-radius: 10px;
    font-size: 1.45rem;
    text-align: center;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 0 25px rgba(0,0,0,0.65);
}

/* Color themes */
.gyx-takeover-red {
    background: #7a0000;
}
.gyx-takeover-yellow {
    background: #b38f00;
}
.gyx-takeover-blue {
    background: #003c7a;
}


/* --- Pulse animations --- */
@keyframes gyx-pulse-red {
  0%   { box-shadow: 0 0 10px rgba(255,0,0,0.6); }
  50%  { box-shadow: 0 0 25px rgba(255,0,0,1); }
  100% { box-shadow: 0 0 10px rgba(255,0,0,0.6); }
}

@keyframes gyx-pulse-yellow {
  0%   { box-shadow: 0 0 10px rgba(255,200,0,0.6); }
  50%  { box-shadow: 0 0 25px rgba(255,200,0,1); }
  100% { box-shadow: 0 0 10px rgba(255,200,0,0.6); }
}

@keyframes gyx-pulse-blue {
  0%   { box-shadow: 0 0 10px rgba(0,120,255,0.6); }
  50%  { box-shadow: 0 0 25px rgba(0,120,255,1); }
  100% { box-shadow: 0 0 10px rgba(0,120,255,0.6); }
}
