/* ========================================================
   PEARLBET - CS2 CASINO GAMES GRID & TOAST NOTIFICATION
   ======================================================== */

.games-section-wrap {
  width: 100%;
  max-width: 1400px;
  margin: 20px auto 70px auto;
  padding: 0 24px;
}

.games-section-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.games-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.games-header-icon {
  width: 26px;
  height: 26px;
  fill: #2dd4bf;
  filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.5));
}

.games-section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.6px;
}

.games-section-subtitle {
  font-size: 13px;
  color: #657084;
  margin-top: 4px;
}

/* 14 Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  width: 100%;
}

/* Individual Game Card */
.game-card {
  background: #121520;
  border: 1px solid #1c2233;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: #2dd4bf;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(45, 212, 191, 0.25);
}

/* Card Artwork Banner */
.game-banner-box {
  width: 100%;
  height: 145px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #090c12;
}

.game-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  filter: brightness(0.92) contrast(1.05);
}

.game-card:hover .game-banner-img {
  transform: scale(1.08);
  filter: brightness(1.08) contrast(1.12);
}

.game-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.55) 0%, rgba(8, 10, 16, 0.05) 45%, rgba(18, 21, 32, 0.95) 100%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-banner-overlay {
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.35) 0%, rgba(8, 10, 16, 0.0) 45%, rgba(18, 21, 32, 0.8) 100%);
}

/* Top Badges Overlay on Banner */
.card-badges-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}

.game-badge-tag {
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.game-badge-tag.badge-hot {
  background: rgba(245, 166, 35, 0.2);
  color: #f5a623;
  border: 1px solid rgba(245, 166, 35, 0.4);
}

.game-badge-tag.badge-live {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.game-badge-tag.badge-pvp {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.game-badge-tag.badge-new {
  background: rgba(45, 212, 191, 0.2);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.4);
}

.game-badge-tag.badge-high {
  background: rgba(192, 132, 252, 0.2);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.4);
}

.game-online-count {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(11, 14, 23, 0.75);
  padding: 3px 7px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 4px;
}

.online-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 5px #10b981;
}

/* Card Body Details */
.game-card-body {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141724;
}

.game-info-left {
  display: flex;
  flex-direction: column;
}

.game-card-name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.game-card-hint {
  font-size: 11px;
  color: #657084;
  margin-top: 2px;
}

.game-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1b2130;
  border: 1px solid #283146;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.game-card:hover .game-play-btn {
  background: #2dd4bf;
  color: #032b27;
  border-color: #5eead4;
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.5);
}

.game-play-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ========================================================
   TOAST NOTIFICATION (Sign-in prompt when clicked)
   ======================================================== */
.pearl-toast-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.pearl-toast {
  pointer-events: auto;
  background: #151926;
  border: 1px solid #2dd4bf;
  border-radius: 12px;
  padding: 14px 18px;
  min-width: 320px;
  max-width: 420px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 20px rgba(45, 212, 191, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.pearl-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(45, 212, 191, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2dd4bf;
  flex-shrink: 0;
}

.toast-icon-box svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.toast-content-box {
  flex: 1;
}

.toast-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.toast-action-btn {
  margin-top: 8px;
  background: linear-gradient(135deg, #10dc5e 0%, #00c74d 100%);
  border: none;
  border-radius: 6px;
  color: #062310;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11.5px;
  padding: 5px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.toast-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.toast-close-btn:hover {
  color: #fff;
}
