@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

/* GENEL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* Üst başlık */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 40px;
  text-align: center;
  font-size: 48px;
  background: rgba(0,0,0,0.5);
  transition: opacity 0.5s ease, transform 0.5s ease; /* Opaklık ve pozisyon için geçiş */
}

/* Kaydırma sırasında küçülme ve yukarı kayma efekti */
header.scrolled {
  opacity: 0;         /* Yavaşça kaybolur */
  transform: translateY(-50px) scale(0.8); /* Yukarı kayma ve küçülme */
}

#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* video fills */
  z-index: -1;
}

/* Navbar üst bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

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

/* LOGO DÜZENLEMESİ: CORE logosunun bozulmasını engellemek için filter kodu kaldırıldı. */
.logo img {
  height: 35px;
}

/* MENÜ */
.menu a {
  position: relative;
  display: inline-block;
  padding: 8px 20px;
  margin-left: 15px;
  border: 2px solid red;
  border-radius: 25px;
  color: white;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Işık efekti */
.menu a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,0,0,0.6),
    rgba(255,255,255,0.4),
    rgba(255,0,0,0.6)
  );
  transition: all 0.5s ease;
  z-index: 1;
}

/* Hover olunca ışık geçsin */
.menu a:hover::before {
  left: 100%;
}

/* Hover olunca renk ve animasyon */
.menu a:hover {
  background: red;
  color: black;
  transform: scale(1.1);
}

/* Tıklanınca ufak animasyon */
.menu a:active {
  transform: scale(0.95);
}

/* COOKIES */
.cookies {
  background: rgba(0, 0, 0, 0.85);
  padding: 15px;
  font-size: 12px;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9999; /* tüm diğer elemanların üstünde */
}

.cookies p {
  margin-bottom: 10px;
}

.cookies a {
  color: #bbb;
  text-decoration: underline;
}

.cookies-buttons {
  display: flex;
  gap: 10px;
}

.cookies-buttons button {
  background: none;
  border: 1px solid #fff;
  color: #fff;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
}

.cookies-buttons .accept {
  background: #fff;
  color: #000;
  font-weight: bold;
}

/* GENEL BUTON STİLİ */
button, .teaser-btn a {
  position: relative;
  display: inline-block;
  overflow: hidden;
  color: #fff;
  background: transparent;
  border: 1px solid red;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Hover efekti: arka plandan ışık süzülmesi */
button::before, .teaser-btn a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,0,0,0.6), rgba(255,255,255,0.3), rgba(255,0,0,0.6));
  transition: all 0.5s ease;
}

button:hover::before, .teaser-btn a:hover::before {
  left: 100%;
}

button:hover, .teaser-btn a:hover {
  color: #000;
  background: red;
  transform: scale(1.05);
}

/* TEASER BUTONU ÖZEL */
.teaser-btn a {
  font-size: 18px;
  border: 2px solid red;
  padding: 12px 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: bold;
}

/* Cookies accept özel */
.cookies-buttons .accept {
  border: 2px solid #fff;
  background: #fff;
  color: #000;
  font-weight: bold;
  transition: transform 0.3s ease, background 0.3s ease;
}

.cookies-buttons .accept:hover {
  transform: scale(1.1) rotate(-2deg);
  background: red;
  color: #fff;
}

/* SOUND butonuna özel */
#sound-btn {
  position: relative;
  display: inline-block;
  padding: 8px 18px;
  border: 2px solid red;
  border-radius: 25px;
  color: white;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* İçinden geçen ışık efekti */
#sound-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,0,0,0.6),
    rgba(255,255,255,0.4),
    rgba(255,0,0,0.6)
  );
  transition: all 0.5s ease;
}

#sound-btn:hover::before {
  left: 100%;
}

#sound-btn:hover {
  background: red;
  color: black;
  transform: scale(1.05);
}

/* GENİŞLETİLMİŞ MENÜ PANELİ */
#expanded-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#expanded-menu.active {
  opacity: 1;
  visibility: visible;
}

.menu-content {
  display: flex;
  gap: 80px;
  padding: 40px;
  text-align: left;
}

.menu-column h2 {
  font-size: 24px;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 20px;
  border-bottom: 2px solid red;
  padding-bottom: 5px;
}

.menu-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-column ul li {
  margin-bottom: 10px;
}

.menu-column ul li a {
  color: #aaa;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.menu-column ul li a:hover {
  color: red;
  transform: translateX(10px);
}

#close-menu-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  background: transparent;
  border: 2px solid red;
  color: red;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  padding: 5px 15px;
  transition: all 0.3s ease;
}

#close-menu-btn:hover {
  background: red;
  color: #000;
  transform: rotate(90deg);
}

