/* ============================================
   NOVA Waiting Experience Engine — Styles
   ============================================ */

/* ── Overlay Container ── */
.nova-overlay-container {
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
}

/* ── Overlay Panel ── */
.nova-overlay {
  background: var(--bg-primary, #1a1a2e);
  border: 1px solid var(--border-default, rgba(255,255,255,0.08));
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.nova-overlay--visible {
  opacity: 1;
  transform: scale(1) translateY(0) !important;
}

.nova-overlay--closing {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
}

.nova-overlay--minimized {
  height: 42px !important;
  overflow: hidden;
}

.nova-overlay--minimized .nova-overlay__body,
.nova-overlay--minimized .nova-overlay__footer,
.nova-overlay--minimized .nova-overlay__progress {
  display: none;
}

/* ── Overlay Header ── */
.nova-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-secondary, rgba(255,255,255,0.03));
  border-bottom: 1px solid var(--border-default, rgba(255,255,255,0.06));
  user-select: none;
  flex-shrink: 0;
}

.nova-overlay__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #e0e0e0);
  letter-spacing: 0.3px;
}

.nova-overlay__controls {
  display: flex;
  gap: 6px;
}

.nova-overlay__btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: var(--bg-tertiary, rgba(255,255,255,0.06));
  color: var(--text-secondary, #888);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.nova-overlay__btn:hover {
  background: var(--bg-hover, rgba(255,255,255,0.12));
  color: var(--text-primary, #e0e0e0);
}

.nova-overlay__btn--close:hover {
  background: var(--color-danger, #e74c3c);
  color: white;
}

/* ── Overlay Body ── */
.nova-overlay__body {
  flex: 1;
  overflow: auto;
  padding: var(--space-md, 16px);
  min-height: 0;
}

/* ── Overlay Footer ── */
.nova-overlay__footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border-default, rgba(255,255,255,0.06));
  background: var(--bg-secondary, rgba(255,255,255,0.03));
  flex-shrink: 0;
}

/* ── Overlay Progress Bar ── */
.nova-overlay__progress {
  height: 3px;
  background: var(--bg-tertiary, rgba(255,255,255,0.06));
  flex-shrink: 0;
}

.nova-overlay__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary, #6c5ce7), var(--accent-secondary, #a29bfe));
  transition: width 0.3s ease;
  border-radius: 0 2px 2px 0;
}

/* ── Arcade Launcher ── */
.nova-arcade-launcher {
  padding: 0;
}

.nova-arcade__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.nova-arcade__header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text-primary, #e0e0e0);
}

.nova-arcade__hint {
  font-size: 11px;
  color: var(--text-tertiary, #666);
  background: var(--bg-tertiary, rgba(255,255,255,0.06));
  padding: 3px 8px;
  border-radius: 4px;
}

.nova-arcade__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.nova-arcade__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 12px;
  border: 1px solid var(--border-default, rgba(255,255,255,0.08));
  border-radius: var(--radius-md, 8px);
  background: var(--bg-secondary, rgba(255,255,255,0.03));
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.nova-arcade__card:hover {
  border-color: var(--accent-primary, #6c5ce7);
  background: var(--bg-hover, rgba(108,92,231,0.1));
  transform: translateY(-2px);
}

.nova-arcade__icon {
  font-size: 32px;
}

.nova-arcade__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #e0e0e0);
}

.nova-arcade__desc {
  font-size: 11px;
  color: var(--text-secondary, #888);
  line-height: 1.3;
}

.nova-arcade__difficulty {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nova-arcade__difficulty--easy {
  background: rgba(46,204,113,0.15);
  color: #2ecc71;
}

.nova-arcade__difficulty--medium {
  background: rgba(241,196,15,0.15);
  color: #f1c40f;
}

.nova-arcade__difficulty--hard {
  background: rgba(231,76,60,0.15);
  color: #e74c3c;
}

.nova-arcade__score {
  font-size: 11px;
  color: var(--accent-primary, #6c5ce7);
  font-weight: 600;
}

/* ── Game Container ── */
.nova-game-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a1a;
}

.nova-game-container canvas {
  display: block;
  image-rendering: pixelated;
}

/* ── Waiting Suggestion ── */
.nova-waiting-suggestion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nova-waiting-suggestion__text {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nova-waiting-suggestion__icon {
  font-size: 28px;
}

.nova-waiting-suggestion__text strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary, #e0e0e0);
  margin-bottom: 2px;
}

.nova-waiting-suggestion__text p {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary, #888);
}

.nova-waiting-suggestion__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ── NOVA Buttons (minimal) ── */
.nova-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nova-btn--primary {
  background: var(--accent-primary, #6c5ce7);
  color: white;
}

.nova-btn--primary:hover {
  background: var(--accent-hover, #5a4bd1);
}

.nova-btn--ghost {
  background: transparent;
  color: var(--text-secondary, #888);
  border: 1px solid var(--border-default, rgba(255,255,255,0.1));
}

.nova-btn--ghost:hover {
  background: var(--bg-hover, rgba(255,255,255,0.06));
  color: var(--text-primary, #e0e0e0);
}

/* ── Game Overlays (positioned inside game container) ── */
.nova-game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,26,0.92);
  z-index: 10;
}

.nova-game-overlay__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-primary, #6c5ce7);
  margin-bottom: 8px;
}

.nova-game-overlay__score {
  font-size: 18px;
  color: var(--text-primary, #e0e0e0);
  margin-bottom: 20px;
}

.nova-game-overlay__btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  background: var(--accent-primary, #6c5ce7);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.nova-game-overlay__btn:hover {
  background: var(--accent-hover, #5a4bd1);
}
