/* style.css - Cleaned & Mobile-Optimized */

/* ==========================================================================
   1. Reset & Base
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Kelly Slab', serif;
  background: #0c0a06;
  color: #f7941d;
  line-height: 1.6;
  font-size: 1.0625rem; /* 17px base */
  padding-top: 90px; /* clears fixed header */
}

/* ==========================================================================
   2. Typography & Fluid Scaling
   ========================================================================== */
h1, h2, h3 {
  font-family: 'Kelly Slab', serif;
}

.tagline,
.lead {
  font-size: 1.25rem;
  color: #a4855e;
}

.section h2 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 2.5rem;
  background: linear-gradient(90deg, #f7941d, #f75555);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ==========================================================================
   3. Layout & Components
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(20, 18, 14, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #222;
}

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

.logo-text {
  color: #f7941d;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
}

.accent {
  color: #f7941d;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: #f7941d;
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #ffb04d;
  outline: none;
}

.btn,
a[href] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 0.9rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}

.btn:focus,
a[href]:focus {
  outline: 3px solid #f7941d;
  outline-offset: 2px;
}

.btn.primary {
  background: #f7941d;
  color: #000;
}

.btn.primary:hover,
.btn.primary:focus {
  background: #ffb04d;
  transform: translateY(-2px);
}

.btn.outline {
  border: 2px solid #f7941d;
  color: #f7941d;
}

.btn.outline:hover,
.btn.outline:focus {
  background: #f7941d;
  color: #000;
}

.section {
  padding: 5rem 0;
}

.dark {
  background: #080604;
}

/* Hero */
.hero {
  min-height: 60vh;
  height: auto;
  padding: 6rem 0 4rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.8rem, 10vw, 5.5rem);
  line-height: 0.95;
  margin-bottom: 1.25rem;
}

.hero .lead {
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Grids */
.about-grid,
.overview-grid,
.games-grid,
.team-grid,
.gallery-grid {
  display: grid;
  gap: 2.5rem;
}

.games-grid,
.team-grid,
.gallery-grid {
  grid-template-columns: 1fr;
}

.game-card {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #222;
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover,
.game-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(247, 148, 29, 0.15);
}

.game-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  border-bottom: 1px solid #222;
}

.game-info {
  padding: 1.5rem;
}

.game-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.genre {
  color: #a4855e;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: block;
}

.member-photo {
  width: 140px;
  height: 140px;
  background: #222;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid #333;
  overflow: hidden;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team-member:hover .member-photo,
.team-member:focus-within .member-photo {
  border-color: #f7941d;
  transform: scale(1.06);
  transition: all 0.3s;
}

.role {
  color: #a4855e;
  font-size: 1rem;
}

/* Logo intro */
.logo-intro {
  padding: 4rem 0 2.5rem;
  text-align: center;
  background: #000000;
}

.main-logo {
  max-width: 360px;
  height: auto;
  display: block;
  margin: 0 auto 1.25rem;
  transition: transform 0.4s ease;
}

.main-logo:hover,
.main-logo:focus {
  transform: scale(1.05);
}

.logo-tagline {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  color: #f7941d;
  letter-spacing: 2px;
  opacity: 0.9;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hamburger menu */
.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  pointer-events: auto;
  z-index: 101;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: #f7941d;
  transition: all 0.3s ease;
}

/* ==========================================================================
   4. Media Queries
   ========================================================================== */

/* Tablet and up */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
    max-width: 960px;
  }
  .section {
    padding: 8rem 0;
  }
  .hero {
    min-height: 70vh;
    padding: 8rem 0 6rem;
  }
  .hero h1 {
    font-size: clamp(4rem, 9vw, 7rem);
  }
  .about-grid,
  .overview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .games-grid,
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  }
  .nav-links {
    gap: 2.2rem;
  }
  .member-photo {
    width: 160px;
    height: 160px;
  }
}

/* Desktop/large */
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
  }
  .section h2 {
    font-size: 3.5rem;
    margin-bottom: 4rem;
  }
  .hero h1 {
    font-size: 7rem;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    gap: 1.2rem;
  }
  .btn {
    width: 100%;
    padding: 1rem;
  }
  .logo-intro {
    padding: 3rem 0 2rem;
  }
  .main-logo {
    max-width: 280px;
  }
  .logo-tagline {
    font-size: 1.1rem;
  }
}

/* Hamburger menu - mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    margin-right: 1rem;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(12, 10, 6, 0.95);
    padding: 1.5rem 0;
    border-top: 1px solid #222;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  }
  .nav-links li {
    text-align: center;
    margin: 1rem 0;
  }
  .nav-links a {
    font-size: 1.3rem;
    padding: 0.8rem;
    display: block;
  }
  #nav-toggle:checked ~ .nav-links {
    display: flex;
  }
  #nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  #nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }
  #nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  body {
    padding-top: 100px;
  }
  .logo-intro {
    padding-top: 110px;
  }
  .logo-text {
    font-size: 1.45rem;
    white-space: nowrap;
  }
}

/* Discord & Learn More */
.discord-link,
a[href*="discord.gg"],
a[href*="discord.com"] {
  color: #7289DA;
}

.discord-link:hover,
a[href*="discord.gg"]:hover,
a[href*="discord.com"]:hover {
  color: #a3bffa;
}

.btn.small,
.game-info .btn.small {
  background: #00d4ff;
  color: #000;
  border: none;
}

.btn.small:hover,
.game-info .btn.small:hover {
  background: #00eaff;
  transform: translateY(-2px);
}

/* Remove underline from logo text (Firefox fix) */
.logo-text {
  text-decoration: none !important; /* overrides any default */
}

/* Make "Learn More" buttons larger/more consistent across browsers */
.btn.small {
  padding: 0.8rem 1.6rem !important; /* bigger padding */
  font-size: 1rem !important;        /* slightly larger text */
  min-height: 52px !important;       /* better touch target */
  min-width: 140px !important;       /* prevent too narrow */
  line-height: 1.4 !important;
}

/* Mobile grid overflow fix (Firefox strictness) */
@media (max-width: 768px) {
  .games-grid {
    overflow-x: hidden;          /* prevents horizontal scroll */
    gap: 1.5rem;                 /* tighter gap if needed */
  }

  .game-card {
    min-width: 0;                /* allows grid to shrink items properly */
    width: 100%;                 /* force full width within grid track */
    max-width: 100%;             /* cap any overflow */
  }

  .game-image {
    width: 100%;
    height: auto;                /* fallback if aspect-ratio fails */
  }
}

/* Extra Firefox mobile button fix (ensures buttons don't shrink) */
@media (max-width: 480px) {
  .btn.small {
    padding: 1rem 1.5rem !important;
    font-size: 1.05rem !important;
  }
}