/* GENEL AYARLAR */
body {
    background-color: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* NAVBAR (Geliştirdiğiniz Navbar'a benzer) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}


.menu a {
    position: relative;
    display: inline-block;
    padding: 8px 20px;
    margin-left: 15px;
    border: 2px solid red;
    border-radius: 25px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.menu a:hover {
    background: red;
    color: black;
    transform: scale(1.1);
}

.footer {
  background: #000;
  color: #fff;
  padding: 40px 10%;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin: 8px 0;
}

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-col ul li a:hover {
  color: #fff;
  transform: translateX(5px);
}

.new {
  color: red;
  font-size: 0.8em;
  margin-left: 5px;
}

.footer-bottom {
  margin-top: 40px;
  text-align: center;
}

.socials a {
  margin: 0 10px;
  color: #ccc;
  font-size: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.socials a:hover {
  color: #fff;
  transform: scale(1.2) rotate(5deg);
}

.footer-legal {
  margin-top: 30px;
  text-align: center;
  font-size: 0.9em;
  color: #aaa;
}

.footer-legal a {
  color: #aaa;
  margin: 0 5px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #fff;
}


/* Cookies accept özel */
.cookies-buttons .accept {
  border: 2px solid #fff;
  background: #fff;
  color: #000;
  font-weight: bold;
  transition: transform 0.3s ease, background 0.3s ease;
}

.cookies-buttons .accept:hover {
  transform: scale(1.1) rotate(-2deg);
  background: red;
  color: #fff;
}

html, body {
  overflow-x: hidden !important;  /* tüm sitede yatay kaydırmayı kapat */
  width: 100%;
}

.divider-simple {
  border: none;
  height: 1px;
  width: 93%;          /* çizginin uzunluğunu kısalttım */
  background-color: #555;
  margin: 40px auto;   /* ortalanması için */
}

/* ========= THEME (scoped) ========= */
:root { color-scheme: dark; }
#signup-root {
  --nav-offset: 0px;                 /* navbar yüksekliğin varsa değiştir */
  --bg: #0b0b0c;
  --panel: #111113;
  --panel-2: #1a1a1d;
  --muted: #6a6a6f;
  --line: #232327;
  --accent: #a40808;
  --accent-2: #e11414;
  --ok: #60d394;
  --error: #ff5c5c;
  --grain-opacity: .08;
  --ease: cubic-bezier(.22,.61,.36,1);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: radial-gradient(1200px 800px at 15% 20%, #121214 0%, #0b0b0c 55%, #070708 100%);
  color: #ddd;
  min-height: 100svh;
  margin: 0;
  padding-top: var(--nav-offset);
  overflow-x: hidden;
  position: relative;
}

/* film grain + vignette + global flicker */
#signup-root::before,
#signup-root::after{
  content:"";
  position:fixed; inset:0; pointer-events:none; z-index:0;
}
#signup-root::before { /* film grain */
  background-image:
    radial-gradient(1200px 700px at 20% 20%, rgba(0,0,0,.45), transparent 60%),
    radial-gradient(900px 600px at 80% 80%, rgba(0,0,0,.55), transparent 65%);
  mix-blend-mode:multiply;
}
#signup-root::after { /* noise */
  opacity: var(--grain-opacity);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.5'/></svg>");
  animation: grain 1.5s steps(2,end) infinite;
}
@keyframes grain { to { transform: translate3d(-120px,0,0);} }

.split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr .95fr;   /* sol büyük – sağ form */
  gap: 0;
  min-height: calc(100svh - var(--nav-offset));
  z-index: 1;
}

/* ======= LEFT: HERO ======= */
.left {
  position: relative; overflow: hidden;
  background: #000;
}
.hero {
  position:absolute; inset:0;
  background-image: var(--hero, url('images/signup-hero.jpg'));
  background-size: cover; background-position: 35% 50%;
  transform: scale(1.12);
  filter: contrast(1.03) brightness(.85) saturate(.9);
  animation: kenburns 24s ease-in-out infinite alternate;
}
.left::after { /* vignette */
  content:""; position:absolute; inset:0;
  background: radial-gradient(1200px 700px at 10% 50%, transparent 0 55%, rgba(0,0,0,.65) 75%, rgba(0,0,0,.9) 100%),
              linear-gradient(90deg, rgba(0,0,0,.55) 0%, transparent 35%);
  pointer-events:none;
}
@keyframes kenburns {
  0%   { transform: scale(1.12) translate3d(0, 0, 0); filter: brightness(.82); }
  100% { transform: scale(1.18) translate3d(-1.5%, -1%, 0); filter: brightness(.9);}
}

/* subtle light flicker on the hero (horror vibe) */
.left .light-flicker {
  position:absolute; inset:0; pointer-events:none; mix-blend-mode:screen;
  background: radial-gradient(600px 400px at 70% 25%, rgba(160,20,20,.08), transparent 70%);
  animation: flicker 8s steps(5,end) infinite;
}
@keyframes flicker {
  0%,10%,22%,38%,100% { opacity: .25; }
  5%,18%,26%,40% { opacity: .05; }
  7%,30% { opacity: .15; }
}

/* parallax on mouse */
.left.parallax .hero { will-change: transform; transition: transform .15s linear; }

