/*
Theme Name: CrazyGames Clone
Description: A WordPress theme that replicates CrazyGames.com design exactly
Version: 2.0
Author: Custom Theme
*/

/* CSS Custom Properties (Variables) */
:root {
  --primary-bg: #1a1a1a;
  --secondary-bg: #2a2a2a;
  --card-bg: #2a2a2a;
  --accent-color: #6366f1;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #999999;
  --border-radius: 12px;
  --transition: all 0.2s ease;
  --header-height: 70px;
  --sidebar-width: 240px;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Site Layout */
#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding-top: var(--header-height);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.main-content {
  padding: 20px 0;
}

/* Games Grid Layout */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(273px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* CrazyGames Grid Layout - Scoped to Index Page and Filtered Pages */
.home .content-container,
.filtered-games .content-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.home .main-content,
.filtered-games .main-content {
  padding: 2rem 0;
}

.home .game-section,
.filtered-games .game-section {
  margin-bottom: 3rem;
}

.home .section-header,
.filtered-games .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.home .section-title,
.filtered-games .section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.home .view-more,
.filtered-games .view-more {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.home .view-more:hover,
.filtered-games .view-more:hover {
  color: #3a8eef;
}

/* Hero Grid */
.home .hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  height: 400px;
  margin-bottom: 2rem;
}

.home .hero-main {
  grid-row: 1 / 3;
}

.home .hero-secondary {
  grid-column: 2;
}

/* Games Grid Override for Home and Filtered Pages */
.home .games-grid,
.filtered-games .games-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 1.5rem !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Game Card Styling */
.home .game-card,
.filtered-games .game-card {
  background: var(--card-bg) !important;
  border-radius: var(--border-radius) !important;
  overflow: hidden !important;
  transition: var(--transition) !important;
  border: 1px solid var(--border-color) !important;
  display: block !important;
}

.home .game-card:hover,
.filtered-games .game-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  border-color: var(--accent-color) !important;
}

.home .game-card a,
.filtered-games .game-card a {
  text-decoration: none !important;
  color: inherit !important;
  display: block !important;
}

.home .game-thumbnail,
.filtered-games .game-thumbnail {
  position: relative !important;
  width: 100% !important;
  height: 200px !important;
  overflow: hidden !important;
  background: var(--secondary-bg) !important;
}

.home .game-thumbnail img,
.filtered-games .game-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: var(--transition) !important;
}

.home .game-card:hover .game-thumbnail img,
.filtered-games .game-card:hover .game-thumbnail img {
  transform: scale(1.05) !important;
}

.home .game-placeholder,
.filtered-games .game-placeholder {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  color: var(--text-muted) !important;
  background: var(--secondary-bg) !important;
}

.home .game-play-button,
.filtered-games .game-play-button {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: rgba(0, 0, 0, 0.7) !important;
  color: white !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.2rem !important;
  opacity: 0 !important;
  transition: var(--transition) !important;
}

.home .game-card:hover .game-play-button,
.filtered-games .game-card:hover .game-play-button {
  opacity: 1 !important;
}

.home .game-info,
.filtered-games .game-info {
  padding: 1rem !important;
}

.home .game-title,
.filtered-games .game-title {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  margin: 0 0 0.5rem 0 !important;
  line-height: 1.3 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.home .game-category,
.filtered-games .game-category {
  color: var(--text-secondary) !important;
  font-size: 0.9rem !important;
  text-transform: capitalize !important;
}

/* Responsive Design for Home/Filtered Pages */
@media (max-width: 768px) {
  .home .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  .home .hero-main,
  .home .hero-secondary {
    grid-column: 1;
    grid-row: auto;
  }

  .home .games-grid,
  .filtered-games .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 1rem !important;
  }

  .home .section-header,
  .filtered-games .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 480px) {

  .home .games-grid,
  .filtered-games .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  }
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: #0C0D14;
  border-bottom: 1px solid #0C0D14;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  height: 100%;
  width: 100%;
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 1rem;
  justify-self: start;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  width: 40px;
  height: 40px;
}

.mobile-menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.125rem;
  transition: opacity 0.2s ease;
}

.site-logo:hover {
  opacity: 0.9;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1rem;
  justify-self: end;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-field {
  width: 320px;
  height: 44px;
  padding: 0 44px 0 16px;
  background-color: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 22px;
  color: #ffffff;
  font-size: 14px;
  transition: all 0.2s ease;
}

.search-field:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background-color: #333;
}

.search-field::placeholder {
  color: #999;
}

