/* ==========================================================================
   Mythmatic — style.css
   Dark theme, mobile-first, no frameworks.
   ========================================================================== */

/* ---------- Reset & Base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background: #0d0d0d;
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #e8a838;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.highlight {
  color: #e8a838;
}

/* ---------- Layout helpers ---------- */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  flex: 1;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: #111;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  height: 60px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 44px;
  width: auto;
}

/* Nav menu */

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

.nav-menu a {
  color: #ccc;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #fff;
  text-decoration: none;
}

/* Hamburger button */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ccc;
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Homepage tagline ---------- */

.tagline-section {
  text-align: center;
  padding: 3rem 1rem;
}

.tagline-section p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  color: #bbb;
}

/* ---------- Games page ---------- */

.game-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 1rem;
}

.game-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.game-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 2rem;
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.game-description {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #ddd;
  background: rgba(0, 0, 0, 0.8);
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
}

.steam-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #1b2838;
  color: #c7d5e0;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  border: 2px solid #fff;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s;
}

.steam-btn:hover {
  background: #2a475e;
  text-decoration: none;
  color: #fff;
}

.steam-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---------- Contact page ---------- */

.contact-section {
  padding: 4rem 1rem;
}

.contact-card {
  max-width: 600px;
  margin: 0 auto;
}

.contact-card h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-card p {
  color: #bbb;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* ---------- About page ---------- */

.about-section {
  padding: 4rem 1rem;
}

.profile-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 3px solid #333;
}

.profile-card h1 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.profile-card .title {
  color: #e8a838;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.profile-card .bio {
  color: #bbb;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.favorite-games {
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

.favorite-games h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #e8a838;
}

.favorite-games ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: #bbb;
}

.favorite-games li {
  margin-bottom: 0.35rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #111;
  border-top: 1px solid #222;
  margin-top: auto;
}

.footer-upper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-upper {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-social,
.footer-newsletter {
  flex: 1;
  text-align: center;
}

.footer-social h3,
.footer-newsletter h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #fff;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #222;
  border: 2px solid #fff;
  transition: background 0.2s;
}

.social-icons a:hover {
  background: #333;
}

.social-icons svg {
  width: 32px;
  height: 32px;
  fill: #ccc;
}

/* Newsletter form */

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 1px solid #333;
  border-radius: 4px;
  background: #1a1a1a;
  color: #e0e0e0;
  font-size: 0.95rem;
}

.newsletter-form input[type="email"]::placeholder {
  color: #666;
}

.newsletter-form button {
  padding: 0.6rem 1.25rem;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: #43a047;
}

.privacy-note {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.5;
}

.footer-lower {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid #1a1a1a;
  font-size: 0.85rem;
  color: #666;
}

/* ---------- Responsive ---------- */

/* Mobile: show hamburger, hide nav */
@media (max-width: 767px) {
  .site-header .container {
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #111;
    border-bottom: 1px solid #222;
    padding: 1rem 0;
    gap: 0;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    text-align: center;
  }

  .nav-menu a {
    display: block;
    padding: 0.75rem 1rem;
  }

  .hero {
    min-height: 200px;
  }
}

/* Tablet and up */
@media (min-width: 768px) {
  .hero {
    min-height: 400px;
  }

  .tagline-section p {
    font-size: 1.3rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero {
    min-height: 500px;
  }

  .game-section {
    padding: 6rem 2rem;
  }

  .about-section {
    padding: 5rem 2rem;
  }
}
