/* SpongeBob Krusty Cook-Off - Static Site Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

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

:root {
  --bg-dark: #2e1e3f;
  --purple-mid: #3d2857;
  --purple-light: #4a3170;
  --text-white: #ffffff;
  --text-light: #e8e0f0;
  --accent-magenta: rgb(243, 62, 255);
  --max-width: 1600px;
  --font: 'Montserrat', Arial, Helvetica, sans-serif;
}

html, body {
  font-family: var(--font);
  background-color: var(--bg-dark);
  color: var(--text-white);
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9000;
  width: 100%;
  background-color: #2e1e3f;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  max-width: 100%;
}

.header-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo {
  width: 200px;
  height: auto;
  display: block;
}

.hamburger-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.hamburger-btn:hover { opacity: 0.8; }

.hamburger-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  border-radius: 14px;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: #2e1e3f;
  z-index: 9001;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-backdrop.is-visible { display: block; }
.nav-backdrop.is-open { opacity: 1; }

.nav-dropdown {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100vw;
  z-index: 9002;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 40px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown:not([hidden]) { display: flex; }
.nav-dropdown.is-open { transform: translateX(0); }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-item {
  display: block;
  width: 100%;
  padding: 14px 28px;
  background-color: #ffffff;
  color: #2e1e3f;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border-radius: 0 0 0 18px;
  border-bottom: 1px solid rgba(46, 30, 63, 0.08);
  transition: background-color 0.15s, color 0.15s;
  letter-spacing: 0.2px;
}

.nav-item:hover { background-color: #f0ebf6; }
.nav-item.is-active { text-decoration: underline; }

/* ===== HERO SECTION ===== */
.hero {
  background-color: var(--bg-dark);
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.hero-video-container {
  max-width: 1100px;
  margin: 0 auto 3rem;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.hero-video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* ===== AVAILABLE ON ===== */
.available-on {
  background-color: var(--bg-dark);
  padding: 2rem 2rem 4rem;
  text-align: center;
}

.available-on h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--text-white);
}

.platform-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.platform-grid a {
  display: inline-flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
}
.platform-grid a:hover { opacity: 1; transform: scale(1.05); }

.platform-grid img {
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
img[alt="App Store"]       { width: 149px; }
img[alt="Google Play"]     { width: 173px; }
img[alt="Nintendo Switch"] { width: 148px; }
img[alt="Xbox"]            { width: 129px; }
img[alt="PlayStation"]     { width: 180px; }
img[alt="Steam"]           { width: 137px; }

/* ===== ABOUT SECTION ===== */
.about {
  background-color: var(--purple-mid);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  pointer-events: none;
}

.about-text { position: relative; z-index: 1; }

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-light);
}

.about-logo {
  position: relative;
  z-index: 1;
  text-align: center;
}
.about-logo img {
  width: 429px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

/* ===== FEATURES ===== */
.features {
  background-color: var(--bg-dark);
  padding: 5rem 2rem;
}

.feature-block {
  max-width: var(--max-width);
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }

.feature-text h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-white);
  line-height: 1.3;
}

.feature-text p {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-light);
}

.feature-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* ===== AWARDS ===== */
.awards {
  background-color: var(--purple-mid);
  padding: 5rem 2rem;
  text-align: center;
}

.awards h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-magenta);
}

.awards p {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.awards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.awards-grid img {
  width: 291px;
  height: 163px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.awards-grid img:hover { transform: scale(1.03); }

/* ===== FOOTER ===== */
footer {
  background-color: #1a0f2e;
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin-bottom: 2rem;
}

footer nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}
footer nav a:hover { color: white; }

footer .copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ===== PAGE HERO (sub-pages) ===== */
.page-hero {
  background-color: var(--purple-mid);
  padding: 4rem 2rem;
  text-align: center;
}
.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== SWITCH PAGE ===== */
.switch-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.switch-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--text-white);
}

.switch-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.switch-cta {
  display: inline-block;
  background: var(--accent-orange);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 1.5rem 0;
  transition: background 0.2s, transform 0.2s;
}
.switch-cta:hover { background: #c4521a; transform: translateY(-2px); }

.game-info-box {
  background: var(--purple-mid);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.game-info-box .info-item label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.25rem;
}

.game-info-box .info-item span {
  font-size: 1rem;
  font-weight: 600;
}

.sale-badge {
  display: inline-block;
  background: #e53935;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-right: 0.5rem;
}

.price-original {
  text-decoration: line-through;
  color: rgba(255,255,255,0.5);
  margin-right: 0.5rem;
}

.price-current {
  font-size: 1.6rem;
  font-weight: 900;
  color: #7fffd4;
}

/* ===== POLICY PAGES ===== */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.policy-content h1 {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  text-align: center;
}

.policy-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.policy-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.policy-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.policy-content li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner { padding: 20px 20px; }
  .header-logo { width: 150px; }
  .nav-dropdown { width: 100vw; }

  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-logo { order: -1; }
  .about-logo img { max-width: 220px; }
  
  .feature-block { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-block.reverse { direction: ltr; }

  .about-text,
  .feature-text { text-align: center; }
  
  .platform-grid { gap: 1.5rem 2rem; }
  .platform-grid img { max-width: 140px; }
  
  .hero-video-container { max-width: 100%; }
  
  .page-hero h1 { font-size: 1.8rem; }
}