.search-submit {
  position: relative;
  right: 0px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.search-submit:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.user-menu {
  display: flex;
  align-items: center;
}

.user-avatar {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.user-avatar:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Sidebar Styles */
.site-sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background-color: var(--secondary-bg);
  border-right: 1px solid #444;
  overflow-y: auto;
  z-index: 999;
  transition: transform 0.3s ease;
}

/* Sidebar toggle functionality */
.site-sidebar.sidebar-hidden {
  transform: translateX(-100%);
}

.sidebar-collapsed .site-main {
  margin-left: 0;
  transition: margin-left 0.3s ease;
}

.sidebar-nav {
  padding: 20px 0;
}

.nav-section {
  margin-bottom: 20px;
}

.nav-separator {
  border: none;
  border-top: 1px solid #444;
  margin: 20px 0;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #cccccc;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background-color: #3a3a3a;
  color: #ffffff;
}

.nav-item.active {
  background-color: #6366f1;
  color: #ffffff;
  border-left-color: #8b5cf6;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-label {
  font-size: 14px;
  font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .site-main {
    margin-left: 0;
  }

  .site-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
  }

  .site-sidebar.sidebar-mobile-open {
    transform: translateX(0);
  }

  .sidebar-mobile-active {
    overflow: hidden;
  }

  .header-content {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0 0.5rem;
  }

  .search-field {
    width: 200px;
  }

  .header-left {
    padding-left: 0.5rem;
  }

  .header-right {
    padding-right: 0.5rem;
  }
}

@media (max-width: 480px) {
  .search-field {
    width: 150px;
  }

  .site-logo span {
    display: none;
  }
}

/* Game Thumbnail Styles */
.GameThumb_gameThumbLinkDesktop__wcir5 {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background-color: #2a2a2a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.GameThumb_gameThumbLinkDesktop__wcir5:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.GameThumb_gameThumbImage__FSasr {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
}

.GameThumb_gameThumbContent__xyz {
  padding: 16px;
  background-color: #2a2a2a;
  border-radius: 0 0 12px 12px;
}

