/* Ocean Blue Bootstrap Theme (Lumen Font Update) */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

:root {
  /* Ocean Blue Palette */
  --theme-primary: #008cba;
  --theme-primary-hover: #00a8df;
  --theme-bg-base: #0f1417;
  /* Very dark slate/blue */
  --theme-bg-surface: #182025;
  /* Slightly lighter for cards/nav */
  --theme-text-main: #e2e8f0;
  --theme-text-muted: #94a3b8;

  /* Overriding Bootstrap Defaults */
  --bs-body-bg: var(--theme-bg-base);
  --bs-body-color: var(--theme-text-main);
  --bs-primary: var(--theme-primary);
  --bs-primary-rgb: 0, 140, 186;

  /* Sharpened Corners (Less Rounded) */
  --bs-border-radius: 0.15rem;
  --bs-border-radius-sm: 0.1rem;
  --bs-border-radius-lg: 0.2rem;

  /* Lumen Font Override */
  --bs-font-sans-serif: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --bs-body-font-family: var(--bs-font-sans-serif);
}

/* Typography & Backgrounds */
body {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-family: var(--bs-body-font-family);
}

/* Custom Navbar */
.navbar-custom {
  background-color: var(--theme-bg-surface);
  border-bottom: 1px solid rgba(0, 140, 186, 0.2);
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
  color: var(--theme-text-main);
}

.navbar-custom .nav-link:hover {
  color: var(--theme-primary-hover);
}

/* Custom Buttons */
.btn-primary {
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--theme-primary-hover);
  border-color: var(--theme-primary-hover);
}

.btn-outline-primary {
  color: var(--theme-primary-hover);
  border-color: var(--theme-primary);
}

.btn-outline-primary:hover {
  background-color: var(--theme-primary);
  color: #fff;
}

/* Cards & Surfaces */
.card {
  background-color: var(--theme-bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Text Utilities */
.text-primary {
  color: var(--theme-primary-hover) !important;
}

.text-muted {
  color: var(--theme-text-muted) !important;
}

/* Make sure the nav-link is positioned relatively */
.navbar-custom .nav-link {
  position: relative;
  transition: color 0.3s ease;
}

/* Create the invisible line using ::before so we don't break dropdowns! */
.navbar-custom .nav-link::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #00d2ff;
  /* Bright sky blue for the animated underline */
  transition: width 0.3s ease-in-out;
  transform: translateX(-50%);
}

/* When hovering, expand the line to 100% width */
.navbar-custom .nav-link:hover::before {
  width: 100%;
}

/* Make the text itself bright blue on hover */
.navbar-custom .nav-link:hover {
  color: #00d2ff !important;
}

/* Make search input longer and thinner */
.custom-search-input {
  width: 275px;
  /* Adjust this value to make it as long as you want */
  padding: 0.25rem 0.5rem;
  /* Reduces vertical height (thinner) */
  font-size: 0.9rem;
  /* Slightly smaller text for a sleeker look */
}

/* Ensure the button matches the height of the thinner input */
.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.9rem;
}

/* Container for the search bar logic */
.search-wrapper {
  position: relative;
  overflow: visible !important;
}

/* The dropdown menu styling */
#search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 9999 !important;
  display: none;
  background-color: #212529;
  border: 1px solid #444;
  margin-top: 5px;
  padding: 0;
  list-style: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#search-dropdown .dropdown-item {
  display: block;
  padding: 8px 12px;
  cursor: pointer;
  color: #fff;
}

#search-dropdown .dropdown-item:hover {
  background-color: #008cba;
}

/* Second, smaller Navbar (Updated to be a little lighter) */
.navbar-custom-2 {
  background-color: #1e262b;
  /* Lighter shade for better visibility */
  border-bottom: 1px solid rgba(0, 140, 186, 0.25);
  /* Slightly stronger border to define it */
  padding: 0.2rem 0;
  font-size: 0.85rem;
}


/* Links inside the second navbar */
.navbar-custom-2 .nav-link {
  color: #c0c6cc;
  /* Slightly brighter text color to contrast with the lighter background */
  padding: 0.3rem 0.6rem;
  transition: color 0.2s ease;
}

/* Hover effect */
.navbar-custom-2 .nav-link:hover {
  color: #00d2ff;
}

/* Welcome Banner Styling */
.welcome-banner {
  text-align: left;
  /* Keep it left-aligned to match your navbar containers */
  margin-bottom: 2rem;
}

.welcome-banner h1 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

