/* ==========================================================================
   AMIGA AI ORACLE & LIVE GAME BRIEFING HUD STYLES
   Cyberpunk Holographic Commodore Amiga Design System
   ========================================================================== */

/* --- Live Game Briefing HUD Overlay --- */
.briefing-hud-container {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-150%);
  width: 95%;
  max-width: 1200px;
  background: rgba(14, 18, 26, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid #336699;
  border-top: 3px solid var(--amiga-cyan, #00d2ff);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 210, 255, 0.15);
  z-index: 1050;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.briefing-hud-container.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.briefing-hud-inner {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Top Status Bar */
.hud-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.hud-brand-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: var(--amiga-cyan, #00d2ff);
  letter-spacing: 1px;
}

.hud-live-pulse {
  width: 8px;
  height: 8px;
  background: #00ff66;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff66;
  animation: hudPulse 1.5s infinite;
}

@keyframes hudPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #00ff66; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.hud-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-ctrl-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid #334155;
  color: #e2e8f0;
  font-family: var(--font-ui, sans-serif);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.hud-ctrl-btn:hover {
  background: rgba(51, 102, 153, 0.4);
  border-color: #4b8cd4;
  color: #fff;
}

.hud-ctrl-btn.active {
  background: #ff8800;
  border-color: #ffaa33;
  color: #000;
  font-weight: 800;
}

.hud-close-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-close-btn:hover {
  background: rgba(229, 57, 53, 0.2);
  border-color: #e53935;
  color: #ff5252;
}

/* Main Content Area */
.hud-main-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hud-left-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.hud-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-sub {
  color: #94a3b8;
  font-size: 12px;
  font-family: var(--font-mono, monospace);
}

.hud-badge-row {
  display: flex;
  gap: 6px;
}

.hud-chip-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.hud-chip-badge.glow {
  background: rgba(255, 170, 0, 0.15);
  border-color: #ffaa00;
  color: #ffc107;
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.25);
}

/* Grid Details: Lore, Controls, Tips */
.hud-grid-details {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 900px) {
  .hud-grid-details {
    grid-template-columns: 1fr;
  }
}

.hud-detail-box {
  background: rgba(18, 24, 34, 0.75);
  border: 1px solid #252f40;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hud-box-label {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 800;
  color: #00d2ff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-box-val {
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.45;
}

.hud-box-cheat {
  color: #ffbb33;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Similar Games Chips */
.hud-similar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.hud-sim-lbl {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: #ffaa00;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-sim-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hud-rec-pill {
  background: #1e293b;
  border: 1px solid #3b82f6;
  color: #fff;
  font-family: var(--font-ui, sans-serif);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.hud-rec-pill:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* --- Floating HUD Trigger Badge --- */
.hud-floating-trigger {
  position: fixed;
  top: 70px;
  right: 20px;
  background: linear-gradient(135deg, #0055aa 0%, #002b55 100%);
  border: 1px solid #00d2ff;
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 85, 170, 0.5), 0 0 10px rgba(0, 210, 255, 0.3);
  z-index: 1040;
  transition: all 0.2s ease;
  transform: scale(0.95);
}

.hud-floating-trigger:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.6);
}

/* --- AI Amiga Oracle Modal --- */
.oracle-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 17, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.oracle-modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.oracle-modal-panel {
  width: 100%;
  max-width: 960px;
  background: #111722;
  border: 1px solid #336699;
  border-top: 3px solid #ffaa00;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 170, 0, 0.15);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.oracle-modal-header {
  padding: 16px 20px;
  background: #161e2c;
  border-bottom: 1px solid #243044;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.oracle-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.oracle-ai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff8800 0%, #ff5500 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 0 15px rgba(255, 136, 0, 0.4);
}

.omh-main {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.omh-sub {
  font-size: 11px;
  color: #94a3b8;
}

.oracle-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.15s;
}

.oracle-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.oracle-modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.oracle-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #172130;
  border: 1px solid #334460;
  border-radius: 8px;
  padding: 10px 16px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

.oracle-search-bar i {
  color: #ffaa00;
  font-size: 16px;
}

.oracle-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-ui, sans-serif);
  font-size: 13px;
}

.oracle-search-bar input::placeholder {
  color: #64748b;
}

/* Mood filter pills */
.oracle-mood-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mood-pill {
  background: #18202d;
  border: 1px solid #2c384c;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.mood-pill:hover {
  border-color: #3b82f6;
  color: #fff;
}

.mood-pill.active {
  background: #2563eb;
  border-color: #60a5fa;
  color: #fff;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

/* Grid of Cards */
.oracle-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  min-height: 220px;
}

.oracle-loading, .oracle-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  gap: 10px;
}

.oracle-loading i.spin {
  animation: spin 1s linear infinite;
  color: #00d2ff;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.oracle-game-card {
  background: #151d2a;
  border: 1px solid #28354a;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.2s ease;
}

.oracle-game-card:hover {
  border-color: #4b8cd4;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.ogc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ogc-badge {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  color: #ffaa00;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ogc-rating {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
}

.ogc-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.ogc-meta {
  font-size: 11px;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
}

.ogc-lore {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.4;
}

.ogc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 6px;
}

.ogc-hw {
  font-size: 10px;
  font-family: var(--font-mono, monospace);
  color: #38bdf8;
}

.ogc-play-btn {
  background: linear-gradient(180deg, #0055aa 0%, #003366 100%);
  border: 1px solid #00d2ff;
  color: #fff;
  font-family: var(--font-ui, sans-serif);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.ogc-play-btn:hover {
  background: #0066cc;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}
