/* team57.css — shared styles for the Team57 game-studio site */
:root {
  color-scheme: dark;
  --red: #d32f2f;
  --red-glow: rgba(211, 47, 47, 0.45);
  --white: #ffffff;
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #262626;
  --text: #f2f2f2;
  --text-dim: #999999;
  --heading: #ffffff;
  --nav-bg: rgba(10, 10, 10, 0.78);
  --outline-btn-bg: rgba(255, 255, 255, 0.03);
  --outline-btn-bg-hover: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Headings/logo/stat numbers use League Spartan, matching the old site's font pairing */
.t57-logo, .t57-hero-logo, .t57-game-name, .t57-section h1, .t57-section h2 {
  font-family: 'League Spartan', sans-serif;
}

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

/* Nav */
.t57-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px max(24px, calc((100% - 1000px) / 2));
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.t57-nav .t57-logo { font-size: 24px; font-weight: 800; color: var(--heading); letter-spacing: 0.5px; }
.t57-nav .t57-logo span { color: var(--red); }
.t57-nav-links { display: flex; gap: 8px; align-items: center; position: relative; }
.t57-nav-links a { font-size: 14px; color: var(--text-dim); position: relative; padding-bottom: 2px; transition: color 0.2s; }
.t57-nav-links a:hover, .t57-nav-links a.active { color: var(--heading); }
.t57-nav-indicator {
  position: absolute;
  bottom: -3px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
  transition: left 0.25s ease, width 0.25s ease, opacity 0.2s ease;
  opacity: 0;
}
.t57-nav-controls { display: flex; align-items: center; gap: 8px; }
.t57-nav-social { display: flex; align-items: center; gap: 8px; }
.t57-nav-links .t57-nav-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
.t57-nav-links .t57-nav-icon:hover { color: var(--red); background: var(--outline-btn-bg-hover); transform: translateY(-1px); }
.t57-nav-icon[href*='discord'] { --brand: #5865f2; }
.t57-nav-icon[href*='instagram'] { --brand: #e4405f; }
.t57-nav-icon[href*='youtube'] { --brand: #ff0000; }
.t57-nav-links .t57-nav-icon[href]:hover { color: var(--brand, var(--red)); }
.t57-nav-icon[href*='instagram']:hover svg { fill: url(#t57-ig); }
.t57-lang-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
.t57-lang-btn { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border-radius: 10px; }
.t57-lang-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.t57-lang-btn:hover, .t57-lang-btn:focus { color: var(--red); background: var(--outline-btn-bg-hover); transform: translateY(-1px); outline: none; }

/* Language picker - two facing chat bubbles under the button, each showing a language name */
.t57-lang-dropdown { position: relative; }
.t57-lang-menu {
  position: absolute;
  top: calc(100% + 56px);
  right: -64px;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s;
  z-index: 30;
}
.t57-lang-menu::before {
  content: '';
  position: absolute;
  inset: -8px -26px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.26) 0%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0) 72%);
  filter: blur(16px);
}
@media (max-width: 640px) { .t57-lang-menu { right: 0; } }
.t57-lang-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
.t57-lang-item {
  position: relative;
  align-self: flex-start;
  width: 92px;
  height: 64px;
  padding: 0 0 12px;
  border: none;
  background: transparent;
  color: #fff;
  font: 700 13px 'DM Sans', sans-serif;
  text-shadow: 0 1px 2px rgba(10,30,100,0.6);
  cursor: pointer;
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.5s ease, transform 0.5s ease, filter 0.2s;
}
.t57-lang-item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('/assets/website_images/lang-bubble.svg') center / 100% 100% no-repeat;
  filter: drop-shadow(0 8px 12px rgba(200,48,42,0.3));
}
.t57-lang-item:nth-child(even) { align-self: flex-end; transform: translateX(36px); }
.t57-lang-item:nth-child(even)::before { transform: scaleX(-1); }
.t57-lang-menu.open .t57-lang-item {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 1s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s;
}
.t57-lang-menu.open .t57-lang-item:nth-child(even) { transition-delay: 0.3s, 0.3s, 0s; }
.t57-lang-menu.open .t57-lang-item:hover { transform: translateY(-2px); filter: brightness(1.05); }
.t57-lang-item.active::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 6px;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1c.7 6.2 4.8 10.3 11 11-6.2.7-10.3 4.8-11 11-.7-6.2-4.8-10.3-11-11C7.2 11.3 11.3 7.2 12 1z' fill='%23fff'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.8));
}
.t57-lang-item.active::before { filter: drop-shadow(0 0 4px rgba(255,255,255,0.5)) drop-shadow(0 8px 12px rgba(200,48,42,0.4)); }

/* Buttons */
.t57-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.t57-btn-primary { background: var(--red); color: var(--white); box-shadow: 0 8px 24px -8px var(--red-glow); }
.t57-btn-primary:hover { background: #e53935; transform: translateY(-2px); box-shadow: 0 12px 28px -6px var(--red-glow); }
.t57-btn-outline { background: var(--outline-btn-bg); border-color: var(--border); color: var(--heading); }
.t57-btn-outline:hover { background: var(--outline-btn-bg-hover); border-color: var(--heading); transform: translateY(-2px); }

/* Section label (small red eyebrow above a section title) */
.t57-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.t57-eyebrow::before, .t57-eyebrow::after { content: ''; width: 20px; height: 1px; background: var(--red); opacity: 0.6; }

/* Games grid */
.t57-games-section { max-width: 1160px; margin: 0 auto; padding: 10px 40px 90px; }
.t57-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.t57-game-card {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.t57-game-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(211,47,47,0.6);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.35), 0 0 0 1px rgba(211,47,47,0.25);
}
.t57-game-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0) 65%);
}
.t57-game-card .t57-game-name {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  color: #ffffff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.3px;
}
.t57-game-card.t57-coming-soon { background-color: var(--surface); border-style: dashed; opacity: 0.8; }
.t57-game-card.t57-coming-soon::after { background: none; }
.t57-game-card.t57-coming-soon .t57-game-name { position: static; color: var(--text-dim); font-weight: 600; display: flex; align-items: center; justify-content: center; height: 100%; flex-direction: column; }
.t57-game-card-desc {
  margin: 10px 2px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.t57-game-card.t57-coming-soon .t57-game-name::after {
  content: attr(data-soon-label);
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Footer */
.t57-footer {
  border-top: 1px solid var(--border);
  padding: 22px clamp(24px, 9vw, 130px);
  color: var(--text-dim);
  font-size: 13px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.t57-footer-logo { justify-self: start; font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 16px; color: var(--heading); }
.t57-footer-logo span { color: var(--red); }
.t57-footer-links { justify-self: center; white-space: nowrap; }
.t57-footer-active { color: var(--red); font-weight: 700; }
.t57-footer-copy { justify-self: end; text-align: right; }
.t57-footer a { transition: color 0.2s; }
@media (max-width: 640px) {
  .t57-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .t57-footer-logo, .t57-footer-links, .t57-footer-copy { justify-self: center; text-align: center; }
}
.t57-footer a:hover { color: var(--heading); }

/* Section heading used on About/Contact/Legal pages */
.t57-section { max-width: 720px; margin: 0 auto; padding: 70px 20px 60px; }
.t57-section h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 18px; }
.t57-section h2 { font-size: 18px; margin: 32px 0 8px; }
.t57-section h1, .t57-section h2 { color: var(--heading); }
.t57-section p { color: var(--text-dim); line-height: 1.7; font-size: 15px; }
.t57-section a:not(.t57-btn) { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
