/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
  background: #121212;
  color: #f0f0f0;
}

body {
  background-color: #121212;
  color: #e0e0e0;
  min-height: 100vh;
}

/* Utility Containers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Links global */
a {
  color: #00adee;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:focus {
  color: #00d1ff;
  outline: none;
}

/* HEADER */
.site-header {
  background-color: #1e1e1e;
  border-bottom: 1px solid #292929;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  color: #ccc;
}

.nav-link:hover,
.nav-link:focus {
  background-color: #00adee;
  color: #121212;
  outline: none;
}

/* Header Play Button */
.btn-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  background: linear-gradient(135deg, #00adee, #00d1ff);
  color: #121212;
  box-shadow: 0 4px 15px rgba(0, 173, 238, 0.5);
  transition: background 0.3s ease;
}

.btn-header:hover,
.btn-header:focus {
  background: linear-gradient(135deg, #00d1ff, #00adee);
  outline: none;
  box-shadow: 0 6px 20px rgba(0, 209, 255, 0.7);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  border-radius: 30px;
  line-height: 1.3;
  white-space: nowrap;
  user-select: none;
  border: none;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-primary {
  background: #00adee;
  color: #121212;
  padding: 0.75rem 1.75rem;
  box-shadow: 0 4px 12px rgba(0, 173, 238, 0.5);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #00d1ff;
  box-shadow: 0 6px 20px rgba(0, 209, 255, 0.7);
  outline: none;
}

.btn-lg {
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
}

.btn-ghost {
  background: transparent;
  color: #00adee;
  padding: 0.6rem 1.5rem;
  font-weight: 700;
  border: 2px solid #00adee;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-ghost:hover,
.btn-ghost:focus {
  background-color: #00adee;
  color: #121212;
  outline: none;
}

/* HERO SECTION */
.hero {
  padding: 3rem 0 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
  width: 100%;
}

.hero-content {
  max-width: 600px;
  flex: 1 1 400px;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #00adee;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: #bbb;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-highlights {
  list-style: disc inside;
  color: #ddd;
  font-size: 1rem;
  line-height: 1.5;
  margin-left: 1rem;
}

.hero-highlights li {
  margin-bottom: 0.6rem;
}

/* HERO MEDIA / CAROUSEL */
.hero-media {
  flex: 1 1 350px;
  max-width: 450px;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  background-color: #222;
}

.carousel-title {
  color: #00adee;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 1rem 1rem 0.5rem;
  user-select: none;
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.carousel-track img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 0 0 10px 10px;
  flex-shrink: 0;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 173, 238, 0.7);
  border: none;
  color: #121212;
  font-size: 1.8rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.carousel-control:hover,
.carousel-control:focus {
  background: #00d1ff;
  outline: none;
}

.carousel-control.prev {
  left: 8px;
}

.carousel-control.next {
  right: 8px;
}

/* FEATURES SECTION */
.section {
  padding: 3rem 0;
  border-top: 1px solid #292929;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 900;
  color: #00adee;
}

.section-header p {
  color: #ccc;
  font-size: 1.125rem;
  margin-top: 0.25rem;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}

.feature-card {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 4px 10px rgba(0, 173, 238, 0.15);
  transition: transform 0.3s ease;
  cursor: default;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 209, 255, 0.35);
}

.feature-card h3 {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #00acee;
}

.feature-card p {
  color: #bbb;
  font-size: 1rem;
  line-height: 1.4;
}

/* HOW TO PLAY SECTION */
#how-to-play ul {
  list-style: disc inside;
  max-width: 480px;
  margin: 0 auto;
  font-size: 1rem;
  color: #ddd;
  line-height: 1.6;
}

#how-to-play ul li {
  margin-bottom: 0.75rem;
}

/* MORE GAMES GRID */
.section-dark {
  background-color: #1a1a1a;
  border-top: 1px solid #292929;
  padding: 3rem 0;
}

.article-previews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.6rem;
}

.article-preview a {
  display: block;
  padding: 1rem 1rem 1.25rem;
  background: #222;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 173, 238, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #eee;
}

.article-preview a:hover,
.article-preview a:focus {
  background: #00adee;
  color: #121212;
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0, 209, 255, 0.4);
  outline: none;
}

.article-preview h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.article-preview p {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.3;
}

/* FOOTER */
.site-footer {
  background-color: #1e1e1e;
  color: #7a7a7a;
  padding: 1.75rem 0;
  text-align: center;
  font-size: 0.875rem;
  border-top: 1px solid #292929;
}

.footer-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  color: #7a7a7a;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #00adee;
  outline: none;
}

/* Material symbols icon styling */
.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48;
  vertical-align: middle;
  user-select: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    align-items: center;
  }

  .hero-content,
  .hero-media {
    max-width: 100%;
  }

  .main-nav ul {
    gap: 1rem;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .article-previews-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }

  .btn-header,
  .btn-primary {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
  }

  .carousel-track img {
    max-height: 180px;
  }
}
