/* ============================================================
   ISTEK-GONDER.CSS - Radyo Duman
   ============================================================ */

/* 1. KAPSAYICI */
.wrapper {
  width: 100%;
  display: grid;
  place-content: start center;
  margin-top: 3rem;
}

/* 2. FORM */
.form {
  width: 100%;
  padding: 1.5rem;
  display: grid;
  place-items: center;
  gap: 0.8rem;
  border: 1px solid transparent;
  border-image: linear-gradient(transparent, #ffe0a6, transparent) 1;
  border-width: 0 2px 0 2px;
  background:
    radial-gradient(100% 61.73% at 100% 50%, rgba(255, 224, 166, 0.05) 0%, transparent 100%),
    radial-gradient(91.09% 56.23% at 0% 50%, rgba(255, 224, 166, 0.05) 0%, transparent 100%);
  position: relative;
}
.form::before,
.form::after {
  content: "";
  position: absolute;
  border: inherit;
  z-index: -1;
}
.form::before { inset: -1rem; opacity: 15%; }
.form::after  { inset: -2rem; opacity: 5%; }

/* 3. BAŞLIK */
.form .title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1rem;
  text-transform: uppercase;
  background: linear-gradient(rgb(170, 170, 170), rgb(78, 78, 78));
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

/* 4. INPUT KUTULARI */
.form .input-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: radial-gradient(47.3% 73.08% at 50% 94.23%, rgba(255, 255, 255, 0.1) 5%, rgba(0, 0, 0, 0) 100%);
  border: 1px solid transparent;
  border-image: radial-gradient(circle, rgba(255, 255, 255, 0.445) 0%, rgba(0, 0, 0, 0) 100%) 1;
  border-width: 0;
}
.form .input-container .input {
  background: none;
  border: none;
  padding: 0.6rem 0.8rem;
  color: #ffe0a6;
  width: 100%;
  font-size: 0.95rem;
  resize: none;
}
.form .input-container .input:focus { outline: none; color: #fff; }
.form .input-container:focus-within {
  background: radial-gradient(47.3% 73.08% at 50% 94.23%, rgba(255, 224, 166, 0.1) 5%, rgba(0, 0, 0, 0) 100%);
  border-image: radial-gradient(circle, #ffe0a6 0%, transparent 100%) 1;
}

/* 5. GÖNDER BUTONU */
.form .login-button {
  width: 100%;
  position: relative;
  transition: all 0.2s ease-in-out;
}
.form .login-button .input {
  cursor: pointer;
  padding: 0.9rem;
  width: 100%;
  background:
    radial-gradient(100% 45% at 100% 50%, rgba(255, 224, 166, 0.084) 0%, rgba(115, 115, 115, 0) 100%),
    radial-gradient(100% 45% at 0% 50%, rgba(255, 224, 166, 0.084) 0%, rgba(115, 115, 115, 0) 100%);
  border: 1px solid transparent;
  border-image: linear-gradient(transparent, #ffe0a6, transparent) 1;
  border-width: 0 1px 0 1px;
  text-align: center;
  color: #ffe0a6;
  font-weight: bold;
  font-size: 0.95rem;
}
.form .login-button:hover  { animation: flicker 0.5s infinite; width: 103%; }
.form .login-button:active { width: 97%; }
.form .login-button .input[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

/* 6. TEXTURE */
.form .texture {
  position: absolute;
  background-image: linear-gradient(0deg, #ffffff 1px, transparent 1px);
  background-size: 1px 5px;
  inset: 0;
  mix-blend-mode: soft-light;
  pointer-events: none;
  animation: movingLines 1s linear infinite;
}

/* 7. DAKTİLO */
.typewrite > .wrap {
  border-right: 0.08em solid #fff;
  font-weight: bold;
  color: #fff;
}
.fixed-text { color: #FFD700; font-weight: bold; }

/* ============================================================
   8. POPUP (başarılı / hata) - Radyo Duman teması
   ============================================================ */
.dm-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: dmFade 0.25s ease both;
}
.dm-overlay.dm-closing { animation: dmFadeOut 0.25s ease both; }
.dm-overlay.dm-closing .dm-card { animation: dmPopOut 0.25s ease both; }

.dm-card {
  --dm-accent: #ffd700;
  --dm-accent-soft: #ffe0a6;
  position: relative;
  width: 100%;
  max-width: 28rem;
  padding: 2.2rem 1.6rem 1.8rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(100% 61% at 100% 50%, rgba(255, 224, 166, 0.10) 0%, transparent 100%),
    radial-gradient(91% 56% at 0% 50%, rgba(255, 224, 166, 0.10) 0%, transparent 100%),
    #050505;
  border: 1px solid transparent;
  border-image: linear-gradient(transparent, var(--dm-accent-soft), transparent) 1;
  border-width: 0 2px;
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.18), 0 20px 50px rgba(0, 0, 0, 0.7);
  animation: dmPop 0.45s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}
.dm-error .dm-card {
  --dm-accent: #ef4444;
  --dm-accent-soft: #f87171;
  box-shadow: 0 0 60px rgba(239, 68, 68, 0.2), 0 20px 50px rgba(0, 0, 0, 0.7);
}

/* texture çizgileri (formla aynı dil) */
.dm-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(0deg, #fff 1px, transparent 1px);
  background-size: 1px 5px;
  mix-blend-mode: soft-light;
  opacity: 0.5;
  pointer-events: none;
  animation: movingLines 1s linear infinite;
}

.dm-close {
  position: absolute;
  top: 0.5rem;
  right: 0.8rem;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
}
.dm-close:hover { color: var(--dm-accent); }

/* plak + ikon */
.dm-vinyl {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 0.4rem;
}
.dm-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--dm-accent) 0 15%, transparent 16%),
    repeating-radial-gradient(circle, #1c1c1c 0 2px, #0a0a0a 3px 5px);
  border: 2px solid var(--dm-accent-soft);
  box-shadow: 0 0 28px color-mix(in srgb, var(--dm-accent) 50%, transparent);
  animation: dmSpin 3s linear infinite;
}
.dm-disc-still { animation: none; }
.dm-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  fill: none;
  stroke: #000;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dm-icon path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: dmDraw 0.55s 0.3s ease forwards;
}

/* ekolayzer */
.dm-eq {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  height: 28px;
  margin: 0.9rem 0 0.4rem;
}
.dm-eq span {
  width: 5px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(#ffd700, #b8860b);
  animation: dmEq 0.9s ease-in-out infinite;
}
.dm-eq span:nth-child(2) { animation-delay: 0.15s; }
.dm-eq span:nth-child(3) { animation-delay: 0.3s; }
.dm-eq span:nth-child(4) { animation-delay: 0.45s; }
.dm-eq span:nth-child(5) { animation-delay: 0.6s; }

/* yazılar */
.dm-title {
  position: relative;
  margin: 0.8rem 0 0.9rem;
  color: var(--dm-accent);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  text-shadow: 0 0 14px color-mix(in srgb, var(--dm-accent) 50%, transparent);
}
.dm-body { position: relative; color: #f3f3f3; font-size: 0.98rem; line-height: 1.55; }
.dm-body p { margin: 0 0 0.35rem; }
.dm-body b { color: var(--dm-accent-soft); }
.dm-song {
  color: var(--dm-accent);
  font-weight: 700;
  font-size: 1.15rem;
  word-break: break-word;
}
.dm-sub { color: #9ca3af; font-size: 0.85rem; font-style: italic; margin-top: 0.6rem !important; }

/* buton (formdaki gönder butonuyla aynı dil) */
.dm-btn {
  position: relative;
  margin-top: 1.2rem;
  padding: 0.8rem 2.4rem;
  cursor: pointer;
  color: var(--dm-accent-soft);
  font-weight: bold;
  font-size: 0.95rem;
  background:
    radial-gradient(100% 45% at 100% 50%, rgba(255, 224, 166, 0.15) 0%, transparent 100%),
    radial-gradient(100% 45% at 0% 50%, rgba(255, 224, 166, 0.15) 0%, transparent 100%);
  border: 1px solid transparent;
  border-image: linear-gradient(transparent, var(--dm-accent-soft), transparent) 1;
  border-width: 0 1px;
  transition: transform 0.2s ease;
}
.dm-btn:hover { animation: flicker 0.5s infinite; transform: scale(1.05); }
.dm-btn:focus-visible { outline: 1px dashed var(--dm-accent-soft); outline-offset: 4px; }

/* otomatik kapanma çubuğu */
.dm-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.06); }
.dm-progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  background: linear-gradient(90deg, #b8860b, #ffd700);
  animation: dmBar linear forwards;
}

/* yükselen notalar */
.dm-note {
  position: absolute;
  bottom: -10px;
  left: calc(8% + var(--i) * 15%);
  color: var(--dm-accent);
  font-size: 1.3rem;
  opacity: 0;
  pointer-events: none;
  animation: dmNote 3.2s calc(var(--i) * 0.35s) ease-in infinite;
}

/* animasyonlar */
@keyframes flicker {
  0%   { filter: brightness(100%); }
  10%  { filter: brightness(80%); }
  20%  { filter: brightness(120%); }
  30%  { filter: brightness(90%); }
  40%  { filter: brightness(110%); }
  50%  { filter: brightness(100%); }
  60%  { filter: brightness(85%); }
  70%  { filter: brightness(95%); }
  80%  { filter: brightness(105%); }
  90%  { filter: brightness(115%); }
  100% { filter: brightness(100%); }
}
@keyframes movingLines { 0% { background-position: 0 0; } 100% { background-position: 0 5px; } }
@keyframes dmFade    { from { opacity: 0; } to { opacity: 1; } }
@keyframes dmFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes dmPop     { from { opacity: 0; transform: scale(0.8) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes dmPopOut  { to { opacity: 0; transform: scale(0.9); } }
@keyframes dmSpin    { to { transform: rotate(360deg); } }
@keyframes dmDraw    { to { stroke-dashoffset: 0; } }
@keyframes dmEq      { 0%, 100% { height: 6px; } 50% { height: 28px; } }
@keyframes dmBar     { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes dmNote {
  0%   { opacity: 0; transform: translateY(0) rotate(-10deg); }
  15%  { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-260px) rotate(15deg); }
}

@media (max-width: 480px) {
  .form .title { letter-spacing: 0.5rem; font-size: 1.4rem; }
  .dm-title { letter-spacing: 0.1rem; font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .dm-disc, .dm-eq span, .dm-note, .dm-card::before { animation: none !important; }
}