.GameThumb_gameThumbTitle__abc {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.GameThumb_gameThumbDescription__def {
  font-size: 14px;
  color: #b0b0b0;
  margin: 0;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Game Label Styles */
.GameThumbLabel_label__dz3yR {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #ff6b35;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

.GameThumbLabel_label__dz3yR.featured {
  background-color: #ffd700;
  color: #000000;
}

.GameThumbLabel_label__dz3yR.new {
  background-color: #00ff88;
  color: #000000;
}

.GameThumbLabel_label__dz3yR.trending {
  background-color: #ff3366;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #1a1a1a;
  color: #ffffff;
  line-height: 1.5;
}

/* Emotion CSS Framework Classes */
.css-t2sft {
  position: relative;
  min-height: 100vh;
  background-color: #1a1a1a;
}

.css-linpkp {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.css-19dlbhf {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
}

.css-out5r8 {
  padding: 40px 20px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.css-gj9se8 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.css-7uj7ii {
  flex: 1;
}

.css-1uvr28v {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.css-category-description {
  font-size: 1.1rem;
  color: #cccccc;
  margin: 0;
  line-height: 1.6;
}

.css-sort-container {
  display: flex;
  align-items: center;
}

.css-sort-dropdown {
  position: relative;
}

.css-sort-select {
  background-color: #2a2a2a;
  border: 1px solid #444;
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  min-width: 150px;
}

.css-sort-select:focus {
  outline: none;
  border-color: #6366f1;
}

/* Grid styles are now handled by scoped inline CSS in taxonomy template only */

/* Game Thumb Styles */
.GameThumb_gameThumbLinkDesktop__wcir5 {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: #2a2a2a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  width: 100%;
  height: auto;
}

.GameThumb_gameThumbLinkDesktop__wcir5:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.GameThumb_isResponsiveGrid__b4QQf {
  aspect-ratio: 16/9;
}

.GameThumb_isResponsive__UwFpC {
  width: 100%;
}

.css-y8aj3r {
  position: relative;
}

.game-thumb-test-class {
  /* Additional test class for debugging */
}

.GameThumb_gameThumbImage__FSasr {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.GameThumb_gameThumbTitleContainer__J1K4D {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #ffffff;
  padding: 20px 15px 15px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.gameThumbTitleContainer {
  /* Alias for GameThumb_gameThumbTitleContainer__J1K4D */
}

/* Game Thumb Labels */
.GameThumbLabel_label__dz3yR {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

.GameThumbLabel_hot__CWhxn {
  background-color: #ff4444;
  color: #ffffff;
}

.GameThumbLabel_new__8pQpT {
  background-color: #00aa44;
  color: #ffffff;
}

.GameThumbLabel_updated__Z69rK {
  background-color: #0066cc;
  color: #ffffff;
}

.GameThumbLabel_topRated__xYfMw {
  background-color: #ff8800;
  color: #ffffff;
}

.GameThumbLabel_trending__9kQpX {
  background-color: #aa00ff;
  color: #ffffff;
}

/* Pagination and Load More */
.css-pagination-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.css-pagination {
  display: flex;
  gap: 10px;
  align-items: center;
}

.css-pagination a,
.css-pagination span {
  padding: 10px 15px;
  background-color: #2a2a2a;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid #444;
  transition: all 0.2s ease;
}

.css-pagination a:hover {
  background-color: #6366f1;
  border-color: #6366f1;
}

.css-pagination .current {
  background-color: #6366f1;
  border-color: #6366f1;
}

.css-load-more-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.css-no-games {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #cccccc;
}

/* Button Styles */
.Button_czyButton__y8IRs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.Button_czyButton--contained--purple__OBSeL {
  background-color: #6366f1;
  color: #ffffff;
}

.Button_czyButton--contained--purple__OBSeL:hover {
  background-color: #5855eb;
}

.Button_czyButton--contained--grey__sz05o {
  background-color: #4a4a4a;
  color: #ffffff;
}

.Button_czyButton--contained--grey__sz05o:hover {
  background-color: #5a5a5a;
}

.Button_czyButton--height50__yzcvJ {
  height: 50px;
}

.Button_czyButton--height34__0zFYJ {
  height: 34px;
  padding: 8px 16px;
}

.css-6qu7l6 {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* DETAIL PAGE STYLES */

/* Game Page Desktop Layout */
.GamePageDesktop_main__fSalE {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  gap: 20px;
}

.GamePageDesktop_mainContainer__QMRhB {
  flex: 1;
  min-width: 0;
}

.GamePageDesktop_rightSidebar__QgTMJ {
  width: 300px;
  flex-shrink: 0;
}

/* Game Frame Container */
.GamePageDesktop_gfContainer__ywzsh {
  margin-bottom: 20px;
}

.GamePageDesktop_gfAspectRatioContainer__f_hUp {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
}

.css-uwwqev {
  width: 100%;
  height: 100%;
}

.GameContainer {
  width: 100%;
  height: 100%;
}

.GameContainer iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.game-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: #2a2a2a;
  color: #ffffff;
  font-size: 18px;
}

/* Leaderboard Container */
.GamePageDesktop_leaderboardContainer__Mmiky {
  margin-bottom: 30px;
}

.GamePageDesktop_leaderboard__ddMUk {
  display: flex;
  justify-content: center;
}

/* Under Game Container */
.GamePageDesktop_underGameContainerGrid__cdhNC {
  margin-bottom: 40px;
}

.GamePageDesktop_underGameContainerGamesWrapper__Rahgf {
  text-align: center;
}

.css-ujjn8y {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.GamePageDesktop_showMoreButton__xWgfT {
  margin-top: 20px;
}

/* Game Info Container */
.GamePageDesktop_gameInfoContainer__SwKQu {
  margin-top: 40px;
}

.GameInfo_gameInfo__2UItk {
  display: flex;
  gap: 30px;
}

.GameInfo_isDesktop__KqJ3d {
  /* Desktop specific styles */
}

.GameInfo_leftColumn__vMTeN {
  flex: 1;
  min-width: 0;
}

.GameInfo_rightColumn__hExHC {
  width: 300px;
  flex-shrink: 0;
}

.GameInfo_roundedCornersContainer__D5D_p {
  background-color: #2a2a2a;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}

.GameInfo_leaderboard__rgrmE {
  /* Leaderboard specific styles */
}

.GameInfo_containerWithPadding__z9aMp {
  padding: 20px;
}

.GameInfo_containerWithPadding__z9aMp h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
}

.GameInfo_gameUnderTitle__EyUXF {
  padding: 0 20px 20px;
}

.GameInfo_styledDevName__MnwFN {
  color: #6366f1;
  font-weight: 600;
}

.GameInfo_styledHtmlDiv__Zg2EY {
  padding: 20px;
  color: #cccccc;
  line-height: 1.6;
}

.GameInfo_styledHtmlDiv__Zg2EY h2 {
  color: #ffffff;
  font-size: 1.5rem;
  margin: 0 0 15px 0;
}

.GameInfo_styledHtmlDiv__Zg2EY h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin: 20px 0 10px 0;
}

.GameInfo_styledHtmlDiv__Zg2EY p {
  margin: 0 0 15px 0;
}

.GameInfo_styledHtmlDiv__Zg2EY ol,
.GameInfo_styledHtmlDiv__Zg2EY ul {
  margin: 0 0 15px 0;
  padding-left: 20px;
}

.gameDescription_first {
  border-bottom: 1px solid #444;
}

.GameInfo_secondMpuContainer__xiGbJ {
  /* Second MPU container styles */
}

.GameInfo_halfPage300x600BelowGame__lYeY7 {
  margin-top: 20px;
}

.GameInfo_removeTopPadding__hI61b {
  padding-top: 0 !important;
}

.GameInfo_gameInfoStoreButtonsContainer__snbxi {
  display: flex;
  gap: 15px;
  padding: 20px;
}

.GameInfo_gameInfoStoreButtonsContainer__snbxi img {
  height: 40px;
  width: auto;
}

/* Breadcrumbs */
.Breadcrumbs_breadcrumbs__L3mrb {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  font-size: 14px;
  border-bottom: 1px solid #444;
}

.Breadcrumbs_breadcrumbs__L3mrb a {
  color: #6366f1;
  text-decoration: none;
}

.Breadcrumbs_breadcrumbs__L3mrb a:hover {
  text-decoration: underline;
}

.Breadcrumbs_separator__yCVN1 {
  margin: 0 10px;
  color: #666;
}

/* Game Summary Table */
.GameSummary_gameTableRow__9i4Mt {
  display: flex;
  padding: 12px 20px;
  border-bottom: 1px solid #444;
}

.GameSummary_gameTableRow__9i4Mt:last-child {
  border-bottom: none;
}

.GameSummary_gameTableRowHeader__qmvU_ {
  width: 120px;
  font-weight: 600;
  color: #cccccc;
  flex-shrink: 0;
}

.GameSummary_gameTableRowContent__RW5fE {
  flex: 1;
  display: flex;
  align-items: center;
  color: #ffffff;
}

/* Game Tags */
.GameTags_gameTagChipContainer__F5xPO {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
}

.TagGrid_tagPillContainer__rY0CY {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: #3a3a3a;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.TagGrid_tagPillContainer__rY0CY:hover {
  background-color: #4a4a4a;
}

.tagPill p {
  margin: 0;
  font-size: 13px;
  color: #ffffff;
}

.tagPill span {
  font-size: 11px;
  color: #999;
  background-color: #555;
  padding: 2px 6px;
  border-radius: 10px;
}

/* Right Sidebar */
.GamePageDesktop_rightMpuContainer__tFXsw {
  margin-bottom: 30px;
}

.GamePageDesktop_rightGridContainer__qJUvH {
  /* Right grid container styles */
}

/* Ad Placeholders */
.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(71, 73, 103, 0.1);
  border: 1px solid rgba(40, 41, 61, 0.3);
  color: #666;
  font-size: 14px;
}

/* MUI Box Classes */
.MuiBox-root {
  /* Base MUI box styles */
}

.css-8875ym {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 20px 0 10px 0;
}

.css-f1winy {
  color: #cccccc;
  margin: 0 0 20px 0;
}

.css-1dm7ec5 {
  /* MUI box specific styles */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .GamePageDesktop_main__fSalE {
    flex-direction: column;
  }

  .GamePageDesktop_rightSidebar__QgTMJ {
    width: 100%;
  }

  .GameInfo_gameInfo__2UItk {
    flex-direction: column;
  }

  .GameInfo_rightColumn__hExHC {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .css-gj9se8 {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .css-1uvr28v {
    font-size: 2rem;
  }

  .TagPage_gridContainer__cOmpI {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 0 15px;
  }

  .GamePageDesktop_main__fSalE {
    padding: 15px;
  }

  .css-ujjn8y {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .TagPage_gridContainer__cOmpI {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .css-1uvr28v {
    font-size: 1.5rem;
  }

  .GameInfo_containerWithPadding__z9aMp h1 {
    font-size: 1.5rem;
  }
}

/* WordPress Specific Overrides */
.wp-block-group {
  margin: 0;
}

.entry-content {
  margin: 0;
}

.site-main {
  margin: 0;
}

/* Ensure proper styling hierarchy */
body.single-game .GamePageDesktop_main__fSalE,
body.tax-game_category .TagPage_gridContainer__cOmpI {
  /* Force proper styling on game pages */
}

/* High specificity overrides to prevent theme conflicts */
.crazygames-clone .GameThumb_gameThumbLinkDesktop__wcir5 {
  display: block !important;
  text-decoration: none !important;
  color: inherit !important;
}

.crazygames-clone .TagPage_gridContainer__cOmpI {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(273px, 1fr)) !important;
}

.crazygames-clone .GamePageDesktop_main__fSalE {
  display: flex !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* Enhanced Game Card Styles for New Template Structure */
.GameThumb_gameThumbLinkDesktop__wcir5 {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: #2a2a2a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  width: 100%;
  aspect-ratio: 16/9;
}

.GameThumb_gameThumbLinkDesktop__wcir5:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.GameThumb_isResponsive__UwFpC {
  width: 100%;
  height: 100%;
}

.game-thumb-test-class {
  /* Test class for debugging - can be used for additional styling */
}

.GameThumb_gameThumbImage__FSasr {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.GameThumb_gameThumbTitleContainer__J1K4D {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #ffffff;
  padding: 20px 15px 15px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  font-family: Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gameThumbTitleContainer {
  /* Alias for backward compatibility */
}

/* Game Label Enhancements */
.GameThumbLabel_label__dz3yR {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
  font-family: Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.GameThumbLabel_hot__CWhxn {
  background-color: #ff4444;
  color: #ffffff;
}

.GameThumbLabel_new__8pQpT {
  background-color: #00aa44;
  color: #ffffff;
}

.GameThumbLabel_updated__Z69rK {
  background-color: #0066cc;
  color: #ffffff;
}

.GameThumbLabel_topRated__xYfMw {
  background-color: #ff8800;
  color: #ffffff;
}

/* Grid Layout Compatibility */
.games-grid .GameThumb_gameThumbLinkDesktop__wcir5,
.hero-grid .GameThumb_gameThumbLinkDesktop__wcir5 {
  height: 100%;
  min-height: 200px;
}

/* Responsive adjustments for game cards */
@media (max-width: 768px) {
  .GameThumb_gameThumbTitleContainer__J1K4D {
    font-size: 13px;
    padding: 15px 12px 12px;
  }

  .GameThumbLabel_label__dz3yR {
    font-size: 10px;
    padding: 3px 6px;
  }
}

@media (max-width: 480px) {
  .GameThumb_gameThumbTitleContainer__J1K4D {
    font-size: 12px;
    padding: 12px 10px 10px;
  }

  .games-grid .GameThumb_gameThumbLinkDesktop__wcir5 {
    min-height: 150px;
  }
}

/* ============================================
   CRAZYGAMES HEADER & NAVIGATION STYLES
   ============================================ */

/* Main Header Styles */
.css-1geg79l {
  z-index: 12;
  position: sticky;
  background: #0C0D14;
  backdrop-filter: blur(8px);
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);
}

/* Header Button Styles */
.css-h9dwsh {
  border-radius: 30px;
  transition: all 250ms ease;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Nunito', 'Nunito Fallback', Arial, sans-serif;
  font-weight: 800;
  font-size: 16px;
  box-sizing: border-box;
  padding: 0;
  background: transparent;
  color: #EFF0F7;
  height: 48px;
  width: 48px;
  margin-right: 8px;
}

.css-h9dwsh:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Logo Styles */
.css-15nij48 {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
}

.css-1q4s03l {
  margin-right: 8px;
}

.css-v5k1q0 {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  font-family: 'Nunito', 'Nunito Fallback', Arial, sans-serif;
}

/* Search Bar Styles */
.TopSearch_topSearchForm__b9Z8c {
  display: flex;
  align-items: center;
  background: rgba(47, 48, 69, 0.8);
  border-radius: 30px;
  padding: 0 16px;
  height: 48px;
  min-width: 300px;
  max-width: 500px;
  flex: 1;
  margin: 0 20px;
}

.TopSearch_searchInput__Nbapa {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 16px;
  font-family: 'Nunito', 'Nunito Fallback', Arial, sans-serif;
  flex: 1;
  padding: 0;
}

.TopSearch_searchInput__Nbapa::placeholder {
  color: #AAADBE;
}

.css-1r4eqz {
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-submit {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #AAADBE;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.search-submit:hover {
  color: #ffffff;
}

/* Header Action Buttons */
.css-2r8q21 {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #EFF0F7;
  padding: 12px;
  border-radius: 30px;
  transition: all 250ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 48px;
}

.css-2r8q21:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Sidebar Styles */
.Sidebar_main___ex0V {
  position: fixed;
  top: 60px;
  left: 0;
  width: 240px;
  height: calc(100vh - 60px);
  background: #212233;
  z-index: 10;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #AAADBE transparent;
  transition: transform 0.3s ease, width 0.3s ease;
}

/* Sidebar collapsed state for desktop */
body.sidebar-collapsed .Sidebar_main___ex0V {
  transform: translateX(-240px);
}

/* Smooth transitions for all layout changes */
.site-main,
#layoutMain,
#layoutMainWrapper,
.content-container,
.css-11r0q0n {
  transition: all 0.3s ease;
}

/* Visual feedback for hamburger button */
.css-h9dwsh {
  position: relative;
  overflow: hidden;
}

.css-h9dwsh::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}

.css-h9dwsh:active::before {
  width: 100px;
  height: 100px;
}

.Sidebar_main___ex0V::-webkit-scrollbar {
  width: 6px;
}

.Sidebar_main___ex0V::-webkit-scrollbar-thumb {
  background: #AAADBE;
  border-radius: 30px;
}

.Sidebar_container__CqXNx {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: calc(100vh - 60px);
}

.Sidebar_link__Tbdup {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #B8BDCB;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Nunito', 'Nunito Fallback', Arial, sans-serif;
  transition: all 0.2s ease;
  cursor: pointer;
}

.Sidebar_link__Tbdup:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.Sidebar_active__bltDp {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.Sidebar_active__bltDp:hover {
  background: rgba(99, 102, 241, 0.15);
}

.Sidebar_labelContainer__qHPDa {
  font-size: 14px;
  font-weight: 600;
  font-family: 'Nunito', 'Nunito Fallback', Arial, sans-serif;
}

.MuiDivider-root.css-148wt6v {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 16px 20px;
}

.css-1ibfcce {
  margin-top: auto;
  padding: 20px;
  background: #212233;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.css-1hjjlbf {
  margin-top: 12px;
}

.Dropdown_selectButton__kNaYk {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Nunito', 'Nunito Fallback', Arial, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.Dropdown_selectButton__kNaYk:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

/* Footer Links Section */
.Sidebar_linksContainer__n3z0G {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.Sidebar_sidebarSpan__fHyyG {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.Sidebar_sidebarSpan__fHyyG a {
  color: #B8BDCB;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s ease;
  font-family: 'Nunito', 'Nunito Fallback', Arial, sans-serif;
}

.Sidebar_sidebarSpan__fHyyG a:hover {
  color: #ffffff;
}

/* Contact Button Improvements */
.sidebarContactButton {
  width: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.sidebarContactButton svg {
  margin-right: 8px;
}

/* Main Content Adjustment */
.site-main {
  margin-left: 240px;
  padding-top: 0px;
  min-height: calc(100vh - 60px);
  transition: margin-left 0.3s ease;
  width: calc(100% - 240px);
}

/* Sidebar collapsed state */
body.sidebar-collapsed .site-main {
  margin-left: 0;
  width: 100%;
}

/* Layout Main Wrapper */
#layoutMain {
  margin-left: 0;
  padding-top: 0;
  width: 100%;
  max-width: none;
}

#layoutMainWrapper {
  padding: 40px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

/* Content Container */
.content-container {
  max-width: none;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.main-content {
  padding: 20px 0;
  width: 100%;
}

/* Home page content container */
.css-11r0q0n {
  max-width: none;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .TopSearch_topSearchForm__b9Z8c {
    min-width: 250px;
    margin: 0 15px;
  }
}

@media (max-width: 768px) {
  .Sidebar_main___ex0V {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 15;
  }

  .Sidebar_main___ex0V.sidebar-mobile-open {
    transform: translateX(0);
  }

  .site-main {
    margin-left: 0;
    width: 100%;
  }

  body.sidebar-collapsed .site-main {
    margin-left: 0;
    width: 100%;
  }

  .TopSearch_topSearchForm__b9Z8c {
    min-width: 200px;
    margin: 0 10px;
  }

  .css-1geg79l {
    padding: 0 10px;
  }

  /* Mobile overlay */
  body.sidebar-mobile-active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 14;
  }

  .css-11r0q0n {
    padding: 0 10px;
  }

  .content-container {
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .TopSearch_topSearchForm__b9Z8c {
    display: none;
  }

  .css-1geg79l {
    justify-content: space-between;
  }
}

/* ============================================
   CATEGORY PAGE STYLES
   ============================================ */

.css-t2sft {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #0C0D14;
  position: relative;
}

.css-linpkp {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.css-19dlbhf {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
}

.css-out5r8 {
  padding: 40px 20px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.css-gj9se8 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.css-7uj7ii {
  flex: 1;
}

.css-1uvr28v {
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 8px 0;
  font-family: 'Nunito', 'Nunito Fallback', Arial, sans-serif;
}

.css-category-description {
  font-size: 16px;
  color: #B8BDCB;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.css-games-count {
  margin-top: 8px;
}

.css-count-text {
  font-size: 14px;
  color: #AAADBE;
  font-weight: 600;
}

.css-sort-container {
  margin-left: 20px;
}

.css-sort-dropdown {
  position: relative;
}

.css-sort-select {
  background: rgba(47, 48, 69, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 10px 40px 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Nunito', 'Nunito Fallback', Arial, sans-serif;
  cursor: pointer;
  min-width: 150px;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8" fill="white"><path d="M6 8L0 0h12z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
}

.css-sort-select:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(47, 48, 69, 0.9);
}

.css-sort-select:focus {
  outline: none;
  border-color: #6366f1;
}

/* Category Page Grid Styles */
.TagPage_gridContainer__cOmpI {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(273px, 1fr));
  gap: 20px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsive Category Grid */
@media (max-width: 1024px) {
  .css-gj9se8 {
    flex-direction: column;
    align-items: stretch;
  }

  .css-sort-container {
    margin-left: 0;
    margin-top: 20px;
  }

  .css-1uvr28v {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .css-out5r8 {
    padding: 20px 15px;
  }

  .css-1uvr28v {
    font-size: 24px;
  }

  .TagPage_gridContainer__cOmpI {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .TagPage_gridContainer__cOmpI {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .css-1uvr28v {
    font-size: 20px;
  }
}

/* ============================================
   HOME PAGE CAROUSEL STYLES
   ============================================ */

/* Main Content Container */
.css-11r0q0n {
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* Recently Played Section */
.css-1q2ta1u .recently-played-btn {
  display: flex;
  align-items: center;
  font-family: 'Nunito', 'Nunito Fallback', Arial, sans-serif;
  transition: color 0.2s ease;
}

.css-1q2ta1u .recently-played-btn:hover {
  color: #ffffff;
}

/* Carousel Titles */
.Carousel_carouselTitle__wZx8l {
  font-family: 'Nunito', 'Nunito Fallback', Arial, sans-serif;
  font-size: 0.75rem !important;
  /* Half the default size */
}

.Carousel_carouselTitleLink__Gh_NW {
  font-family: 'Nunito', 'Nunito Fallback', Arial, sans-serif;
  font-size: 14px;
  transition: color 0.2s ease;
}

.Carousel_carouselTitleLink__Gh_NW:hover {
  color: #5855eb;
}

/* Prime Carousel (Recommended Section) */
.GameCarousel_primeCarouselContainer__QZ_gh {
  align-items: stretch;
}

.Carousel_primeCarouselLi__GXWe8 {
  display: flex;
  flex-direction: column;
}

.css-1uxnwi7 {
  height: 100%;
}

.css-1uxnwi7>* {
  height: 100%;
}

/* Games Carousel */
.games-carousel {
  scrollbar-width: thin;
  scrollbar-color: #AAADBE transparent;
  width: 100%;
  position: relative;
  z-index: 0;
}

.Carousel_simpleCarouselContainer__ZGe38 {
  position: relative;
  z-index: 0;
}

/* Modern Category Page Styles */
.modern-games-grid .GameThumb_gameThumbLinkDesktop__wcir5 {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  display: block;
}

.modern-games-grid .GameThumb_gameThumbImage__FSasr {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.modern-games-grid {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Category Hero Responsive */
@media (max-width: 768px) {
  .category-hero {
    padding: 40px 20px !important;
  }

  .category-hero h1 {
    font-size: 2rem !important;
  }

  .filter-bar {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .modern-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 20px !important;
  }
}

/* Load More Button Hover Effect */
#load-more-games:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Filter Select Styling */
#game-sort option {
  background: #2a2a2a;
  color: white;
}

/* Game Detail Page Styles */
.game-hero {
  animation: fadeInUp 0.8s ease-out;
}

.game-container {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.game-description {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.related-games {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px);
}

.game-frame {
  transition: transform 0.3s ease;
}

.game-frame:hover {
  transform: translateY(-5px);
}

.game-info-sidebar {
  transition: transform 0.3s ease;
}

.game-info-sidebar:hover {
  transform: translateY(-3px);
}

/* Responsive Game Detail Page */
@media (max-width: 1024px) {
  .game-container {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .game-hero .hero-content {
    flex-direction: column !important;
    text-align: center !important;
  }

  .game-hero .hero-image {
    flex: none !important;
    width: 150px !important;
    margin: 0 auto !important;
  }

  .game-hero .hero-stats {
    justify-content: center !important;
  }

  .game-hero .hero-actions {
    justify-content: center !important;
  }
}

@media (max-width: 768px) {
  .game-hero {
    padding: 30px 20px !important;
  }

  .game-hero h1 {
    font-size: 2rem !important;
  }

  .game-container,
  .game-description,
  .related-games {
    padding: 25px 20px !important;
  }

  .game-info-sidebar {
    padding: 25px 20px !important;
  }

  .related-games>div {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 20px !important;
  }
}

.games-carousel::-webkit-scrollbar {
  height: 6px;
}

.games-carousel::-webkit-scrollbar-thumb {
  background: #AAADBE;
  border-radius: 30px;
}

.games-carousel::-webkit-scrollbar-track {
  background: transparent;
}

/* Hero Section Styles - Horizontal Flexbox */
.hero-section {
  position: relative;
  z-index: 1;
}

.hero-section .hero-flex {
  position: relative;
  z-index: 2;
}

.hero-section .hero-flex::-webkit-scrollbar {
  display: none;
}

.hero-section .hero-main .GameThumb_gameThumbLinkDesktop__wcir5 {
  height: 100%;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.hero-section .hero-main .GameThumb_gameThumbLinkDesktop__wcir5:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 35px 70px rgba(102, 126, 234, 0.5);
}

.hero-section .hero-item .GameThumb_gameThumbLinkDesktop__wcir5 {
  height: 100%;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-section .hero-item .GameThumb_gameThumbLinkDesktop__wcir5:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-section .hero-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.hero-section .GameThumb_gameThumbTitleContainer__J1K4D {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 25px 15px 15px;
  font-size: 15px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-section .hero-main .GameThumb_gameThumbTitleContainer__J1K4D {
  padding: 35px 25px 25px;
  font-size: 18px;
  font-weight: 800;
}

/* Responsive adjustments for hero masonry */
@media (max-width: 1024px) {
  .hero-section .hero-masonry {
    height: 350px;
  }

  .hero-section .hero-main {
    flex: 0 0 calc(55% - 10px) !important;
  }

  .hero-section .hero-item {
    flex: 0 0 calc(45% - 10px) !important;
  }
}

@media (max-width: 768px) {
  .hero-section .hero-masonry {
    height: 280px;
    flex-direction: column;
  }

  .hero-section .hero-main {
    flex: 0 0 100% !important;
    height: 60% !important;
  }

  .hero-section .hero-item {
    flex: 0 0 calc(50% - 10px) !important;
    height: 35% !important;
  }
}

/* Responsive Carousel */
@media (max-width: 1024px) {
  .css-11r0q0n {
    padding: 0 15px;
  }

  .GameCarousel_primeCarouselContainer__QZ_gh {
    flex-direction: column;
    gap: 15px;
  }

  .Carousel_primeCarouselLi__GXWe8 {
    flex: none;
    width: 100%;
  }

  .css-1uxnwi7 {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
}

/* Enhanced responsive behavior for sidebar collapsed state */
@media (min-width: 769px) {

  /* When sidebar is collapsed on desktop, optimize carousel layouts */
  body.sidebar-collapsed .games-carousel li {
    flex: 0 0 260px;
  }

  body.sidebar-collapsed .GameCarousel_primeCarouselContainer__QZ_gh {
    gap: 30px;
  }

  body.sidebar-collapsed .Carousel_primeCarouselLi__GXWe8:first-child {
    flex: 0 0 750px;
  }

  body.sidebar-collapsed .css-1uxnwi7 {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .css-11r0q0n {
    padding: 0 10px;
  }

  .games-carousel {
    gap: 15px;
  }

  .games-carousel li {
    flex: 0 0 250px !important;
  }

  .Carousel_carouselTitle__wZx8l {
    font-size: 1.3rem;
  }

  .css-1uxnwi7 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .games-carousel li {
    flex: 0 0 200px !important;
  }

  .Carousel_carouselTitle__wZx8l {
    font-size: 1.1rem;
  }
}

/* ============================================
   USER MANAGEMENT STYLES
   ============================================ */

/* Favorite Button Styles */
.favorite-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 3;
  color: #ffffff;
}

.favorite-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.favorite-btn.favorited {
  background: rgba(239, 68, 68, 0.9);
}

.favorite-btn.favorited:hover {
  background: rgba(239, 68, 68, 1);
}

.favorite-btn.login-required {
  background: rgba(107, 114, 128, 0.7);
  cursor: not-allowed;
}

.favorite-btn.disabled {
  background: rgba(107, 114, 128, 0.5);
  cursor: not-allowed;
  opacity: 0.5;
}

.favorite-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* Game Card Enhancements */
.game-card {
  position: relative;
}

.game-card:hover .favorite-btn {
  opacity: 1;
}

/* Recently Played Section */
.recent-games-section {
  margin-bottom: 40px;
}

.recent-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.recent-game-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.recent-game-card:hover {
  transform: translateY(-2px);
}

.recent-game-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.recent-game-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 12px;
  color: white;
}

.recent-game-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.recent-game-meta {
  font-size: 12px;
  color: #B8BDCB;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #B8BDCB;
}

.empty-state h3 {
  margin-bottom: 8px;
  color: #ffffff;
}

.empty-state p {
  margin-bottom: 20px;
}

.empty-state .btn {
  display: inline-block;
  padding: 12px 24px;
  background: #6366f1;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.empty-state .btn:hover {
  background: #5855eb;
}

/* User Menu Dropdown */
.user-menu {
  position: relative;
}

.user-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #2F3045;
  border-radius: 8px;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: none;
}

.user-menu-dropdown.active {
  display: block;
}

.user-menu-item {
  display: block;
  padding: 12px 16px;
  color: #B8BDCB;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.user-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.user-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

/* Responsive User Features */
@media (max-width: 768px) {
  .recent-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .recent-game-card img {
    height: 100px;
  }

  .favorite-btn {
    width: 28px;
    height: 28px;
    top: 6px;
    right: 6px;
  }

  .favorite-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* User Notifications */
.user-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 6px;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.3s ease;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.user-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.user-notification.success {
  background: #10b981;
}

.user-notification.error {
  background: #ef4444;
}

.user-notification.info {
  background: #3b82f6;
}

.user-notification.warning {
  background: #f59e0b;
}

/* Elegant Featured Games Carousel - CrazyGames Dark Theme */
.featured-games-carousel {
  padding: 15px 0;
  background: var(--primary-bg);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.featured-games-carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-color) 0%, rgba(99, 102, 241, 0.1) 100%);
  opacity: 0.05;
  pointer-events: none;
}

/* Header Section */
.carousel-header {
  width: 100%;
  margin: 0;
  padding: 0 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.header-content {
  flex: 1;
}

.carousel-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.title-icon {
  font-size: 2rem;
  color: var(--accent-color);
}

.carousel-subtitle {
  display: none;
}

/* Carousel Controls - Hidden */
.carousel-controls {
  display: none;
}

.carousel-btn {
  display: none;
}

/* Carousel Container */
.carousel-container {
  width: 100%;
  margin: 0;
  padding: 0 20px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Game Cards */
.game-card {
  flex: 0 0 220px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* Card Image */
.card-image-wrapper {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-color) 0%, rgba(99, 102, 241, 0.8) 100%);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .card-image {
  transform: scale(1.1);
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-color) 0%, rgba(99, 102, 241, 0.8) 100%);
}

.placeholder-content {
  text-align: center;
}

.game-icon {
  font-size: 3rem;
  color: var(--text-primary);
  opacity: 0.8;
}

/* Card Overlay */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

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

.play-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  margin-bottom: 15px;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.game-card:hover .play-button {
  transform: scale(1.1);
  background: rgba(99, 102, 241, 0.9);
}

.quick-info {
  display: flex;
  gap: 15px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Category Badge */
.category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-color);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.game-card:hover .category-badge {
  transform: translateY(-2px);
  background: rgba(99, 102, 241, 0.9);
}

/* Card Content */
.card-content {
  padding: 15px;
  background: var(--card-bg);
}

.game-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.game-category {
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-color);
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.game-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--text-secondary);
}

.star {
  color: #ffc107;
  font-size: 1rem;
}

/* Carousel Indicators - Hidden */
.carousel-indicators {
  display: none;
}

.indicator {
  display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .carousel-header {
    justify-content: flex-start;
    padding: 0 30px;
  }

  .carousel-title {
    font-size: 1.6rem;
  }

  .game-card {
    flex: 0 0 200px;
  }

  .carousel-container {
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .featured-games-carousel {
    padding: 10px 0;
  }

  .carousel-header {
    padding: 0 20px;
  }

  .carousel-container {
    padding: 0 20px;
  }

  .carousel-title {
    font-size: 1.4rem;
  }

  .title-icon {
    font-size: 1.6rem;
  }

  .game-card {
    flex: 0 0 180px;
  }

  .card-image-wrapper {
    height: 120px;
  }

  .card-content {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .carousel-header {
    padding: 0 15px;
  }

  .carousel-container {
    padding: 0 15px;
  }

  .carousel-title {
    font-size: 1.2rem;
  }

  .title-icon {
    font-size: 1.4rem;
  }

  .game-card {
    flex: 0 0 160px;
  }

  .card-content {
    padding: 10px;
  }

  .game-title {
    font-size: 0.9rem;
  }
}