/* ═══════════════════════════════════════════════════════════════
   SPACE EMPIRE — Galaktische News + Fleet-Galaxien-Gruppierung
   ═══════════════════════════════════════════════════════════════ */

/* ── News Layout ─────────────────────────────────────────────── */
.seg-news-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.seg-news-header {
  padding: 14px 20px 12px;
  border-bottom: 1px solid #1a1a4e;
  background: rgba(4,4,18,.8);
  flex-shrink: 0;
}

/* Ticker */
.seg-news-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid #1a1a4e;
  border-radius: 4px;
  background: #04040e;
  padding: 5px 0;
}

.seg-news-ticker-label {
  flex-shrink: 0;
  background: #ef4444;
  color: #fff;
  font-size: .6rem;
  font-family: monospace;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 2px 7px;
  margin-left: 8px;
  border-radius: 3px;
  animation: seg-blink-live 1s steps(1) infinite;
}
@keyframes seg-blink-live { 50% { opacity: 0 } }

#seg-news-ticker {
  font-family: 'Courier New', monospace;
  font-size: .72rem;
  color: #00ffff;
  white-space: nowrap;
  animation: seg-ticker-scroll 40s linear infinite;
}
@keyframes seg-ticker-scroll {
  0%   { transform: translateX(0) }
  100% { transform: translateX(-50%) }
}

/* Feed */
.seg-news-feed {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: #1a1a4e transparent;
}
.seg-news-feed::-webkit-scrollbar { width: 4px }
.seg-news-feed::-webkit-scrollbar-thumb { background: #1a1a4e; border-radius: 2px }

.seg-news-empty {
  text-align: center;
  padding: 40px;
  color: #3a3a5e;
  font-family: monospace;
  font-size: .85rem;
}

/* Artikel-Karte */
.seg-news-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #1a1a4e;
  background: linear-gradient(135deg, #070718, #0b0b22);
  border-left: 3px solid var(--news-color, #00ffff);
  animation: seg-news-in .35s ease both;
  transition: background .2s;
}
.seg-news-item:hover {
  background: linear-gradient(135deg, #0a0a22, #0f0f2e);
}
@keyframes seg-news-in {
  from { opacity: 0; transform: translateX(-12px) }
  to   { opacity: 1; transform: translateX(0) }
}

.seg-news-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
  margin-top: 2px;
}

.seg-news-body { flex: 1; min-width: 0; }

.seg-news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.seg-news-badge {
  font-size: .6rem;
  font-family: monospace;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid;
}

.seg-news-time {
  font-size: .65rem;
  color: #3a3a5e;
  font-family: monospace;
  margin-left: auto;
}

.seg-news-headline {
  font-size: .85rem;
  font-weight: 600;
  color: #d0d0f0;
  line-height: 1.4;
}

.seg-news-text {
  font-size: .75rem;
  color: #5a5a7e;
  margin-top: 3px;
  line-height: 1.5;
}

/* Typ-spezifisches Glow */
.seg-news-type-battle       { --news-color: #ef4444 }
.seg-news-type-new_player   { --news-color: #22c55e }
.seg-news-type-colonized    { --news-color: #3b82f6 }
.seg-news-type-guild_founded{ --news-color: #a855f7 }
.seg-news-type-guild_closed { --news-color: #f59e0b }

/* ── Fleet: Galaxien-Gruppenheader ───────────────────────────── */
.seg-fleet-galaxy-group {
  margin-bottom: 20px;
}

.seg-fleet-galaxy-header {
  font-family: 'Courier New', monospace;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-primary, #00ffff);
  border-bottom: 1px solid rgba(0,255,255,.2);
  padding: 6px 4px 6px 0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.seg-fleet-galaxy-header::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-primary, #00ffff);
  box-shadow: 0 0 6px var(--clr-primary, #00ffff);
  flex-shrink: 0;
}

/* ── Planet-Popup: kleines Planet-Visual ─────────────────────── */
.seg-planet-3d.seg-planet-sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a6fa8, #1a3a5a);
  box-shadow: inset -6px -4px 12px rgba(0,0,0,.6);
}

/* ── Slot-Erweiterung Button Gold ────────────────────────────── */
.seg-btn-gold {
  background: linear-gradient(135deg, #92400e, #78350f);
  border: 1px solid #f59e0b;
  color: #fcd34d;
}
.seg-btn-gold:hover {
  background: linear-gradient(135deg, #b45309, #92400e);
  box-shadow: 0 0 12px rgba(245,158,11,.4);
  color: #fff;
}
