/* ==========================================================================
   Jogos Gratuitos Hoje - Design Minimalista Refinado (Steam, Epic Games & GOG)
   Estilo contemporâneo, limpo, sem ruídos ou poluição visual
   ========================================================================== */

:root {
  --bg-deep: #030509;
  --bg-card: rgba(12, 16, 23, 0.75);
  --bg-card-hover: rgba(18, 24, 35, 0.95);

  --red-core: #ff2a44;
  --red-hover: #e01b33;
  --red-glow: rgba(255, 42, 68, 0.28);
  --red-border: rgba(255, 42, 68, 0.35);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 42, 68, 0.45);

  --text-pure: #ffffff;
  --text-muted: #8e99a8;
  --text-faint: #555f6f;

  --font-display: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-text: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Barra de Scroll Customizada com Cores do Tema
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  border: 2px solid var(--bg-deep);
  transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--red-core);
  box-shadow: 0 0 10px var(--red-glow);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) var(--bg-deep);
}

body {
  background-color: var(--bg-deep);
  color: var(--text-pure);
  font-family: var(--font-text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Canvas de Partículas & Efeitos de Fundo
   ========================================================================== */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
  background-image: url('data:image/svg+xml,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noiseFilter%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.85%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noiseFilter)%22/%3E%3C/svg%3E');
}

.radial-vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 10%, rgba(255, 42, 68, 0.08) 0%, transparent 65%),
              radial-gradient(circle at 50% 60%, transparent 40%, #030509 95%);
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   Botão de Notificações no Canto Superior Direito (Apenas Ícone SVG + Texto)
   ========================================================================== */
.top-bar {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 99;
}

.btn-notification-top {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-text);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
  user-select: none;
}

.btn-notification-top:hover {
  color: #fff;
}

.btn-notification-top.active {
  color: var(--red-core);
}

.btn-notification-top.active:hover {
  color: #ff6278;
}

.bell-svg {
  stroke: currentColor;
  transition: transform 0.25s ease;
}

.btn-notification-top:hover .bell-svg {
  transform: rotate(14deg);
}

/* ==========================================================================
   Container Principal
   ========================================================================== */
.main-wrapper {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}

.header-minimal {
  text-align: center;
  margin-bottom: 36px;
  padding-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffffff 25%,
    #ff2a44 50%,
    #ff8093 75%,
    #ffffff 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShimmer 5s ease-in-out infinite, titleGlowPulse 3s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 18px rgba(255, 42, 68, 0.4));
  position: relative;
  display: inline-block;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-title:hover {
  filter: drop-shadow(0 0 32px rgba(255, 42, 68, 0.8));
  transform: scale(1.02);
}

@keyframes titleShimmer {
  0% {
    background-position: 100% 0;
  }
  50% {
    background-position: 0% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

@keyframes titleGlowPulse {
  0% {
    filter: drop-shadow(0 0 12px rgba(255, 42, 68, 0.3));
  }
  100% {
    filter: drop-shadow(0 0 28px rgba(255, 42, 68, 0.75));
  }
}

/* ==========================================================================
   Barra de Abas (Steam, Epic Games, GOG)
   ========================================================================== */
.tabs-nav-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.store-tabs {
  display: inline-flex;
  background: rgba(12, 16, 23, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  background: var(--red-core);
  color: #fff;
  box-shadow: 0 4px 16px var(--red-glow);
}

/* ==========================================================================
   Conteúdo das Abas (Painéis)
   ========================================================================== */
.tabs-content {
  position: relative;
}

.tab-pane {
  display: none;
  animation: fadeInTab 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-pane.active {
  display: block;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.games-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   Seção Em Breve da Epic Games (Dentro da aba Epic)
   ========================================================================== */
.upcoming-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.upcoming-header {
  margin-bottom: 14px;
}

.upcoming-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #8cc4ff;
  text-transform: uppercase;
}

/* ==========================================================================
   Linha / Card de Jogo (Super Limpo, sem descrição, sem preço riscado)
   ========================================================================== */
.game-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 18px 22px;
  gap: 20px;
  transition: var(--transition);
}

.game-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px var(--red-glow);
  transform: translateY(-1px);
}

.upcoming-row {
  border-color: rgba(255, 255, 255, 0.05);
}

.upcoming-row:hover {
  border-color: rgba(140, 196, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(140, 196, 255, 0.15);
}

.game-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  flex: 1;
}

.game-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
  line-height: 1.25;
}

/* ==========================================================================
   Micro Metadados SVG Minimalistas (Sem caixas pesadas artificiais)
   ========================================================================== */
.game-meta-clean {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  user-select: none;
}

.game-meta-clean .meta-svg {
  stroke: var(--text-muted);
  flex-shrink: 0;
}

.game-meta-clean.urgent {
  color: #ff6e80;
}

.game-meta-clean.urgent .meta-svg {
  stroke: #ff2a44;
}

.game-meta-clean.upcoming {
  color: #8cc4ff;
}

.game-meta-clean.upcoming .meta-svg {
  stroke: #8cc4ff;
}

/* ==========================================================================
   Ações e Botão Resgatar
   ========================================================================== */
.game-action {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.price-free {
  font-size: 1rem;
  font-weight: 700;
  color: var(--red-core);
  letter-spacing: 0.5px;
}

.price-soon {
  font-size: 0.85rem;
  font-weight: 700;
  color: #8cc4ff;
  letter-spacing: 0.5px;
}

.btn-resgatar {
  background: var(--red-core);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 9px 18px;
  border-radius: 6px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.btn-resgatar:hover {
  background: var(--red-hover);
  box-shadow: 0 4px 14px var(--red-glow);
  transform: translateY(-1px);
}

.empty-row {
  background: rgba(12, 16, 23, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 18px 20px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ==========================================================================
   Toast Notification Flutuante
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(25px);
  background: rgba(14, 18, 27, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--red-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 24px var(--red-glow);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 30px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  white-space: nowrap;
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Responsividade Mobile
   ========================================================================== */
@media (max-width: 650px) {
  .top-bar {
    top: 14px;
    right: 16px;
  }

  .main-wrapper {
    padding: 70px 16px 60px;
  }

  .store-tabs {
    width: 100%;
    justify-content: center;
  }

  .tab-btn {
    flex: 1;
    text-align: center;
    padding: 9px 12px;
    font-size: 0.8rem;
  }

  .game-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
  }

  .game-action {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 12px;
  }
}
