@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --background-body: #fdf2f8;
  --background-content: #ffffff;
  --text-primary: #831843;
  --text-secondary: #64748b;
  --border-color: #fce7f3;
  --card-background: #ffffff;
  --accent-color: #ec4899;
  --accent-hover: #db2777;
  --gradient-primary: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
}

/* Dark Mode Colors */
[data-theme="dark"] {
  --background-body: #0f172a;
  --background-content: #1e293b;
  --text-primary: #fce7f3;
  --text-secondary: #94a3b8;
  --border-color: #334155;
  --card-background: #1e293b;
  --accent-color: #f472b6;
  --accent-hover: #f9a8d4;
  --gradient-primary: linear-gradient(135deg, #f472b6 0%, #f9a8d4 100%);
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-primary);
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  background-color: #e8eef5;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(236, 72, 153, 0.03) 50px, rgba(236, 72, 153, 0.03) 51px);
  background-attachment: fixed;
}

body::before,
body::after {
  content: none;
}

.nav-bg-color {
  background: var(--gradient-primary);
  height: 60px;
  width: 111%;
  margin-left: -20px;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.2);
}

.logo {
  color: #fff;
  width: 240px;
  align-items: center;
  display: flex;
  margin-left: auto;
  margin-right: auto;
}

.nav-btn {
  z-index: 99;
  transition: all 0.3s ease;
  position: absolute;
  left: 15px;
}

.nav-relative {
  position: relative !important;
}

.mt-1 {
  margin-top: 10px;
}

.container {
  width: 100%;
  max-width: 360px;
  margin: 0px auto;
  background-color: #ffffff;
  background-image:
    radial-gradient(circle at 2px 2px, rgba(236, 72, 153, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
  background-size: 30px 30px, 100% 100%;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(244, 114, 182, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  position: relative;
  z-index: 1;
  padding: 0 20px 20px 20px;
  border-radius: 0;
  overflow: hidden;
}

header h1 {
  text-align: center;
  color: var(--accent-color);
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 2.2em;
  font-weight: 700;
}
.search-bar {
  width: calc(100% - 24px);
  padding: 12px;
  margin-bottom: 15px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  box-sizing: border-box;
  background-color: #ffffff;
  background-image:
    linear-gradient(to right, rgba(244, 114, 182, 0.02) 0%, rgba(255, 255, 255, 1) 50%, rgba(244, 114, 182, 0.02) 100%);
  color: var(--text-primary);
  font-size: 1em;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.search-bar:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.05);
}
.search-bar::placeholder {
  color: var(--text-secondary);
}
.header-description {
  text-align: center;
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-bottom: 25px;
  padding: 0 10px;
}
.header-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.spGames {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  padding: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
  border-radius: 15px;
  border: 2px solid #e8eef5;
  border-bottom: 3px solid var(--accent-color);
  color: var(--accent-color);
  font-weight: 600;
}

.btn {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-weight: 600;
  border: 2px solid rgba(236, 72, 153, 0.3);
  border-radius: 50px;
  padding: 10px 22px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow:
    0 8px 25px rgba(236, 72, 153, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.btn:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.6);
}

.section-title {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 4px solid transparent;
  background: linear-gradient(white, white) padding-box,
              var(--gradient-primary) border-box;
  border-bottom: 4px solid;
  border-image-slice: 1;
  border-image-source: var(--gradient-primary);
  display: inline-block;
  width: auto;
}
.all-games-section {
  text-align: center;
  background-color: transparent;
  padding: 20px 0;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}
.title-decorator {
  display: none;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.game-item {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  position: relative;
}
.game-item::before {
  display: none;
}
.game-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: rgba(236, 72, 153, 0.3);
}
.game-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 0;
  background-color: #e0e0e0;
  border: none;
  border-bottom: 1px solid var(--border-color);
}
.game-item h3 {
  font-size: 1em;
  margin: 15px 10px;
  color: var(--text-primary);
  line-height: 1.35;
  flex-grow: 1;
}

/* .play-now-btn,
.play-game-button {
  padding: 15px;
  margin: 10px auto 15px auto;
  background-color: transparent;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
  font-size: 16px;
  cursor: pointer;
}
.play-now-btn:hover,
.play-game-button:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.play-now-btn::after,
.play-game-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid var(--accent-color);
  transition: border-left-color 0.3s ease;
}
.play-now-btn:hover::after,
.play-game-button:hover::after {
  border-left-color: white;
}

.play-now-btn {
  width: 48px;
  height: 48px;
} */

.play-now-btn {
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  border: none;
  padding: 10px 24px;
  cursor: pointer;
  font-size: 0.9em;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
  transition: all 0.3s ease;
}
.play-game-button {
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9em;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
  transition: all 0.3s ease;
}
.play-game-button:hover,
.play-now-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
  transform: translateY(-2px);
}

