/* -----------------------------
  Global Styles
----------------------------- */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #1e1e2f, #383564);
color: #ffffff;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
transition: background 0.3s, color 0.3s;
}

body.light {
background: linear-gradient(135deg, #f4f4f9, #dcdcff);
color: #222;
}

/* -----------------------------
  Navbar
----------------------------- */
.navbar {
width: 100%;
max-width: 1000px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 30px;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(12px);
border-radius: 15px;
margin-bottom: 40px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.logo {
font-size: 1.8rem;
font-weight: bold;
color: #ffd700;
text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* -----------------------------
  Theme Toggle
----------------------------- */
.theme-toggle {
background: none;
border: none;
font-size: 1.6rem;
cursor: pointer;
color: #fff;
transition: transform 0.2s;
}
.theme-toggle:hover {
transform: scale(1.2);
}
body.light .theme-toggle {
color: #222;
}

/* -----------------------------
  Header
----------------------------- */
header {
text-align: center;
max-width: 900px;
margin-bottom: 30px;
}

header h1 {
font-size: 3rem;
margin-bottom: 10px;
}

header h3 {
font-weight: normal;
color: #cccccc;
margin-bottom: 20px;
}

.note {
font-size: 1.1rem;
color: #bbbbbb;
line-height: 1.6;
}

.highlight {
color: #ffd700;
text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* -----------------------------
  Search Bar
----------------------------- */
.search-bar {
width: 100%;
max-width: 500px;
padding: 12px 18px;
border-radius: 10px;
border: none;
outline: none;
margin: 20px auto 30px;
display: block;
font-size: 1.1em;
background: rgba(255, 255, 255, 0.1);
color: #fff;
backdrop-filter: blur(8px);
transition: 0.3s;
}
.search-bar::placeholder {
color: #aaa;
}
.search-bar:focus {
background: rgba(255, 255, 255, 0.15);
box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
body.light .search-bar {
background: rgba(0, 0, 0, 0.05);
color: #222;
}

/* -----------------------------
  Game List and Top Picks
----------------------------- */
/* NEW: Use flexbox on main to center the game list */
main {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-list {
/* Grid properties moved here to be a child of the flex container */
display: grid;
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
gap: 20px;
width: 100%;
max-width: 1000px;
}

.game-link {
display: block;
background: rgba(255, 255, 255, 0.08);
border: 2px solid rgba(255, 255, 255, 0.2);
padding: 15px;
border-radius: 14px;
font-size: 1.2em;
font-weight: bold;
text-transform: uppercase;
color: #ffffff;
text-align: center;
text-decoration: none;
backdrop-filter: blur(12px);
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}
.game-link:hover {
background: rgba(255, 215, 0, 0.15);
transform: translateY(-5px) scale(1.03);
box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
border-color: rgba(255, 215, 0, 0.4);
}
body.light .game-link {
background: rgba(0, 0, 0, 0.05);
color: #000;
}

/* -----------------------------
  Footer
----------------------------- */
footer {
width: 100%;
max-width: 1000px;
margin-top: 50px;
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.15);
text-align: center;
font-size: 0.9em;
color: #bbbbbb;
}