.welcome-banner .lead {
  font-size: 1.25rem;
  max-width: 600px;
  /* Prevents text from stretching too wide */
}

/* Floating, contained bottom bar */
.bottom-bar-floating {
  background-color: var(--theme-bg-surface);
  border: 1px solid rgba(0, 140, 186, 0.2);
  /* Your blue border */
  border-radius: 2px;
  /* Rounded corners for that floating look */
  padding: 0.75rem 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
}

/* Ensure content stays aligned */
.bottom-bar-floating .brand-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--theme-text-main);
  text-decoration: none;
}

/* Hover effect for social links */
.social-link {
  transition: color 0.3s ease;
  color: var(--theme-text-muted);
  /* Starts muted */
}

.social-link:hover,
.social-link:hover .text-muted {
  color: #00d2ff !important;
  /* Your signature blue */
}

/* Apply the lift and tilt to all Bootstrap buttons */
.btn {
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
  will-change: transform;
}

/* 1. Lift effect on hover */
.btn:hover {
  transform: translateY(-2px);
}

/* 2. Tilt effect on click */
.btn:active {
  transform: translateY(-2px)
}

/* Custom "Darker" Click Effect for Primary Buttons */
.btn-primary:active {
  background-color: #006f94 !important;
  /* Darker blue */
  border-color: #006f94 !important;
}

/* ABOVE WAS MADE BY TheBigW below are additions by fone aka mr solar :) */

.vote-button {
  background: none;
  border: none;
  color: var(--theme-text-muted);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
  line-height: 1;
}
.vote-button:hover { color: var(--theme-text-main); }
.vote-button.active { color: var(--theme-primary); }
.vote-button.dislike.active { color: #f87171; }

.game-wrapper {
  position: relative;
}

.game-card {
  border-radius: 0 !important;
  overflow: hidden;
  transition: transform 0.15s ease;
  background-color: #212529 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.game-card img {
  display: block;
}

.game-hover-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;

  margin: 0;
  padding: 8px;

  opacity: 100 !important;

  background: #1a1d20;
  border-left: 1px solid #2d3139;
  border-right: 1px solid #2d3139;
  border-bottom: 1px solid #2d3139;
  border-top: none;

  border-radius: 0 !important;

  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;

  transition: transform 0.08s ease, visibility 0s linear 0.08s;

  z-index: 5;
}

.game-wrapper:hover .game-hover-panel {
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: transform 0.08s ease, visibility 0s linear 0s;
}

.game-wrapper:hover .game-card {
  transform: translateY(-0.5px);
}

.game-hover-panel span {
  color: #ffffff;
}

/* ── Carousel ── */

/* Outer flex row: [arrow] [track] [arrow] */
.carousel-outer {
  display: flex;
  align-items: stretch;
}

/* Clips cards that scroll off left/right; extend below so hover
   panels (position:absolute; top:100%) are not cut off. */
.games-carousel-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
  clip-path: inset(0 0 -100px 0);
}

.games-carousel {
  display: flex;
  gap: 10px;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.games-carousel-item {
  flex: 0 0 210px;
  min-width: 0;
  position: relative;
}

/* Arrows are flex children of .carousel-outer so they stretch
   to match the carousel track height automatically. */
.carousel-arrow {
  flex-shrink: 0;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  background: rgba(10, 14, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0 !important;
  padding: 0;
  transition: background 0.15s;
}

.carousel-arrow:hover {
  background: rgba(0, 140, 186, 0.85);
}

.carousel-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

.icon-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 1.25rem;
  line-height: 1;

  width: 1.5rem;
  height: 1.5rem;

  vertical-align: middle;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
}

.price-tag .material-symbols-outlined {
  font-size: 1rem;
  line-height: 1;
}

body {
  overflow-x: hidden;
}

.vote-button {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-text-muted);
  cursor: pointer;
}
.vote-button:focus-visible {
  outline: 2px solid rgba(0, 210, 255, 0.6);
  outline-offset: 2px;
}
.vote-button .material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400;
  transition: font-variation-settings 0.2s ease, color 0.2s ease;
}
.vote-button.active {
  color: var(--theme-primary-hover);
}
.vote-button.dislike.active {
  color: #f87171;
}
.favorite-button.active {
  color: #facc15;
}
.vote-button.active .material-symbols-outlined,
.favorite-button.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 500;
}

.page-item {
  color: white;
}

.active {
  color: var(--theme-primary) !important;
}
.notif-row { transition: background .12s; }
.notif-row:hover { background: rgba(255,255,255,.05) !important; }
