/* Reset and base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1, h2, h3, p, ul, li, a, button {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
}

body {
  background: #0b0c17;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* LINKS and BUTTONS */
a {
  text-decoration: none;
  color: #60a5fa;
  transition: color 0.3s ease;
}


.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  user-select: none;
  transition: background-color 0.3s ease;
}

.btn-primary {
  background-color: #3b82f6;
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #2563eb;
}

.btn-primary.btn-lg {
  font-size: 1.1rem;
  padding: 0.8rem 2rem;
}

.btn-ghost {
  background-color: transparent;
  border: 2px solid #60a5fa;
  color: #60a5fa;
  font-weight: 700;
}

.btn-ghost:hover,
.btn-ghost:focus {
  background-color: #2563eb;
  color: #fff;
}

.btn-header {
  font-size: 1rem;
  padding: 0.5rem 1rem;
}

/* HEADER */
.site-header {
  background-color: #131820;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav a.nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: #cbd5e1;
  padding: 0.3rem;
}

.main-nav a.nav-link:hover,
.main-nav a.nav-link:focus {
  color: #3b82f6;
  border-bottom: 2px solid #3b82f6;
  outline: none;
}

/* HERO SECTION */
.hero {
  padding: 3rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, #1f2937, #111827);
  border-radius: 0.5rem;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  width: 100%;
}

.hero-content {
  flex: 1 1 400px;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.125rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-highlights {
  list-style: disc;
  margin-left: 1.25rem;
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.5;
}

.hero-highlights li {
  margin-bottom: 0.5rem;
}

/* Carousel inside hero */
.hero-media {
  flex: 1 1 320px;
  max-width: 480px;
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.5);
}

.carousel-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #60a5fa;
  text-align: center;
  font-weight: 700;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.carousel-track img {
  flex-shrink: 0;
  width: 100%;
  border-radius: 0.5rem;
  user-select: none;
}

.carousel-control {
  position: absolute;
  top: 50%;
  padding: 0.5rem 1rem;
  background-color: rgba(0, 0, 0, 0.6);
  color: #60a5fa;
  border: none;
  border-radius: 9999px;
  font-size: 1.5rem;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
  user-select: none;
}

.carousel-control:hover,
.carousel-control:focus {
  background-color: rgba(59, 130, 246, 0.8);
  outline: none;
}

.carousel-control.prev {
  left: 0.5rem;
}

.carousel-control.next {
  right: 0.5rem;
}

/* SECTIONS */
.section {
  padding: 3rem 0;
}

.section-header {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  text-align: center;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #e0e7ff;
}

.section-header p {
  font-size: 1.125rem;
  color: #a1a9cc;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: #1e293b;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
  transition: transform 0.3s ease;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}

.feature-card h3 {
  color: #60a5fa;
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.feature-card p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.4;
}

/* How to Play List */
#how-to-play ul {
  list-style: disc;
  padding-left: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1.6;
}

#how-to-play ul li {
  margin-bottom: 0.75rem;
}

/* Dark section for other games */
.section-dark {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0;
}

.article-previews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.article-preview {
  background: #1e293b;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
  transition: background-color 0.3s ease;
}

.article-preview:hover,
.article-preview:focus-within {
  color: #fff;
}

.article-preview h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: inherit;
  font-weight: 700;
}

.article-preview p {
  font-size: 0.95rem;
  color: inherit;
}

/* FOOTER */
.site-footer {
  background-color: #131820;
  padding: 1.25rem 0;
  color: #64748b;
  text-align: center;
  font-size: 0.95rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #60a5fa;
  outline: none;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }

  .hero-media {
    max-width: 100%;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}
