/* =========================
   BASE
========================= */
body {
  margin: 0;
  background: var(--color-bg-main);
  color: var(--color-text-primary);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.2px;
  overflow-x: hidden;
}

input,
select,
textarea,
button {
  font-size: 16px;
}

@media (max-width: 480px) {

  .careers-hero {
    padding-top: 180px;
    padding-bottom: 60px;
  }

  .careers-form-section {
    padding: 80px 16px 120px;
  }

  .careers-form {
    gap: 16px;
  }

  .submit-btn {
    padding: 18px;
  }
}


/* =========================
   LOGO (HEADER)
========================= */
.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo img {
  height: 140px;
  transform-origin: left center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover img {
  transform: scale(1.1);
  filter: brightness(0) saturate(100%)
          invert(61%) sepia(78%)
          saturate(425%) hue-rotate(345deg)
          brightness(100%) contrast(95%);
}

/* =========================
   HEADER
========================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px;
  z-index: 10;

  padding: 24px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(12,11,13,0.2);
  backdrop-filter: blur(8px);
}

.header nav a {
  margin-left: 32px;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 6px;
}

.header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.header nav a:hover::after {
  transform: scaleX(1);
}

.header nav a:hover {
  color: var(--color-accent-main);
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(12,11,13,0.15),
    rgba(12,11,13,0.95)
  );
  z-index: 2;
}

/* HERO → GAMES GEÇİŞ */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 140px;

  background: linear-gradient(
    to bottom,
    rgba(12,11,13,0),
    var(--color-bg-secondary)
  );

  z-index: 3;
  pointer-events: none;
}

/* =========================
   HERO CONTENT
========================= */
.hero-content {
  position: absolute;
  z-index: 4;
  left: 80px;
  bottom: 99px;

  width: 220px;

  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-game-logo {
  width: 100%;
  opacity: 0.95;
}

/* =========================
   HERO BUTTON (GLOW GERİ GELDİ)
========================= */
.hero-button {
  position: relative;
  align-self: center;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 28px;
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    var(--color-accent-main),
    var(--color-accent-hover)
  );

  color: #000;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;

  cursor: pointer;
  transition: transform 0.2s ease;
}

/* Glow layer */
.hero-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  box-shadow:
    inset 0 0 0 rgba(242,152,73,0),
    0 0 0 rgba(242,152,73,0);

  opacity: 0;
  transition: box-shadow 0.25s ease, opacity 0.25s ease;
  z-index: -1;
}

.hero-button:hover::before {
  opacity: 1;
  box-shadow:
    inset 0 0 0 1px rgba(242,152,73,0.35),
    0 0 24px rgba(242,152,73,0.6);
}

.hero-button:hover {
  transform: translateY(-2px);
}

/* =========================
   GAMES
========================= */
.games-wrapper {
  background: var(--color-bg-secondary);
  padding: 160px 0 120px;
  text-align: center;

  position: relative; /* 🔹 EKLENDİ */
  z-index: 1;         /* 🔹 EKLENDİ */
}

.games-container h2 {
  font-size: 48px;
  margin-bottom: 64px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 300px);
  gap: 32px;
  justify-content: center;
}