/* ======= RIGHT: FORM ======= */
.right {
  display:flex; align-items:center; justify-content:center;
  background:
    radial-gradient(700px 500px at 80% 20%, #111113 0%, transparent 60%),
    radial-gradient(900px 600px at 100% 100%, #0e0e10 0%, transparent 65%);
  position: relative;
}
.panel {
  width:min(720px, 92%);
  backdrop-filter: blur(2px);
  padding-inline: clamp(12px, 2.4vw, 28px);
}

/* HEADER LINE “CORE GAMES | SIGN UP” */
.kicker {
  display:flex; align-items:center; gap:.6rem;
  letter-spacing:.08em; font-size:.75rem; color:#9a9aa1;
  margin-block: 4svh 2svh;
  opacity:0; transform: translateY(8px);
  animation: reveal .9s var(--ease) .1s both;
}
.kicker i { color: var(--accent-2); font-style:normal; }
.kicker strong { color:#e6e6e7; }
@keyframes reveal { to { opacity:1; transform:none; } }

/* custom dropdown (full-width top row) */
.select {
  position:relative; margin: 0 0 18px 0;
}
.select button {
  width:100%; height:56px;
  display:flex; align-items:center; justify-content:space-between;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border:1px solid var(--line);
  padding: 0 18px; color:#cfcfd6; font-size:.95rem; letter-spacing:.02em;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.select button:hover { border-color:#2b2b31; }
.select button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.select button .hint { opacity:.7; font-weight:500; }
.select button .value { opacity:.95; }
.select button::after{
  content:"›"; font-size:1.2rem; transform: rotate(90deg);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
  opacity:.85;
}
.select.open button::after{ transform: rotate(-90deg); opacity:1; }
.menu {
  position:absolute; inset-inline:0; top:calc(100% + 6px);
  background: #0f0f11; border:1px solid var(--line);
  display:grid; gap:0; overflow:hidden; max-height:0;
  transition: max-height .35s var(--ease);
  z-index:10;
}
.select.open .menu{ max-height: 240px; }
.menu button {
  all:unset; display:block; padding:14px 18px; cursor:pointer; color:#c9c9cf;
  border-bottom:1px solid #17171a;
}
.menu button:hover { background:#141417; color:#fff; }
.menu button:last-child{ border-bottom:none; }

/* form grid */
.form {
  display:grid; gap: 16px;
}
.row-2 {
  display:grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.field input {
  width:100%; height:56px;
  background: linear-gradient(180deg, #0e0e10, #121215);
  border:1px solid var(--line); border-radius:0;
  color:#ececf2; padding: 0 16px; font-size: .95rem;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.field input::placeholder { color:#7f7f86; }
.field input:focus { outline:none; border-color:#2c2c32; box-shadow: 0 0 0 1px var(--accent-2), 0 8px 24px rgba(224,20,20,.08); }

/* validation states */
.field input.error { border-color: #3a1111; box-shadow: 0 0 0 1px var(--error) inset; }
.msg { font-size:.78rem; color:#a2a2a9; margin-top:4px; }
.msg.error { color: var(--error); }

/* big text area look replacement: we keep layout parity but for sign-up we use passwords */
.spacer { height: 8px; }

/* tos */
.tos {
  margin: 6px 2px 2px;
  font-size:.82rem;
}
.tos a { color: var(--accent-2); text-decoration:none; }
.tos a:hover{ text-decoration: underline; }

/* submit */
.actions {
  display:flex; justify-content:flex-start; margin-top: 18px;
}
button.primary {
  height:56px; padding: 0 26px; border:1px solid #2b2b31; letter-spacing:.2em;
  background: linear-gradient(180deg, #131316 0%, #0f0f11 100%);
  color:#f3f3f3; font-weight:700; cursor:pointer;
  transition: transform .08s ease, box-shadow .25s var(--ease), border-color .2s var(--ease), background .25s var(--ease);
  text-transform:uppercase;
}
button.primary:hover {
  border-color:#3a3a42; box-shadow: 0 12px 36px rgba(224,20,20,.12), inset 0 0 0 1px rgba(224,20,20,.25);
}
button.primary:active { transform: translateY(1px) scale(.996); }
button.primary.glitch:hover { animation: glitch 550ms steps(2,end) 1; }
@keyframes glitch {
  0% { text-shadow: 1px 0 0 rgba(224,20,20,.7), -1px 0 0 rgba(0,255,170,.5);}
  25% { text-shadow: -2px 0 0 rgba(224,20,20,.7), 2px 0 0 rgba(0,255,170,.5);}
  50% { text-shadow: 2px 0 0 rgba(224,20,20,.7), -2px 0 0 rgba(0,255,170,.5);}
  75% { text-shadow: -1px 0 0 rgba(224,20,20,.7), 1px 0 0 rgba(0,255,170,.5);}
  100% { text-shadow: none; }
}

/* Staggered enter */
.reveal { opacity:0; transform: translateX(12px); }
.reveal.show { opacity:1; transform:none; transition: opacity .55s var(--ease), transform .55s var(--ease); }

/* small screens */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .left { height: 38vh; }
  .kicker { margin-block: 2.4svh 1.2svh; }
  .row-2 { grid-template-columns: 1fr; }
  .actions { justify-content: stretch; }
  button.primary { width:100%; }
}