/* ============================================================
   Moonfrog Labs — Static Site Styles
   Design: dark gaming theme matching original WordPress site
   Fonts: Share 700, Kodchasan 400/700, Mina 400/700 (Google)
   Colors: bg #03090d | header #1d1f22 | accent #5be592 | text #fff
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Share:wght@700&family=Kodchasan:wght@400;700&family=Mina:wght@400;700&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: #03090d;
  color: #ffffff;
  font-family: 'Kodchasan', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: #5be592; text-decoration: none; transition: color 0.2s; }
a:hover { color: #ffffff; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Share', sans-serif;
  line-height: 1.2;
  color: #ffffff;
}

p { margin-bottom: 1rem; color: rgba(255,255,255,0.85); }

ul { list-style: none; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header / Navigation ---- */
header {
  background-color: #1d1f22;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo a { display: flex; align-items: center; }
.logo img { width: 160px; }

/* Desktop Nav */
nav.main-nav { display: flex; align-items: center; }

nav.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 0;
}

nav.main-nav > ul > li {
  position: relative;
}

nav.main-nav > ul > li > a {
  display: block;
  padding: 0 16px;
  height: 70px;
  line-height: 70px;
  font-family: 'Kodchasan', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

nav.main-nav > ul > li > a:hover,
nav.main-nav > ul > li.active > a {
  color: #5be592;
}

/* Dropdown */
nav.main-nav .dropdown {
  position: absolute;
  top: 70px;
  left: 0;
  background: #1d1f22;
  min-width: 200px;
  border-top: 2px solid #5be592;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
}

nav.main-nav > ul > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

nav.main-nav .dropdown li a {
  display: block;
  padding: 12px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s, padding-left 0.2s;
}

nav.main-nav .dropdown li a:hover {
  color: #5be592;
  padding-left: 28px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: #1d1f22;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0;
}

.mobile-nav.open { display: block; }

.mobile-nav ul { padding: 10px 0; }

.mobile-nav ul li a {
  display: block;
  padding: 12px 30px;
  font-weight: 700;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-nav ul li a:hover { color: #5be592; background: rgba(91,229,146,0.05); }

.mobile-nav .sub-items a {
  padding-left: 48px;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
}

/* ---- Page Title Banner ---- */
.page-title-banner {
  background-color: #121517;
  padding: 80px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-title-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #5be592, transparent);
}

.page-title-banner h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ---- Sections ---- */
.section {
  padding: 80px 0;
}

.section-dark {
  background-color: #0a0f14;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title span { color: #5be592; }

.section-subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  margin-bottom: 50px;
}

.divider {
  width: 60px;
  height: 3px;
  background: #5be592;
  margin: 16px 0 40px;
}

/* ---- Home Hero / Games List ---- */
.hero-banner {
  background: linear-gradient(135deg, #03090d 0%, #121517 60%, #1d1f22 100%);
  padding: 100px 30px;
  text-align: center;
}

.hero-banner h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero-banner h1 span { color: #5be592; }

.hero-banner p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  padding: 60px 0;
}

.game-card {
  background: #121517;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91,229,146,0.4);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.game-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.game-card-body {
  padding: 24px;
}

.game-card-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #5be592;
  border: 1px solid #5be592;
  border-radius: 3px;
  padding: 2px 10px;
  margin-bottom: 12px;
}

.game-card-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.game-card-body p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}

.game-card-body .note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}

.btn {
  display: inline-block;
  padding: 10px 28px;
  background: transparent;
  border: 2px solid #5be592;
  color: #5be592;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn:hover {
  background: #5be592;
  color: #03090d;
}

.btn-solid {
  background: #5be592;
  color: #03090d;
}

.btn-solid:hover {
  background: #3dc977;
  color: #03090d;
}

/* ---- About Us Page ---- */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-section.reverse { direction: rtl; }
.about-section.reverse > * { direction: ltr; }

.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.about-text p { color: rgba(255,255,255,0.8); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.value-card {
  background: #121517;
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 4px solid #5be592;
  border-radius: 6px;
  padding: 24px;
}

.value-card h3 {
  font-size: 1rem;
  font-family: 'Mina', sans-serif;
  color: #5be592;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 40px;
  margin-top: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #5be592, transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #5be592;
  border: 2px solid #03090d;
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: #5be592;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

/* ---- Careers Page ---- */
.careers-intro {
  max-width: 780px;
  margin: 0 auto 50px;
  text-align: center;
}

.careers-intro p { font-size: 1.1rem; }

.contact-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 24px;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border: 2px solid #5be592;
  color: #5be592;
  font-weight: 700;
  font-size: 14px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.contact-links a:hover {
  background: #5be592;
  color: #03090d;
}

.no-positions {
  background: #121517;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 50px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  margin-bottom: 60px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.benefit-card {
  background: #121517;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 30px 26px;
  transition: border-color 0.2s, transform 0.2s;
}

.benefit-card:hover {
  border-color: rgba(91,229,146,0.4);
  transform: translateY(-4px);
}

.benefit-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.benefit-card h3 {
  font-size: 1.1rem;
  color: #5be592;
  margin-bottom: 10px;
  font-family: 'Mina', sans-serif;
}

.benefit-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

/* ---- Contact Page ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info-block {
  margin-bottom: 36px;
}

.contact-info-block h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #5be592;
  margin-bottom: 10px;
  font-family: 'Kodchasan', sans-serif;
}

.contact-info-block p,
.contact-info-block a {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
}

.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.social-icon:hover {
  border-color: #5be592;
  color: #5be592;
  background: rgba(91,229,146,0.08);
}

/* ---- Policy / Legal Pages ---- */
.policy-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}

.policy-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 8px;
}

.effective-date {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-bottom: 40px;
  font-style: italic;
}

.policy-content h2 {
  font-size: 1.3rem;
  margin: 40px 0 14px;
  color: #5be592;
  font-family: 'Mina', sans-serif;
  font-weight: 700;
}

.policy-content h3 {
  font-size: 1.05rem;
  margin: 28px 0 10px;
  color: rgba(255,255,255,0.9);
}

.policy-content p {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
}

.policy-content ul,
.policy-content ol {
  padding-left: 24px;
  margin-bottom: 1rem;
  list-style: disc;
}

.policy-content ol { list-style: decimal; }

.policy-content li {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  margin-bottom: 6px;
  line-height: 1.6;
}

.policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 0.9rem;
}

