/* ============================================================================
   IMPORT UNIFIED DESIGN SYSTEM
   ============================================================================ */

/* ============================================================================
   OVERLAY STYLES
   ============================================================================ */
.overlay-container {
  position: fixed;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  z-index: var(--z-max);
  pointer-events: none;
  font-family: var(--font-mono);
}

.tip-alert {
  background: var(--gradient-brand);
  color: var(--color-text-primary);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  border-radius: var(--radius-lg);
  box-shadow: var(--glow-purple);
  animation: slideIn 0.5s ease-out;
  max-width: 300px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tip-alert-content {
  text-align: center;
}

.tip-amount {
  font-size: var(--text-2xl);
  font-weight: bold;
  margin-bottom: var(--spacing-xs);
  text-shadow: var(--shadow-md);
}

.tip-tipper {
  font-size: var(--text-base);
  opacity: 0.9;
  margin-bottom: var(--spacing-xs);
}

.tip-message {
  font-size: var(--text-sm);
  font-style: italic;
  opacity: 0.8;
  margin-top: var(--spacing-xs);
  padding-top: var(--spacing-xs);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* New overlay root layout */
.overlay-root {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 10000;
  width: 360px;
  max-width: calc(100% - 24px);
  pointer-events: none;
  color: #fff;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

.overlay-topbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  pointer-events: auto;
}

.network-pill {
  background: rgba(0,0,0,0.5);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}

.network-status {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
}
.network-status.online { background: rgba(0,200,120,0.12); color: #8ef0b0; }
.network-status.offline { background: rgba(255,50,50,0.08); color: #ff9b9b; }

.streamer-handle { margin-left: auto; font-weight: 700; opacity: 0.95; }

.overlay-body {
  pointer-events: auto;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.45));
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.streamer-summary { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 10px; }
.summary-section { background: rgba(255,255,255,0.02); padding: 8px; border-radius: 8px; }
.section-title { font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.muted { color: rgba(255,255,255,0.6); font-size: 13px; }
.poll-item.active { color: #7ef0ff; font-weight: 700; }
.challenge-item { font-size: 13px; }
.token-item { font-size: 13px; }

.tips-panel { margin-bottom: 10px; }
.tips-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.quick-tip-actions { display:flex; gap:6px; }
.quick-tip { background: linear-gradient(90deg,#ffb86b,#ff7aa2); border: none; color: #000; padding:6px 8px; border-radius:8px; font-weight:700; cursor:pointer; }
.quick-tip:active { transform: translateY(1px); }

.tips-feed { max-height: 160px; overflow: auto; display:flex; flex-direction:column; gap:6px; }
.feed-item { background: rgba(255,255,255,0.03); padding:8px; border-radius:8px; display:flex; justify-content:space-between; align-items:center; }
.feed-amount { font-weight:700; }
.feed-meta { font-size:12px; opacity:0.9; }

.overlay-alerts { position: relative; }

/* make existing tip-alert styles adapt to new layout */
.tip-alert { background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%); color: white; padding: 12px; margin-bottom: 8px; border-radius: 10px; box-shadow: 0 8px 32px rgba(124, 58, 237, 0.25); animation: slideIn 0.5s ease-out; max-width: 100%; backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.06); }
.tip-alert-content { text-align: left; }
.tip-amount { font-size: 18px; font-weight: 800; margin-bottom: 4px; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.tip-tipper { font-size: 13px; opacity: 0.95; }
.tip-message { font-size: 13px; font-style: italic; opacity: 0.9; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.06); }

