/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f0f0f0;
  padding: 0 3vw;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 150px;
  max-width: 1800px;
  margin: 0 auto;
}

.header-nav { display: flex; gap: 2rem; }
.header-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.header-nav a:hover { opacity: 1; }

.header-logo img {
  height: 70px;
  display: block;
}

.header-social {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
}
.header-social a,
.mobile-social a,
.post-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e8e8e8;
  opacity: 1;
  transition: background 0.2s;
}
.header-social a:hover,
.mobile-social a:hover,
.post-social a:hover { background: #d8d8d8; }
.header-social svg,
.mobile-social svg,
.post-social svg { fill: #1a1a1a; display: block; width: 22px; height: 22px; }

.post-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* ===== MAIN CONTENT ===== */
main { min-height: 70vh; }

section {
  padding: 5vw 3vw;
  max-width: 1800px;
  margin: 0 auto;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: clamp(1.2rem, 2.5vw, 2rem); font-weight: 500; margin-bottom: 1.5rem; }
p  { margin-bottom: 1rem; opacity: 0.8; }

/* ===== GAMES LIST ===== */
ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
ul li a {
  font-weight: 500;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.25rem;
  transition: border-color 0.2s;
}
ul li a:hover { border-color: #1a1a1a; }

/* ===== BUTTON ===== */
button, .btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #1a1a1a;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover, .btn:hover { background: #444; }

.btn-play {
  padding: 1.2rem 10rem;
  font-size: 1.2rem;
}

/* ===== WISHLIST BUTTON ===== */
.btn-wishlist {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  background: #1a1a1a;
  color: #fff !important;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.2s;
}

.btn-wishlist:hover { background: #444; }

/* ===== BLOG LIST ===== */
.post-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.post-list li { border-bottom: 1px solid #f0f0f0; padding-bottom: 1.5rem; }
.post-list a { font-size: 1.2rem; font-weight: 600; }
.post-list a:hover { opacity: 0.6; }
.post-date { font-size: 0.85rem; opacity: 0.5; margin-top: 0.25rem; }

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 2rem 3vw;
  border-top: 1px solid #f0f0f0;
  font-size: 0.85rem;
  opacity: 0.5;
}

/* ===== HAMBURGER (mobile menu toggle) ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.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 MENU PANEL ===== */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 3vw 2rem;
  border-top: 1px solid #f0f0f0;
}

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

.mobile-menu a {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 500;
}

.mobile-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-nav { display: none; }
  .header-social { display: none; }
  .hamburger { display: flex; }
}

/* ===== HERO ===== */
.hero {
  padding: 5vw 3vw;
  background: #f9f9f9;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1800px;
  margin: 0 auto;
}

.hero-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-text a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.hero-image iframe {
  width: 100%;
  height: 500px;
  border-radius: 4px;
  display: block;
}

.hero-cta {
  text-align: center;
  margin-top: 10rem;
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* ===== GAMES GRID ===== */
.games-section { padding: 5vw 3vw; }
.games-section h2 { margin-bottom: 2rem; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1800px;
  margin: 0 auto;
}

.game-card {
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.game-card a { display: block; color: inherit; }

.game-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.game-card-info { padding: 1.5rem; }
.game-card-info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.game-card-info p { font-size: 0.9rem; opacity: 0.6; margin-bottom: 1rem; }

.game-btn {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.game-card--coming-soon {
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.game-card--coming-soon .game-card-info { text-align: center; }

@media (max-width: 768px) {
  .games-grid { grid-template-columns: 1fr; }
}

/* ===== GAME DETAIL PAGE ===== */
.game-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 5vw 3vw;
  max-width: 1800px;
  margin: 0 auto;
  align-items: start;
}

.game-detail-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.game-detail-info h1 { margin-bottom: 1rem; }
.game-detail-info p { margin-bottom: 2rem; }
.game-detail-content { margin-top: 2rem; opacity: 0.8; }

@media (max-width: 768px) {
  .game-detail { grid-template-columns: 1fr; }
}

/* ===== BLOG PAGE ===== */
.blog-section {
  padding: 5vw 3vw;
  max-width: 1500px;
  margin: 0 auto;
}

.blog-section h1 { margin-bottom: 3rem; }

/* ===== BLOG GRID ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.blog-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-card-image--placeholder {
  width: 100%;
  height: 200px;
  background: #f5f5f5;
}

.blog-card-info {
  padding: 1.5rem;
}

.blog-card-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.post-excerpt {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-top: 0.5rem;
}

/* ===== POST DETAIL PAGE ===== */
.post-detail {
  max-width: 1500px;
  margin: 0 auto;
  padding: 5vw 3vw;
}

.post-header { margin-bottom: 3rem; }
.post-header h1 { margin-bottom: 0.5rem; }

.post-content {
  line-height: 1.8;
  font-size: 1.05rem;
  max-width: 650px;
  color: #2a2a2a;
}
.post-content p { margin-bottom: 1.5rem; }

.post-content strong { font-weight: 600; color: #1a1a1a; }

.post-content ol,
.post-content ul {
  margin: 0 0 1.5rem 0;
  padding-left: 1.4rem;
}

.post-content ol li,
.post-content ul li {
  margin-bottom: 1.25rem;
  padding-left: 0.4rem;
}

.post-content ol li:last-child,
.post-content ul li:last-child { margin-bottom: 0; }

/* ===== POST NAVIGATION ===== */
.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #f0f0f0;
  gap: 1rem;
}

.post-nav-btn {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.post-nav-btn:hover { opacity: 1; }

.post-back {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #f0f0f0;
  font-size: 0.9rem;
  opacity: 0.6;
}

.post-back a:hover { opacity: 0.4; }

/* ===== POST BODY WITH IMAGE ===== */
.post-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.post-body .post-content:only-child {
  grid-column: 1 / -1;
}

.post-cta {
  text-align: center;
  margin-top: 2rem;
}

.post-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .post-body { grid-template-columns: 1fr; }
}

/* ===== INLINE POST IMAGES ===== */
.post-content img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  border-radius: 4px;
  margin: 2rem auto;
}

/* ===== CONTACT FORM ===== */
.contact-hero {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 0;
}

.contact-form-section {
  max-width: 700px;
  margin: 0 auto;
  padding-top: 2vw;
}
.contact-form { display: flex; flex-direction: column; gap: 1.75rem; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}

.contact-form input,
.contact-form textarea {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #1a1a1a;
  padding: 0.9rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: #1a1a1a; }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #b0b0b0; }

.contact-form textarea { resize: vertical; min-height: 140px; }

.contact-form button { align-self: stretch; padding: 1rem 2rem; margin-top: 0.5rem; }


/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: #e0e0e0;
  border-radius: 12px;
  text-align: center;
  padding: 4vw 3vw;
  max-width: 1800px;
  margin: 3vw auto;
}

.newsletter-section h2 { margin-bottom: 0.75rem; }
.newsletter-section > p { opacity: 0.9; margin-bottom: 2rem; }

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  padding: 0.9rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input:focus { border-color: #1a1a1a; }

.newsletter-form input::placeholder { color: #b0b0b0; }

.newsletter-form button { flex-shrink: 0; }

.newsletter-success p { margin-bottom: 0; font-weight: 500; }

.newsletter-note {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .newsletter-form { flex-direction: column; }
}

/* ===== FEATURE BLOCK TEMPLATE (game-feature posts) ===== */
.feature-toc {
  text-align: center;
  margin-bottom: 3rem;
}
.feature-toc p {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}
.feature-toc p:last-child { margin-bottom: 0; }

.feature-block {
  max-width: 650px;
  margin: 0 auto 3rem;
}

.feature-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.post-content .feature-image img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 0;
}

.feature-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  color: #fff;
  padding: 2.5rem 1.25rem 1rem;
}

.feature-caption h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: #fff;
}

.feature-caption p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #f0f0f0;
}

.feature-caption strong { color: #fff; }

.feature-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.post-content .feature-thumbs img {
  flex: 1;
  width: auto;
  max-width: none;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0;
}

@media (max-width: 600px) {
  .feature-thumbs { flex-wrap: wrap; }
  .post-content .feature-thumbs img { height: 70px; min-width: calc(33% - 0.4rem); }
}
/* ===== ABOUT PAGE — SHARED CITY LIGHTS BACKGROUND ===== */
.about-hero,
.team-section,
.contact-section {
  background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('/assets/images/contact-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
}

.about-hero {
  text-align: center;
  padding: 4vw 3vw;
}

.about-hero h1 {
  max-width: 700px;
  margin: 0 auto 1rem;
  color: #ffffff;
}
.about-hero p {
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.85;
}

.team-section { text-align: center; padding: 4vw 3vw; }
.team-section h2 { margin-bottom: 2.5rem; color: #ffffff; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.team-card h3 { margin-bottom: 0.15rem; color: #ffffff; }
.team-role { opacity: 0.75; font-size: 0.9rem; margin: 0; }

.team-avatar,
.team-avatar--placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 600;
  color: #1a1a1a;
  background: #e8e8e8;
  overflow: hidden;
}

/* Once a real photo replaces the placeholder div with an <img class="team-avatar">,
   this makes it crop into the same circle instead of stretching */
img.team-avatar { object-fit: cover; }

@media (max-width: 768px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-hero,
  .team-section,
  .contact-section { background-attachment: scroll; }
}

/* ===== 404 ERROR PAGE ===== */
.error-section {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 8vw 3vw;
}

.error-section h1 {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.error-section p { margin-bottom: 0.5rem; opacity: 0.7; }

.error-section .btn-home { margin-top: 2rem; }

/* ===== CONTACT SECTION (About page) ===== */
.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 50vh;
  padding: 4vw 3vw;
}

.contact-section h2 { margin-bottom: 0.5rem; color: #ffffff; }
.contact-section p { margin-bottom: 1rem; opacity: 0.9; }
.contact-section .contact-email { font-weight: 600; color: #ffffff; }