.policy-content th {
  background: #1d1f22;
  color: #5be592;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.1);
}

.policy-content td {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.78);
  vertical-align: top;
}

.policy-content tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}

.caps-notice {
  background: rgba(91,229,146,0.05);
  border: 1px solid rgba(91,229,146,0.2);
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin: 20px 0;
  line-height: 1.6;
  font-variant: small-caps;
}

/* ---- Corporate Information ---- */
.corporate-card {
  background: #121517;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.corporate-card h2 {
  font-size: 2rem;
  color: #5be592;
  margin-bottom: 10px;
}

.corporate-card p { color: rgba(255,255,255,0.7); }

/* ---- Footer ---- */
footer {
  background: #0a0c10;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 40px 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-links a:hover { color: #5be592; }

.scroll-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #1d1f22;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-size: 18px;
}

.scroll-top:hover { background: #5be592; color: #03090d; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  nav.main-nav { display: none; }
  .hamburger { display: flex; }

  .about-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-section.reverse { direction: ltr; }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 600px) {
  .hero-banner { padding: 60px 20px; }
  .section { padding: 50px 0; }
  .page-title-banner { padding: 50px 20px; }
  .games-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .contact-links { flex-direction: column; align-items: center; }
  .policy-content { padding: 40px 16px 60px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}
