/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
  padding-top: 60px; /* space for sticky header */
}

/* Header & Nav */
header {
  background: linear-gradient(90deg, #0077cc 60%, #5e739f 100%);
  color: #fff;
  padding: 1.2rem 0;
  box-shadow: 0 2px 12px rgba(94, 115, 159, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  width: 100%;
  padding: 0 2rem;
}

.header-container h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, #fff 60%, #b3c0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* text-fill-color: transparent; */
  margin-right: 2rem;
  transition: text-shadow 0.2s;
}
.header-container h1:hover {
  text-shadow: 0 2px 12px #fff8, 0 1px 0 #5e739f;
}
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(94, 115, 159, 0.08);
  padding: 0.2rem 1.2rem;
}

nav li {
  display: flex;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 18px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.13s;
  position: relative;
  letter-spacing: 0.5px;
}

nav a:focus,
nav a:hover {
  background: linear-gradient(90deg, #fff 10%, #b3c0e0 100%);
  color: #3a4a6b;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.18);
  transform: translateY(-2px) scale(1.06);
  outline: none;
}

/* Main Content */
main {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: auto;
  width: 100%;
}
section {
  padding: 2rem 1rem;
  margin: 1rem auto;
  max-width: 900px;
  background-color: #f7fcfc;
  border-radius: 8px;
  width: 100%;
}
h2 {
  color: #222;
  font-size: 1.6rem;
  font-weight: bold;
}
p {
  color: #222;
  font-size: 1rem;
  font-weight: normal;
}
section p,
section ul {
  margin-bottom: 1rem;
}

section a {
  display: inline-block;
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
  font-weight: bold;
}
section h3 {
  margin-bottom: 0.7rem;
  color: #000;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 8px rgba(94, 115, 159, 0.08);
  transition: text-shadow 0.2s;
}

section h3:hover {
  text-shadow: 0 4px 16px #b3c0e088, 0 1px 0 #5e739f;
}
.daily-dose blockquote {
  font-style: italic;
  margin-top: 1rem;
  color: #444;
  border-left: 4px solid #bbb;
  padding-left: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: linear-gradient(90deg, #0077cc 60%, #5e739f 100%);
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 8px rgba(94, 115, 159, 0.1);
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:hover,
.btn:focus {
  background: linear-gradient(90deg, #005fa3 60%, #3a4a6b 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px rgba(94, 115, 159, 0.18);
  outline: none;
}
.hero-img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.games-section-menu {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: stretch;
}
.games-section-menu > div {
  flex: 1 1 0;
  min-width: 0;
}
.games-section-menu img {
  width: 100%;
  max-width: 250px;
  height: 200px;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.5rem auto;
}
.news-section-menu {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: stretch;
}

.news-section-menu > div {
  flex: 1 1 0;
  min-width: 0;
}
/* Footer */
footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* 📱 Mobile Styles First */
@media (max-width: 800px) {
  main {
    padding: 1rem 0.5rem;
  }
  section {
    padding: 1rem 0.5rem;
    margin: 0.5rem 0;
  }
  .hero-img,
  .games-section-menu {
    min-height: 120px;
  }
  .games-section-menu {
    flex-direction: column;
    gap: 1rem;
  }
  .games-section-menu > div {
    width: 100%;
  }
  .news-section-menu {
    flex-direction: column;
    gap: 3rem;
  }
  .news-section-menu > div {
    width: 100%;
  }
  .news-section-img {
    width: 100%;
    max-width: 1000px;
    height: 200px;
    /* object-fit: cover;
  display: block; */
    margin: 0 auto 0.5rem auto;
  }
}

@media (max-width: 800px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0 1rem;
  }
  .header-container h1 {
    font-size: 1.5rem;
    margin-right: 0;
    margin-bottom: 0.2rem;
    text-align: left;
  }
  nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 0.2rem;
    overflow-x: auto;
    padding: 0.2rem 0.5rem;
  }
  nav a {
    font-size: 0.98rem;
    padding: 0.35rem 0.7rem;
  }
}

/* 💻 Wider Screens */
@media (min-width: 801px) {
  nav ul {
    flex-direction: row;
    gap: 1.5rem;
  }
}


.dark-mode a {
  color: #8cf;
}

.dark-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: #333;
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  cursor: pointer;
  z-index: 999;
}
.dark-toggle:hover {
  background: #555;
}

/* Light and Dark Theme - Default (light mode) */
body {
  background: #fff;
  color: #111;
}

/* Dark mode styles */

body.dark-mode {
  background: #111;
  color: #eee;
}

body.dark-mode header {
  background: linear-gradient(90deg, #222 60%, #333 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

body.dark-mode .header-container h1 {
  background: linear-gradient(90deg, #fff 60%, #8cf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode nav ul {
  background: rgba(30, 30, 30, 0.5);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

body.dark-mode nav a {
  color: #8cf;
  background: transparent;
}

body.dark-mode nav a:focus,
body.dark-mode nav a:hover {
  background: linear-gradient(90deg, #222 10%, #333 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(140, 204, 255, 0.18);
}

body.dark-mode section {
  background-color: #181c22;
  color: #eee;
}

body.dark-mode section h2,
body.dark-mode section h3 {
  color: #8cf;
  text-shadow: 0 2px 8px #2228;
}

body.dark-mode section a {
  color: #8cf;
}

body.dark-mode .btn {
  background: linear-gradient(90deg, #222 60%, #444 100%);
  color: #8cf;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

body.dark-mode .btn:hover,
body.dark-mode .btn:focus {
  background: linear-gradient(90deg, #333 60%, #555 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(140, 204, 255, 0.18);
}

body.dark-mode footer {
  background-color: #181c22;
  color: #8cf;
}

body.dark-mode .daily-dose blockquote {
  color: #bbb;
  border-left: 4px solid #8cf;
}

body.dark-mode .games-section-menu img,
body.dark-mode .news-section-img {
  filter: brightness(0.85) contrast(1.1);
}