.play-now-btn:active {
  background: var(--accent-hover);
  transform: translateY(0px);
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

/* .play-game-button {
  width: 50px;
  height: 50px;
  border-width: 3px;
} */

/* .play-game-button::after {
  border-top-width: 12px;
  border-bottom-width: 12px;
  border-left-width: 20px;
} */

.more-button-container {
  text-align: center;
  margin-bottom: 30px;
}
.what-is-section {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
  padding: 20px;
  margin: 0 -20px 20px -20px;
  border-top: 2px solid #e8eef5;
  border-bottom: 2px solid #e8eef5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(255, 255, 255, 1);
  position: relative;
}
.what-is-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(236, 72, 153, 0.3) 50%, transparent 100%);
}
.what-is-section h2 {
  text-align: left;
  font-size: 1.3em;
  margin-bottom: 10px;
  color: var(--text-primary);
  padding-bottom: 5px;
  border-bottom: 3px solid;
  border-image-slice: 1;
  border-image-source: var(--gradient-primary);
  display: inline-block;
}
.what-is-section p,
.what-is-section ul {
  font-size: 0.9em;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 15px;
}
.what-is-section ul {
  padding-left: 20px;
}
.what-is-section li {
  margin-bottom: 8px;
}
footer {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 20px;
}
footer .btn {
  padding: 8px 15px;
  font-size: 0.85em;
}

.game-details-page .container {
  height: 100vh;
  padding: 0;
}
.header {
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  padding: 12px 0;
  font-size: 1.8em;
  font-weight: bold;
  width: 100%;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
}
.header-link-wrapper {
  text-decoration: none;
}
.content-area {
  padding: 10px;
  background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
}
.game-display-area {
  width: 100%;
  height: 250px;
  background-color: #eaeaea;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.game-meta-info {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e8eef5;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.game-icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #ddd;
}

.game-title-details h2 {
  margin: 0 0 5px 0;
  font-size: 1.3em;
  color: #333;
  /* Truncate text */
  max-width: 150px; /* Adjust based on your layout */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-plays {
  margin: 0;
  font-size: 0.9em;
  color: #777;
  /* Truncate text */
  max-width: 100px; /* Adjust based on your layout */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-description-content {
  padding: 15px;
  border: 2px solid #e8eef5;
  border-left: 4px solid var(--accent-color);
  border-radius: 8px;
  background: linear-gradient(to right, #f0f7ff 0%, #ffffff 10%, #ffffff 100%);
  margin-bottom: 20px;
  box-shadow: 0 3px 12px rgba(236, 72, 153, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}
.game-description-content h3 {
  font-size: 1.2em;
  color: #333;
  margin-top: 0;
  margin-bottom: 8px;
}
.game-description-content h4 {
  font-size: 1em;
  color: #444;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: bold;
}
.game-description-content p {
  font-size: 0.9em;
  line-height: 1.6;
  color: #555;
  margin-bottom: 0;
}
.game-iframe {
  display: none;
  width: 100%;
  height: 100%;
  border: none;
  background-color: #000;
}
.game-controls-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  gap: 6px;
}
.control-btn {
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 5px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.control-btn:hover {
  background-color: rgba(0, 0, 0, 0.6);
}
.control-btn svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}
#closeGameBtn {
  display: none;
}
.game-display-area.is-playing .play-game-button {
  display: none;
}
.game-display-area.is-playing .game-iframe,
.game-display-area.is-playing #closeGameBtn {
  display: block;
}

/* ============================================
   BOX DESIGN VARIANTS FOR SELECTION
   ============================================ */

/* Variant 1: Flat Modern Card */
.box-variant-1 {
  background: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}
.box-variant-1::before {
  display: none !important;
}
.box-variant-1:hover {
  background: #ffffff !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
  border: none !important;
}

/* Variant 2: Material Design Card */
.box-variant-2 {
  background: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.1) !important;
}
.box-variant-2::before {
  display: none !important;
}
.box-variant-2:hover {
  background: #ffffff !important;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.15) !important;
  border: none !important;
}

/* Variant 3: Outlined Card */
.box-variant-3 {
  background: #ffffff !important;
  border: 2px solid #e0e7ff !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08) !important;
}
.box-variant-3::before {
  display: none !important;
}
.box-variant-3:hover {
  background: #ffffff !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15) !important;
}

/* Variant 4: Glassmorphism Card */
.box-variant-4 {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 20px !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}
.box-variant-4::before {
  display: none !important;
}
.box-variant-4:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(236, 72, 153, 0.3) !important;
}

/* Variant 5: Neumorphism (Soft UI) */
.box-variant-5 {
  background: #e8eef5 !important;
  border: none !important;
  border-radius: 20px !important;
  box-shadow:
    8px 8px 16px rgba(163, 177, 198, 0.6),
    -8px -8px 16px rgba(255, 255, 255, 0.5) !important;
}
.box-variant-5::before {
  display: none !important;
}
.box-variant-5:hover {
  background: #e8eef5 !important;
  box-shadow:
    4px 4px 8px rgba(163, 177, 198, 0.6),
    -4px -4px 8px rgba(255, 255, 255, 0.5) !important;
  border: none !important;
}

