:root {
  --bg: #0b0f14;
  --card: #121821;
  --ink: #e7eef8;
  --muted: #9ab0c6;
  --accent: #7aa2ff;
  --accent-2: #59d0c8;
  --border: #1f2a37;
  --pill: #17202a;
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; background: var(--bg); color: var(--ink); font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header, .site-footer {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.site-footer { border-top: 1px solid var(--border); border-bottom: none; text-align: center; color: var(--muted); }

.site-header { display:flex; align-items:center; justify-content: space-between; }
.user-pill { background: var(--pill); padding: 6px 10px; border-radius: 999px; margin-left: 12px; font-size: 0.9rem; color: var(--muted); }
.auth-actions { display:flex; align-items:center; gap: 8px; }

button {
  background: var(--accent);
  color: #06101a;
  border: none;
  padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 600;
}
button.secondary { background: var(--card); color: var(--ink); border: 1px solid var(--border); }
button.cta { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06101a; }

.container { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.hidden { display: none; }

.filters { display:flex; align-items:center; gap:12px; margin-bottom: 16px; }
select { background: var(--card); color: var(--ink); border: 1px solid var(--border); padding: 6px 10px; border-radius: 8px; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px;
  display:flex; flex-direction:column; gap: 10px;
  transition: transform .06s ease;
}
.card:hover { transform: translateY(-2px); }
.card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.badge { font-size: 0.75rem; color: var(--muted); background: var(--pill); padding: 4px 8px; border-radius: 999px; display: inline-block; }
.meta { color: var(--muted); font-size: 0.9rem; }
.actions { margin-top: auto; display:flex; gap: 8px; }
.actions a { background: var(--pill); padding: 8px 10px; border-radius: 10px; display:inline-block; }

/* === NAVIGATION BAR (Integrated from old theme) === */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

nav a:hover {
  color: var(--accent-2);
  transform: translateY(-1px);
}

/* === HEADER ADJUSTMENTS (to mirror NOTG layout) === */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: var(--accent);
  color: var(--bg);
}

.site-header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--bg);
}

/* Align login/logout buttons with new theme */
.auth-actions button {
  background: var(--pill);
  color: var(--ink);
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.auth-actions button:hover {
  background: var(--accent-2);
  color: var(--bg);
  transform: translateY(-1px);
}

/* === PAGE CONTAINER LAYOUT === */
main.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 24px;
}

/* === FOOTER ENHANCEMENTS === */
.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 16px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Player container styling */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
}

/* Each player block */
.player {
  text-align: center;
  background-color: #111; /* optional, to match your theme */
  border-radius: 10px;
  padding: 10px;
  max-width: 200px;
  flex: 1 1 150px;
}

/* Player names */
.player h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

/* Image resizing */
.player img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
  }
  .player {
    max-width: 90%;
  }
}

/* === IMAGE MODAL (click-to-zoom overlay) === */
.image-modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
}

.image-modal.show {
  display: flex;
}

.player img {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.player img:hover {
  transform: scale(1.03);
}


