/* ============================================
   PREMIUM GAMING PLATFORM UI
   Sleek, Mature, High-End Casino Aesthetic
   ============================================ */

:root {
  --bg-dark: #1e1f26;
  --bg-card: #2a2c35;
  --bg-card-hover: #343743;
  --accent-red: #e32f3e;
  --accent-red-hover: #f13c4b;
  --accent-gold: #f2c94c;
  --text-main: #ffffff;
  --text-muted: #9a9ca2;
  --border-light: rgba(255, 255, 255, 0.05);
  --border-radius-card: 16px;
  --border-radius-btn: 30px;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p,
span,
div {
  line-height: 1.6;
}

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

.text-white {
  color: #fff !important;
}

.text-red {
  color: var(--accent-red) !important;
}

.bg-red {
  background-color: var(--accent-red) !important;
}

/* --- Layout & Glass Cards --- */
.glass-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-card);
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.glass-card:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(227, 47, 62, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* --- Buttons --- */
.btn-primary-custom {
  background-color: var(--accent-red);
  color: #fff;
  border: none;
  padding: 0.6rem 1.8rem;
  border-radius: var(--border-radius-btn);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(227, 47, 62, 0.3);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background-color: var(--accent-red-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 47, 62, 0.5);
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--text-muted);
  padding: 0.6rem 1.8rem;
  border-radius: var(--border-radius-btn);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover,
.btn-outline-custom:focus {
  border-color: var(--accent-red);
  background-color: rgba(227, 47, 62, 0.05);
  color: var(--accent-red);
}

/* --- Navigation --- */
.custom-navbar {
  background-color: rgba(30, 31, 38, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 1px;
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff !important;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, rgba(30, 31, 38, 0.9), rgba(30, 31, 38, 0.7)), url('../img/13l1.jpeg') center/cover;
  border-bottom: 1px solid var(--border-light);
  padding: 6rem 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* Remove cartoonish floating elements */
.hero-coin,
.floating-elements {
  display: none;
}

/* --- Game Grid --- */
.game-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 576px) {
  .game-img-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.game-card {
  position: relative;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  aspect-ratio: 3/4;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  cursor: pointer;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover {
  border-color: rgba(227, 47, 62, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.game-card:hover img {
  transform: scale(1.05);
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 31, 38, 0.95), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
  opacity: 1;
}

/* --- Features Section --- */
.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-red);
  margin-bottom: 1.5rem;
}

/* --- Accordion --- */
.accordion-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-btn);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.accordion-button {
  background-color: transparent;
  color: var(--text-main);
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(227, 47, 62, 0.1);
  color: var(--text-main);
}

.accordion-button::after {
  filter: invert(1);
}

.accordion-body {
  color: var(--text-muted);
  background-color: transparent;
  padding: 1.5rem;
  border-top: 1px solid var(--border-light);
}

/* --- Blog Content Wrapper --- */
.blog-content-wrapper {
  color: var(--text-muted) !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.blog-content-wrapper p,
.blog-content-wrapper span,
.blog-content-wrapper div {
  color: var(--text-muted) !important;
}

.blog-content-wrapper h1,
.blog-content-wrapper h2,
.blog-content-wrapper h3 {
  color: #fff !important;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-content-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-card);
  margin: 1.5rem 0;
}

/* --- Footer --- */
.footer-area {
  background-color: #050608;
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem;
}

.footer-area h4,
.footer-area h5 {
  color: #fff;
}

.footer-area .nav-link {
  padding: 0 !important;
  text-transform: none;
  font-size: 0.95rem;
}

.footer-area .nav-link:hover {
  color: var(--accent-red) !important;
}

/* --- Utilities --- */
.glow-text-red {
  text-shadow: 0 0 20px rgba(227, 47, 62, 0.4);
}