/* ===== YABUSAKA GAMES - Shared Stylesheet ===== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&family=Oswald:wght@400;600;700&display=swap');

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

:root {
  --bg:         #0c0b09;
  --surface:    #141210;
  --surface2:   #1c1a16;
  --border:     #2e2a24;
  --text:       #ede8e0;
  --text-muted: #8a8070;
  --text-dim:   #524c42;

  /* Brand - Warm Dark Brown */
  --brand:      #b08060;
  --brand-dark: #7a5840;
  --brand-glow: rgba(176, 128, 96, 0.25);

  /* Holo Hockey - Ice Blue */
  --hh-accent:  #00c8ff;
  --hh-dark:    #0055aa;
  --hh-glow:    rgba(0, 200, 255, 0.25);

  /* Two Voices - Golden Art */
  --tv-accent:  #e8c46a;
  --tv-dark:    #a07820;
  --tv-glow:    rgba(232, 196, 106, 0.2);

  --radius:     8px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(0,0,0,0.6);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.8);

  font-size: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 70px;
  background: rgba(8, 8, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav-logo-text {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--text);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.03em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}

.nav-links .nav-game-hh a:hover {
  color: var(--hh-accent);
  background: rgba(0, 200, 255, 0.1);
}

.nav-links .nav-game-tv a:hover {
  color: var(--tv-accent);
  background: rgba(232, 196, 106, 0.1);
}

/* ===== Page Hero ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero:hover .hero-bg {
  transform: scale(1.0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,15,0.3) 0%,
    rgba(8,8,15,0.5) 50%,
    rgba(8,8,15,0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

/* ===== Sections ===== */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 3rem;
}

.section-divider {
  width: 48px;
  height: 3px;
  border-radius: 2px;
  margin: 1rem 0 3rem 0;
}

/* ===== Game Cards (used on index) ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.game-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.game-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 616/353;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.game-card:hover .game-card-image img {
  transform: scale(1.05);
}

.game-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.7) 100%);
}

.game-card-body {
  padding: 1.5rem;
}

.game-card-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.game-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.game-card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--brand);
  color: #fff8f0;
}

.btn-primary:hover {
  background: #c49070;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--brand-glow);
}

.btn-hh {
  background: var(--hh-accent);
  color: #001825;
}

.btn-hh:hover {
  background: #33d4ff;
  box-shadow: 0 4px 20px var(--hh-glow);
  transform: translateY(-1px);
}

.btn-tv {
  background: var(--tv-accent);
  color: #1a1200;
}

.btn-tv:hover {
  background: #f0d080;
  box-shadow: 0 4px 20px var(--tv-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
}

/* ===== Video Section ===== */
.video-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ===== Feature Cards ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== Screenshots ===== */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  position: relative;
  border: 1px solid var(--border);
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.screenshot-item:hover img {
  transform: scale(1.05);
}

.screenshot-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.screenshot-item:hover .screenshot-item-overlay {
  background: rgba(0,0,0,0.3);
}

.screenshot-zoom-icon {
  opacity: 0;
  color: white;
  font-size: 1.5rem;
  transition: opacity 0.3s;
}

.screenshot-item:hover .screenshot-zoom-icon {
  opacity: 1;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.92);
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  opacity: 0.8;
}

.footer-logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ===== Game Page Hero ===== */
.game-hero {
  position: relative;
  width: 100%;
  padding-top: 70px;
  overflow: hidden;
}

.game-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
}

.game-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,15,0.1) 0%,
    rgba(8,8,15,0.5) 60%,
    rgba(8,8,15,1) 100%
  );
}

.game-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 5rem 5% 4rem;
  min-height: 520px;
}

.game-hero-logo {
  width: min(500px, 60vw);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.8));
}

.game-hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text);
  max-width: 600px;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.game-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== Info Bar (under hero) ===== */
.info-bar {
  padding: 1rem 5%;
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.info-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--surface2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ===== Content Sections (game pages) ===== */
.content-section {
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.content-section + .content-section {
  padding-top: 0;
}

.content-heading {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.content-heading-bar {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 2rem;
}

/* ===== Full-width background sections ===== */
.full-section {
  padding: 4rem 5%;
  position: relative;
}

.full-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Description text ===== */
.desc-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 800px;
}

.desc-text strong {
  color: var(--text);
}

/* ===== Notice / Disclaimer ===== */
.notice {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface2);
  border-left: 3px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== Animation ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.7s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav {
    padding: 0 1.25rem;
  }

  .nav-logo-text {
    font-size: 0.95rem;
  }

  .nav-links a {
    padding: 0.4rem 0.6rem;
    font-size: 0.82rem;
  }

  .section {
    padding: 4rem 1.25rem;
  }

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

  .game-hero-inner {
    padding: 4rem 1.25rem 3rem;
    min-height: 400px;
  }

  .content-section,
  .full-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}
