/* Featured Games Carousel - Early 2000s Compatible */
/* NO CSS3 FEATURES - Only properties available in early 2000s */

/* Carousel Container */
.games-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #F5F5F5;
  border: 1px solid #CCCCCC;
  margin: 20px 0;
}

/* Carousel Viewport */
.carousel-viewport {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

/* Carousel Track */
.carousel-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  /* No flexbox - use float for early 2000s compatibility */
  white-space: nowrap;
}

/* Featured Game Cards */
.featured-game-card {
  display: inline-block;
  vertical-align: top;
  width: 400px;
  height: 280px;
  margin: 10px;
  background: #FFFFFF;
  border: 1px solid #CCCCCC;
  position: relative;
  cursor: pointer;
}

.featured-game-card:hover {
  border-color: #0066CC;
}

/* Game Preview Image */
.featured-game-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #CCCCCC;
  background: #E8E8E8;
}

/* Game Info Section */
.featured-game-info {
  padding: 10px;
  height: 80px;
  position: relative;
}

.featured-game-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #333333;
  margin: 0 0 5px 0;
  line-height: 1.2;
}

.featured-game-description {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #666666;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  height: 32px;
}

/* Play Button Overlay */
.featured-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  /* Use CSS filter for transparency effect in early browsers */
  filter: alpha(opacity=70); /* IE */
  opacity: 0.7; /* Modern browsers */
  display: none;
  text-align: center;
}

.featured-game-card:hover .featured-play-overlay {
  display: flex;
}

.featured-play-button {
  background: #0066CC;
  border: 1px outset #0066CC;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -15px; /* Half of approximate height */
  margin-left: -40px; /* Half of approximate width */
}

.featured-play-button:hover {
  background: #0052A3;
}

.featured-play-button:active {
  border: 1px inset #0066CC;
}

/* Navigation Arrows */
.carousel-nav {
  position: absolute;
  top: 50%;
  margin-top: -15px; /* Half of height for centering */
  background: #E0E0E0;
  border: 1px outset #CCCCCC;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #333333;
  text-align: center;
  line-height: 28px; /* Center text vertically */
  z-index: 10;
}

.carousel-nav:hover {
  background: #D0D0D0;
}

.carousel-nav:active {
  border: 1px inset #CCCCCC;
}

.carousel-nav.disabled {
  background: #F0F0F0;
  color: #CCCCCC;
  cursor: not-allowed;
  border: 1px solid #E0E0E0;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  margin-left: -50px; /* Approximate centering - adjust based on number of indicators */
  z-index: 10;
}

.carousel-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #CCCCCC;
  border: 1px solid #999999;
  cursor: pointer;
  margin: 0 2px;
}

.carousel-indicator.active {
  background: #0066CC;
  border-color: #0052A3;
}

.carousel-indicator:hover {
  background: #999999;
}

/* Auto-play Controls */
.carousel-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.carousel-play-pause {
  background: #E0E0E0;
  border: 1px outset #CCCCCC;
  color: #333333;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
}

.carousel-play-pause:hover {
  background: #D0D0D0;
}

.carousel-play-pause:active {
  border: 1px inset #CCCCCC;
}

/* Loading State */
.carousel-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -10px; /* Half of approximate height */
  margin-left: -75px; /* Half of approximate width */
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #666666;
  z-index: 5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .games-carousel {
    margin: 10px 0;
  }
  
  .carousel-viewport {
    height: 250px;
  }
  
  .featured-game-card {
    width: 300px;
    height: 230px;
    margin: 10px 5px;
  }
  
  .featured-game-image {
    height: 150px;
  }
  
  .featured-game-info {
    height: 60px;
    padding: 8px;
  }
  
  .featured-game-title {
    font-size: 14px;
  }
  
  .featured-game-description {
    font-size: 11px;
    height: 24px;
  }
  
  .carousel-nav {
    width: 25px;
    height: 25px;
    font-size: 14px;
  }
  
  .carousel-prev {
    left: 5px;
  }
  
  .carousel-next {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .carousel-viewport {
    height: 200px;
  }
  
  .featured-game-card {
    width: 250px;
    height: 180px;
  }
  
  .featured-game-image {
    height: 120px;
  }
  
  .featured-game-info {
    height: 50px;
    padding: 5px;
  }
  
  .featured-game-title {
    font-size: 12px;
    margin-bottom: 3px;
  }
  
  .featured-game-description {
    font-size: 10px;
    height: 20px;
  }
  
  .carousel-indicators {
    bottom: 5px;
  }
  
  .carousel-indicator {
    width: 6px;
    height: 6px;
  }
  
  .carousel-controls {
    top: 5px;
    right: 5px;
  }
  
  .carousel-play-pause {
    font-size: 10px;
    padding: 3px 6px;
  }
}

/* Print Styles */
@media print {
  .games-carousel {
    display: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .games-carousel {
    border-color: #000000;
  }
  
  .featured-game-card {
    border-color: #000000;
  }
  
  .carousel-nav {
    background: #FFFFFF;
    border-color: #000000;
    color: #000000;
  }
  
  .carousel-indicator {
    background: #FFFFFF;
    border-color: #000000;
  }
  
  .carousel-indicator.active {
    background: #000000;
  }
}