/* Variant 6: Gaming Card (Neon Accent) */
.box-variant-6 {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 2px solid rgba(236, 72, 153, 0.2) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.15) !important;
}
.box-variant-6::before {
  background: linear-gradient(90deg, transparent 0%, rgba(236, 72, 153, 0.3) 50%, transparent 100%) !important;
  height: 3px !important;
}
.box-variant-6:hover {
  background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%) !important;
  border-color: var(--accent-color) !important;
  box-shadow:
    0 8px 30px rgba(236, 72, 153, 0.25),
    0 0 0 1px rgba(236, 72, 153, 0.2) !important;
}

/* Variant 7: Classic Card with Shadow */
.box-variant-7 {
  background: #ffffff !important;
  border: 1px solid #ddd !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}
.box-variant-7::before {
  display: none !important;
}
.box-variant-7:hover {
  background: #ffffff !important;
  border-color: #ccc !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Variant 8: Elevated Card */
.box-variant-8 {
  background: #ffffff !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.24) !important;
}
.box-variant-8::before {
  display: none !important;
}
.box-variant-8:hover {
  background: #ffffff !important;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.15),
    0 6px 6px rgba(0, 0, 0, 0.1) !important;
  border: none !important;
}

/* Variant 9: Bordered Gradient Card */
.box-variant-9 {
  background: linear-gradient(to bottom, #ffffff 0%, #f0f7ff 100%) !important;
  border: 3px solid transparent !important;
  border-image: linear-gradient(135deg, #f472b6, #ec4899) 1 !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.12) !important;
}
.box-variant-9::before {
  display: none !important;
}
.box-variant-9:hover {
  background: linear-gradient(to bottom, #ffffff 0%, #dbeafe 100%) !important;
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.2) !important;
}

/* Variant 10: Minimal Rounded Card */
.box-variant-10 {
  background: #fafbff !important;
  border: 1px solid #f0f4f8 !important;
  border-radius: 24px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}
.box-variant-10::before {
  display: none !important;
}
.box-variant-10:hover {
  background: #ffffff !important;
  border-color: #e8eef5 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide In From Left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Shimmer Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Spin Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Apply Fade In to Game Items */
.game-item {
  animation: fadeIn 0.5s ease-out;
  animation-fill-mode: both;
}

.game-item:nth-child(1) { animation-delay: 0.1s; }
.game-item:nth-child(2) { animation-delay: 0.2s; }
.game-item:nth-child(3) { animation-delay: 0.3s; }
.game-item:nth-child(4) { animation-delay: 0.4s; }
.game-item:nth-child(5) { animation-delay: 0.5s; }
.game-item:nth-child(6) { animation-delay: 0.6s; }
.game-item:nth-child(7) { animation-delay: 0.7s; }
.game-item:nth-child(8) { animation-delay: 0.8s; }
.game-item:nth-child(9) { animation-delay: 0.9s; }
.game-item:nth-child(10) { animation-delay: 1s; }

/* Smooth Transitions for All Interactive Elements */
a, button, .btn, .play-now-btn, .game-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header Slide In */
header {
  animation: slideInLeft 0.6s ease-out;
}

/* Button Pulse on Hover */
.btn:hover, .play-now-btn:hover {
  animation: pulse 0.6s ease-in-out;
}

/* ============================================
   DARK MODE TOGGLE BUTTON
   ============================================ */

.dark-mode-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.dark-mode-toggle svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* Dark Mode Adjustments */
[data-theme="dark"] body {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .game-item {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .game-item:hover {
  background: rgba(30, 41, 59, 0.95);
  box-shadow: 0 12px 40px rgba(244, 114, 182, 0.3);
}

[data-theme="dark"] .search-bar {
  background-color: #1e293b;
  border-color: #334155;
  color: var(--text-primary);
}

[data-theme="dark"] .what-is-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
  border-color: #334155;
}

/* ============================================
   FAVORITES FEATURE
   ============================================ */

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.favorite-btn svg {
  fill: #cbd5e1;
  transition: all 0.3s ease;
}

.favorite-btn.favorited svg {
  fill: #ef4444;
  animation: heartBeat 0.3s ease;
}

.favorite-btn:hover svg {
  fill: #ef4444;
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(1.1);
  }
  75% {
    transform: scale(1.25);
  }
}

[data-theme="dark"] .favorite-btn {
  background: rgba(30, 41, 59, 0.9);
}

/* ============================================
   LOADING STATES
   ============================================ */

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Skeleton Loading for Game Cards */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

.skeleton-image {
  width: 100%;
  height: 130px;
  margin-bottom: 10px;
}

.skeleton-text {
  height: 20px;
  margin: 10px;
}

.skeleton-button {
  height: 40px;
  margin: 10px;
  border-radius: 12px;
}

/* Loading State for Game Items */
.game-item.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.game-item.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid rgba(236, 72, 153, 0.2);
  border-radius: 50%;
  border-top-color: var(--accent-color);
  animation: spin 0.8s linear infinite;
}

/* Button Loading State */
.btn.loading, .play-now-btn.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
  padding-right: 45px;
}

.btn.loading::after, .play-now-btn.loading::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.6s linear infinite;
}

[data-theme="dark"] .loading-overlay {
  background: rgba(30, 41, 59, 0.9);
}

[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
}