/* =========================
   GAME CARD
========================= */
.game-card {
  width: 300px;
  height: 450px;

  display: flex;
  flex-direction: column;

  background: var(--color-bg-surface);
  border-radius: 14px;
  overflow: hidden;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

/* ÜST GÖRSEL */
.game-image {
  height: 33%;
  overflow: hidden;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-image img {
  transform: scale(1.05);
}

/* ALT İÇERİK */
.game-info {
  height: 67%;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.game-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.game-info p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.45;
  flex-grow: 1;
}

/* CTA */
.game-actions a {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-accent-main);
  text-decoration: none;
  position: relative;
}

.game-actions a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--color-accent-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.game-actions a:hover::after {
  transform: scaleX(1);
}

/* =========================
   NEWS
========================= */
.news-section {
  margin-top: 96px;
  display: flex;
  justify-content: center;
  position: relative;
}

.news-card {
  width: calc((300px * 4) + (32px * 3));
  height: 240px;

  display: flex;
  overflow: hidden;
  border-radius: 10px;
  background: var(--color-bg-surface);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

/* =========================
   STEAM WIDGET (GAMES ALTINDA)
========================= */
.steam-widget-wrapper {
  margin: 96px auto 0;
  width: fit-content;

  padding: 16px;
  border-radius: 16px;

  background: rgba(20, 19, 22, 0.35);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    border 0.3s ease;
}

.steam-widget-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

/* iframe reset */
.steam-widget-wrapper iframe {
  display: block;
  border-radius: 10px;
}

/* =========================
   FOOTER
========================= */
.footer {
  padding: 15px 0;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
  background: var(--color-bg-main);

  position: relative;
  z-index: 2;

  min-height: 150px;
  justify-content: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer::before {
  content: "";
  position: absolute;
  top: -90px;       /* 🔹 120 → 90 */
  left: 0;
  width: 100%;
  height: 90px;    /* 🔹 120 → 90 */

  background: linear-gradient(
    to bottom,
    var(--color-bg-secondary),
    var(--color-bg-main)
  );

  pointer-events: none;
  z-index: -1;
}

/* =========================
   FOOTER EXTRAS
========================= */


.footer-logo {
  width: 190px;
  transition: transform 0.25s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-socials {
  display: flex;
  gap: 32px;
}

.footer-socials a {
  font-size: 25px;
  color: #fff;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-socials a:hover {
  color: var(--color-accent-main);
  transform: translateY(-3px);
}

/* =========================
   CAREERS PAGE
========================= */


.careers-hero {
  padding: 180px 20px 0px;
  text-align: center;
  background: var(--color-bg-primary);
  position: relative;
}

.careers-hero h1,
.careers-hero p {
  position: relative;
  z-index: 2;
}

.careers-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(
    to bottom,
    rgba(12,11,13,0),
    var(--color-bg-secondary)
  );
  pointer-events: none;
}

/* FORM SECTION — artık full width arka plan */
.careers-form-section {
  padding: 80px 20px 120px ;
  background: var(--color-bg-secondary);
  position: relative;
}

/* Form iç container */
.careers-form-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* aşağı fade */
.fade-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(
    to bottom,
    rgba(12,11,13,0),
    var(--color-bg-primary)
  );
  pointer-events: none;
}

/* FORM */

.careers-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.careers-form input,
.careers-form select,
.careers-form textarea {
  padding: 16px;
  border-radius: 12px;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.05);
  color: #fff;
}

.careers-form textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 200px;
  overflow-y: auto;
}

.file-upload {
  background: var(--color-accent-main);
  padding: 8px 6px;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
}

.submit-btn {
  background: var(--color-accent-main);
  padding: 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.file-upload, .submit-btn {
  font-family: 'Inter', sans-serif !important;
  letter-spacing: 0.5px;
  line-height: 1;
}

/* =========================
   FORM BUTTON EFFECTS
========================= */

.file-upload,
.submit-btn {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.submit-btn {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Hover animasyonu */
.file-upload:hover,
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(242,152,73,0.35);
  filter: brightness(1.05);
}

/* Aktif (basılı) hali */
.file-upload:active,
.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(242,152,73,0.25);
}

/* Glow pulse (çok hafif) */
.file-upload::after,
.submit-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255,255,255,0.25),
    rgba(255,255,255,0)
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.file-upload:hover::after,
.submit-btn:hover::after {
  opacity: 0.15;
}

.file-status {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.85;
}

.file-status.success {
  color: #6ED940; /* yeşil */
}

.file-status.error {
  color: #C7271F; /* kırmızı */
}

.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #222;
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-left: 4px solid #6ED940;
}

.toast.error {
  border-left: 4px solid #C7271F;
}


