/* ========================================
   Zifa Productions — Global Styles
   ======================================== */

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

:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-bg-card: #161616;
  --color-bg-card-hover: #1e1e1e;
  --color-text: #e8e8e8;
  --color-text-muted: #888888;
  --color-accent: #4f8fff;
  --color-accent-hover: #6ea3ff;
  --color-border: #222222;
  --color-white: #ffffff;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --max-width: 1120px;
  --nav-height: 64px;
  --radius: 8px;
  --radius-lg: 12px;

  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

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

ul, ol {
  list-style: none;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-white);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 48px;
  max-width: 600px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  background: rgba(79, 143, 255, 0.12);
  color: var(--color-accent);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-steam {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1b2838;
  color: var(--color-white);
}

.btn-steam:hover {
  background: #2a475e;
  color: var(--color-white);
  transform: translateY(-1px);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-logo:hover {
  color: var(--color-white);
}

.nav-logo-img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-white);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-trigger::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform var(--transition);
}

.nav-dropdown:hover .nav-dropdown-trigger::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 24px;
  background: var(--color-bg-card);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.nav-dropdown-menu a:first-child {
  border-top: 1px solid var(--color-border);
  border-radius: var(--radius) var(--radius) 0 0;
}

.nav-dropdown-menu a:last-child {
  border-bottom: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius) var(--radius);
}

.nav-dropdown-menu a:first-child:last-child {
  border-radius: var(--radius);
}

.nav-dropdown-menu a + a {
  border-top: 1px solid var(--color-border);
}

.nav-dropdown-menu a:hover {
  background: var(--color-bg-card-hover);
  color: var(--color-white);
}

.game-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform var(--transition);
}

.game-card-link:hover {
  transform: translateY(-2px);
  color: inherit;
}

.nav-cta {
  font-size: 0.85rem !important;
  padding: 8px 16px;
  background: var(--color-accent);
  color: var(--color-white) !important;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--color-accent-hover);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
}

/* --- Hero --- */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  text-align: center;
}

.hero-overline {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Game Card --- */
.game-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}

.game-card:hover {
  border-color: #333;
}

.game-card-image {
  aspect-ratio: 16 / 9;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  overflow: hidden;
  margin: 16px 0 16px 16px;
  border-radius: var(--radius);
}

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

.game-card-content {
  padding: 40px;
}

.game-card-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.game-card-content p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.game-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.game-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Fact Sheet (Presskit) --- */
.fact-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.fact-item {
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.fact-item dt {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.fact-item dd {
  font-size: 1rem;
  color: var(--color-text);
}

/* --- Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 16 / 9;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color var(--transition);
}

.gallery-item:hover {
  border-color: #333;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}

/* --- About / Content Blocks --- */
.content-block {
  max-width: 720px;
}

.content-block p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.content-block h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 40px 0 16px;
}

/* Feature grid (game mechanics with GIFs) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card-gif {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card-gif img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: pointer;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  padding: 20px 20px 8px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 0 20px 20px;
}

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

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.team-member {
  padding: 32px 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
}

.team-member-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-text-muted);
}

.team-member h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 4px;
}

.team-member p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --- Download Section --- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.download-card {
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color var(--transition);
}

.download-card:hover {
  border-color: #333;
}

.download-card-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 4px;
}

.download-card-info p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* --- Presskit List --- */
.presskit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.presskit-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.2s, border-color 0.2s;
}

.presskit-list-item:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-accent);
}

.presskit-list-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.presskit-list-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.presskit-list-item svg {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.presskit-list-item:hover svg {
  color: var(--color-accent);
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  font-size: 0;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--color-white);
}

.footer-social a svg {
  width: 22px;
  height: 22px;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-white);
}

/* --- Video Embed --- */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

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

/* --- Divider --- */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 48px 0;
}

/* --- Page Header (non-home pages) --- */
.page-header {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 40px;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 560px;
}

/* --- Language Switcher --- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.lang-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover {
  color: var(--color-white);
  border-color: var(--color-border);
}

.lang-btn.active {
  color: var(--color-white);
  background: rgba(79, 143, 255, 0.15);
  border-color: var(--color-accent);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
  }

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

  .nav-toggle {
    display: flex;
  }

  .lang-switcher {
    margin-left: 0;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .game-card {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .page-header {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 24px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
