/* Weather & World Events Dashboard */
.we-dashboard {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.we-section {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 12px;
}

.we-section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: #FFD700;
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

/* Weather Card */
.we-weather-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid;
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.we-weather-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.we-weather-info {
  flex: 1;
}

.we-weather-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: #fff;
  margin-bottom: 4px;
}

.we-weather-desc {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 6px;
}

.we-weather-mult {
  font-size: 11px;
  font-weight: bold;
}

.we-mult-good { color: #4CAF50; }
.we-mult-bad { color: #FF6B6B; }
.we-mult-neutral { color: #FFD700; }
.we-mult-value { font-size: 10px; opacity: 0.7; }

.we-weather-indicator {
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  border-radius: 0 6px 6px 0;
}

/* Event Cards */
.we-event-card {
  padding: 10px 12px;
  border-left: 4px solid;
  border-radius: 4px;
  background: rgba(0,0,0,0.2);
  margin-bottom: 8px;
}

.we-event-card:last-child { margin-bottom: 0; }

.we-event-active {
  background: rgba(76,175,80,0.08);
  animation: eventPulse 3s ease-in-out infinite;
}

.we-event-announced {
  background: rgba(255,193,7,0.08);
}

@keyframes eventPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.we-event-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.we-event-emoji { font-size: 18px; }

.we-event-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #fff;
  flex: 1;
}

.we-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.we-badge-active {
  background: #4CAF50;
  color: #fff;
}

.we-badge-announced {
  background: #FFC107;
  color: #000;
}

.we-event-desc {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 4px;
}

.we-event-remaining {
  font-size: 10px;
  color: #87CEEB;
}

/* Weather History */
.we-hist-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.we-hist-title {
  font-size: 11px;
  color: #ccc;
  font-weight: bold;
  margin-bottom: 4px;
}

.we-hist-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.we-hist-label {
  font-size: 10px;
  color: #ddd;
  width: 100px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.we-hist-track {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
  overflow: hidden;
}

.we-hist-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.5s ease;
}

.we-hist-pct {
  font-size: 10px;
  color: #888;
  width: 40px;
  text-align: right;
}

/* Weather Timeline */
.we-timeline {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.we-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  transition: transform 0.2s;
}

.we-timeline-dot:hover {
  transform: scale(1.5);
}

/* Event History */
.we-event-history {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.we-hist-event {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
}

.we-hist-event-icon { font-size: 14px; }
.we-hist-event-name { font-size: 11px; color: #ddd; flex: 1; }
.we-hist-event-count { font-size: 10px; color: #888; }

/* Weather Guide */
.we-guide-section { opacity: 0.7; }
.we-guide-section:hover { opacity: 1; }

.we-guide {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.we-guide-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.we-guide-row:last-child { border-bottom: none; }
.we-guide-emoji { font-size: 14px; width: 24px; text-align: center; }
.we-guide-name { font-size: 10px; color: #ddd; width: 90px; }
.we-guide-effect { font-size: 10px; color: #87CEEB; flex: 1; }

/* Empty state */
.we-empty {
  text-align: center;
  padding: 16px;
  color: #888;
  font-size: 11px;
  font-style: italic;
}

/* Dark mode overrides */
body.dark-mode .we-weather-card { background: rgba(255,255,255,0.05); }
body.dark-mode .we-event-card { background: rgba(255,255,255,0.03); }
body.dark-mode .we-section { background: rgba(255,255,255,0.03); }

/* Light mode */
body:not(.dark-mode) .we-section { background: rgba(0,0,0,0.02); }
body:not(.dark-mode) .we-weather-card { background: rgba(0,0,0,0.03); }
body:not(.dark-mode) .we-weather-name { color: #333; }
body:not(.dark-mode) .we-weather-desc { color: #666; }
body:not(.dark-mode) .we-event-name { color: #333; }
body:not(.dark-mode) .we-event-desc { color: #666; }
body:not(.dark-mode) .we-hist-label { color: #333; }
body:not(.dark-mode) .we-hist-title { color: #555; }
body:not(.dark-mode) .we-guide-name { color: #333; }

/* Mobile */
@media (max-width: 768px) {
  .we-dashboard { padding: 4px; gap: 10px; }
  .we-section { padding: 8px; }
  .we-weather-card { padding: 8px; gap: 8px; }
  .we-weather-icon { width: 40px; height: 40px; font-size: 24px; }
  .we-weather-name { font-size: 9px; }
  .we-hist-label { width: 80px; font-size: 9px; }
  .we-timeline-dot { width: 10px; height: 10px; }
  .we-guide-section { display: none; }
}
