/* ============================
   Muhackl Games — style.css
   Dark-first, responsive, accessible
   Place: /assets/css/style.css
   ============================ */

/* --------------- Reset / Base --------------- */
:root{
  /* Color palette (adjust with Mina's styleguide) */
  --bg: #0a0b0d;
  --surface: #0f1113;
  --muted: #8b95a3;
  --text: #e6eef8;
  --accent: #6d28d9; /* indigo-ish */
  --accent-2: #00b4d8; /* cyan-ish secondary */
  --glass: rgba(255,255,255,0.04);
  --glass-2: rgba(255,255,255,0.02);

  /* Spacing / type scale */
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;

  /* Motion */
  --ease: cubic-bezier(.22,.9,.2,1);
  --anim-fast: 160ms;
  --anim-medium: 360ms;
}

*,
*::before,
*::after {box-sizing: border-box;}

html,body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg,var(--bg), #050506);
  color: var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-weight: var(--fw-regular);
  line-height: 1.4;
  font-size: 16px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* --------------- Layout helpers --------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  width: 100%;
  background: linear-gradient(180deg, rgba(15,17,19,0.6), rgba(15,17,19,0.4));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  position: sticky;
  top: 0;
  z-index: 60;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}
.brand .logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg,var(--accent), var(--accent-2));
  display: inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  color: white;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(13,12,19,0.6);
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: var(--fw-medium);
  padding: 0.5rem 0.35rem;
  border-radius: 8px;
  transition: color var(--anim-fast) var(--ease), background var(--anim-fast) var(--ease),
              transform var(--anim-fast) var(--ease);
  font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a:focus {
  color: var(--text);
  background: rgba(255,255,255,0.02);
  transform: translateY(-1px);
  outline: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.05rem;
}

/* --------------- Hero --------------- */
.hero {
  padding: 72px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.02;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  font-weight: var(--fw-bold);
  color: var(--text);
}

.lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* CTA group */
.cta {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  color: white;
  background: linear-gradient(90deg,var(--accent), #4f46e5);
  box-shadow: 0 8px 20px rgba(79,70,229,0.12);
  transition: transform var(--anim-fast) var(--ease), box-shadow var(--anim-fast) var(--ease);
}
.btn.secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.04);
}

/* --------------- Sections --------------- */
.section {
  padding: 64px 0;
  border-top: 1px solid rgba(255,255,255,0.02);
}

/* Grid for game cards */
.grid {
  display: grid;
  gap: 1rem;
}

.grid--games {
  grid-template-columns: repeat(1, 1fr);
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: var(--radius-md);
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 8px 30px rgba(2,6,23,0.6);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card .thumb {
  width: 100%;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
  display: block;
  object-fit: cover;
}

/* Card meta */
.card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: var(--fw-medium);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* metadata row */
.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

/* Team grid */
.grid--team {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.team-member {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--glass);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text);
}

/* --------------- Forms --------------- */
.form {
  display: grid;
  gap: 0.6rem;
}
.input, .textarea, .select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.03);
  outline: none;
  font-size: 1rem;
}
.input:focus, .textarea:focus, .select:focus {
  box-shadow: 0 6px 18px rgba(109,40,217,0.12);
  border-color: rgba(109,40,217,0.7);
}

/* --------------- Footer --------------- */
.site-footer {
  padding: 32px 0;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.02);
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* --------------- Utilities --------------- */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* simple fade in */
.fade-up {
  transform: translateY(8px);
  opacity: 0;
  animation: fadeUp var(--anim-medium) var(--ease) forwards;
}
@keyframes fadeUp {
  to { transform: none; opacity: 1; }
}

/* image helpers */
.img-cover { width:100%; height:100%; object-fit:cover; display:block; }

/* small text */
.kicker { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; }

/* --------------- Responsive --------------- */
@media (min-width: 640px) {
  .hero { padding: 96px 0; text-align: left; }
  .hero-inner { margin: 0; }
  .nav-links { gap: 1.25rem; }
  .grid--games { grid-template-columns: repeat(2, 1fr); }
  .grid--team { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .nav { padding: 1rem 0; }
  .grid--games { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1fr 480px; gap: 3rem; align-items: center; }
  .hero .visual {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(2,6,23,0.6);
  }
}

/* --------------- Accessibility tweaks --------------- */
a:focus { outline: 3px solid rgba(109,40,217,0.18); outline-offset: 2px; }
button:focus { outline: 3px solid rgba(109,40,217,0.18); outline-offset: 2px; }

/* --------------- Tiny helpers for dev / placeholders --------------- */
.debug-grid { outline: 1px dashed rgba(255,255,255,0.02); }

/* ===== LOGO SWITCH (Light/Dark) ===== */

.site-logo img {
  content: url('/assets/logo/MuhacklGames_Logo_Light.svg');
  transition: filter 0.3s ease, opacity 0.3s ease;
  display: inline-block;
}

@media (prefers-color-scheme: dark) {
  .site-logo img {
    content: url('/assets/logo/MuhacklGames_Logo_Dark.svg');
  }
}

/* ===== Hero Logo Banner ===== */
.site-header-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 2rem;
}

.logo-banner {
  width: 100%;
  background-color: var(--color-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* Responsive logo scaling */
.hero-logo {
  width: 80%;
  max-width: 900px;
  height: auto;
  display: block;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Darkmode logo switch */
@media (prefers-color-scheme: dark) {
  .hero-logo {
    content: url('/assets/logo/MuhacklGames_Logo_Dark.svg');
  }
}

/* ===== Navigation Bar ===== */
.nav-main {
  width: 100%;
  background: rgba(15,15,15,0.85);
  backdrop-filter: blur(6px);
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

/* Responsiveness */
@media (max-width: 768px) {
  .hero-logo { width: 90%; }
  .nav-links { gap: 1rem; }
}


/* --------------- End of file --------------- */