/* =========================
   PUBLISHING PAGE OVERRIDES
   (CAREERS & CONTACT İLE BİREBİR EŞİT)
========================= */

/* =========================
   PUBLISHING HERO — CAREER İLE %100 AYNI SPACING
========================= */

.publishing-hero h1,
.publishing-hero p {
  margin: 0;
}

.publishing-hero p {
  margin-top: 3px;   /* career & contact’ta ölçülen gerçek değer */
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}


/* FORM — input / select / textarea career ile birebir */
.publishing-form input,
.publishing-form select,
.publishing-form textarea {
  padding: 16px;              /* ⬅️ 18px → 16px */
  border-radius: 12px;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.05);
  color: #fff;
}

/* TEXTAREA — career ile aynı */
.publishing-form textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 200px;
  overflow-y: auto;
}

/* FORM GAP — career ile aynı */
.publishing-form {
  gap: 18px;
}

/* SUBMIT BUTTON — career ile birebir */
.publishing-form .submit-btn {
  padding: 20px; /* ⬅️ 22px → 20px */
}

/* MOBILE — career ile aynı davranış */
@media (max-width: 768px) {
  .publishing-hero {
    padding: 180px 20px 0;
  }

  .publishing-form-section .careers-form-container {
    max-width: 720px;
  }
}


/* =====================================
   ANASAYFA — FINAL MOBILE FIX
===================================== */
@media (max-width: 768px) {

  /* ===== BODY SAFETY ===== */
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* ================= HEADER ================= */
  .header {
    padding: 12px 16px;
    height: auto;
    flex-wrap: wrap;
    gap: 12px;
  }

  .logo img {
    height: 56px;
  }

  .header nav {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
  }

  .header nav a {
    margin: 0;
    font-size: 12px;
    white-space: nowrap;
  }

  /* ================= HERO ================= */
  .hero {
    height: 100vh;
  }

  .hero-content {
    position: relative;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .hero-game-logo {
    max-width: 200px;
  }

  /* ================= GAMES ================= */
  .games-wrapper {
    padding: 110px 16px 100px;
  }

  .games-grid {
    grid-template-columns: 1fr !important;
    justify-items: center;
    gap: 24px;
  }

  .game-card {
    width: 100%;
    max-width: 340px;
    height: auto;
  }

  .game-image {
    height: 180px;
  }

  /* ================= STEAM ================= */
  .steam-widget-wrapper {
    width: 100%;
    max-width: 360px;
    padding: 12px;
  }

  .steam-widget-wrapper iframe {
    width: 100%;
    height: 190px;
  }

  /* ================= FOOTER ================= */
  .footer-logo {
    width: 140px;
  }

  .footer-socials {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-socials a {
    font-size: 22px;
  }
}

/* =====================================
   ANASAYFA — TABLET FIX (iPad)
===================================== */
@media (min-width: 769px) and (max-width: 1024px) {

  /* ================= HEADER ================= */
  .header {
    padding: 16px 32px;
  }

  .logo img {
    height: 80px;
  }

  .header nav {
    display: flex;
    gap: 24px;
  }

  .header nav a {
    font-size: 13px;
    margin-left: 0;
  }

  /* ================= HERO ================= */
  .hero-content {
    left: 40px;
    bottom: 80px;
    width: 260px;
  }

  .hero-game-logo {
    max-width: 240px;
  }

  /* ================= GAMES ================= */
  .games-wrapper {
    padding: 140px 32px 120px;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    justify-items: center;
  }

  .game-card {
    width: 100%;
    max-width: 320px;
    height: auto;
  }

  .game-image {
    height: 200px;
  }

  /* ================= STEAM ================= */
  .steam-widget-wrapper {
    max-width: 680px;
  }

  .steam-widget-wrapper iframe {
    width: 100%;
    height: 190px;
  }

  /* ================= FOOTER ================= */
  .footer-logo {
    width: 160px;
  }

  .footer-socials {
    gap: 24px;
  }
}
