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

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: 'Prata', serif;
  color: #e8e6ee;
  background: #0b0a0f;
  overflow: hidden;
}

/* ------- Arka Plan Videosu ------- */
#bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: -2;
}

/* Karartma kaplaması */
#video-kaplama {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: -1;
  transition: background 0.8s ease;
}

body.dark #video-kaplama {
  background: rgba(0, 0, 0, 0.78);
}

/* ------- Açılış Ekranı ------- */
#intro {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  z-index: 10;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  opacity: 0;
  visibility: hidden;
}

#intro.visible {
  opacity: 1;
  visibility: visible;
}

#intro.hidden {
  opacity: 0;
  visibility: hidden;
}

#katil-butonu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 0.95rem 1.75rem;
  border: none;
  border-radius: 999px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  color: #ffffff;
  background: #007aff;
  box-shadow: 0 10px 24px rgba(0, 122, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#katil-butonu:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 14px 28px rgba(0, 122, 255, 0.32);
  filter: brightness(1.04);
}

#katil-butonu:active {
  transform: scale(0.98);
}

#katil-butonu .harf {
  display: inline-block;
  line-height: 1;
  transition: transform 0.2s ease, filter 0.2s ease;
}

#katil-butonu:hover .harf {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

@keyframes introFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes yukari {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------- Form Ekranı ------- */
#form-screen {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding: 2rem;
  text-align: center;
}

#form-screen.visible { display: flex; }

.kart {
  background: rgba(11, 10, 15, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 160, 107, 0.35);
  border-radius: 1.25rem;
  padding: clamp(2rem, 6vw, 3.5rem);
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: kartIn 0.7s ease forwards;
}

@keyframes kartIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.kart h1 {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  color: #f0ede7;
}

.kart h1 .harf {
  display: inline-block;
}

.kart h1 .cizgi {
  display: block;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  margin-top: 8px;
}

.kart p {
  color: #c5c0d0;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.kart form { display: flex; flex-direction: column; gap: 1rem; }

.alan {
  text-align: left;
}

.alan label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #cfc9da;
  margin-bottom: 0.45rem;
  font-family: 'Segoe UI', sans-serif;
}

.alan input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-size: 1rem;
  color: #f0ede7;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.6rem;
  outline: none;
  transition: border-color 0.3s ease;
  font-family: 'Segoe UI', sans-serif;
}

.alan input:focus {
  border-color: #c9a06b;
}

.alan input::placeholder { color: #7a7488; }

button[type="submit"] {
  margin-top: 0.6rem;
  padding: 1rem;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  font-family: 'Prata', serif;
  color: #f0ede7;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(240, 237, 231, 0.5);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

button[type="submit"]:hover {
  color: #c9a06b;
  border-color: #c9a06b;
  transform: translateY(-2px);
}

/* ------- Başarı Mesajı ------- */
#success {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding: 2rem;
  text-align: center;
}

#success.visible { display: flex; }

#logo {
  width: 90px;
  height: auto;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

#success h2 {
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #f0ede7;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
  animation: fadeUp 0.8s ease forwards;
}

#success p {
  margin-top: 1rem;
  color: #c5c0d0;
  animation: fadeUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

#form-mesaj {
  margin-top: 10px;
  min-height: 20px;
  font-size: 14px;
}

#form-mesaj.hata {
  color: #ff6b6b;
}
