/* ============================================
   Junior Lab — Turkuaz / Mor / Pembe / Mavi
   Canlı Gradient Geçişli "Speed Up" Tema
   Font: Quicksand
   ============================================ */

body {
  font-family: 'Quicksand', ui-sans-serif, system-ui, sans-serif;
}

/* -------- HAREKETLİ Gradient Arka Panel -------- */
.page-gradient {
  background: linear-gradient(
    -45deg,
    #06b6d4,
    #2dd4bf,
    #3b82f6,
    #7c3aed,
    #a855f7,
    #14b8c4
  );
  background-size: 400% 400%;
  animation: gradient-flow 14s ease infinite;
  position: relative;
}

@keyframes gradient-flow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Renkli ışık blob'ları (lav lambası efekti) */
.page-gradient::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 420px at 12% 18%, rgba(45, 212, 191, 0.45), transparent 70%),
    radial-gradient(circle 380px at 88% 12%, rgba(94, 234, 212, 0.42), transparent 70%),
    radial-gradient(circle 460px at 78% 85%, rgba(129, 140, 248, 0.42), transparent 70%),
    radial-gradient(circle 340px at 18% 88%, rgba(45, 212, 191, 0.4), transparent 70%);
  animation: blobs-drift 18s ease-in-out infinite alternate;
}

@keyframes blobs-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(2%, -2%) scale(1.06); }
  100% { transform: translate(-2%, 2%) scale(1.02); }
}

/* Süzülen ışık huzmesi (aurora parlaması) */
.page-gradient::after {
  content: '';
  position: fixed;
  inset: -20%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.08) 42%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.08) 58%,
    transparent 70%
  );
  animation: aurora-sweep 8s ease-in-out infinite;
}

@keyframes aurora-sweep {
  0%, 100% { transform: translateX(-18%) skewX(-6deg); opacity: 0.7; }
  50%      { transform: translateX(18%) skewX(-6deg); opacity: 1; }
}

.page-gradient > * {
  position: relative;
  z-index: 1;
}

/* -------- Gradient Başlık (Hero) -------- */
.hero-title {
  line-height: 1.35;
  padding-bottom: 0.18em;
  margin-bottom: 0.3rem;
  overflow: visible;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #a5f3fc 20%,
    #ffffff 40%,
    #fbcfe8 60%,
    #ffffff 80%,
    #c7d2fe 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: title-shimmer 5s linear infinite;
  filter: drop-shadow(0 3px 10px rgba(76, 29, 149, 0.4));
}

@keyframes title-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 250% center; }
}

/* -------- Cam Kart — BOMBE (dışbükey cam) + IŞILDAYAN ÇERÇEVE -------- */
.glass-card {
  position: relative;
  /* Bombe efekti: üstte kubbe ışığı, ortada şişkin parlaklık, kenarlarda koyulaşma */
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(ellipse 90% 70% at 50% 45%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(250, 248, 255, 0.88) 50%,
      rgba(242, 238, 255, 0.93) 100%
    );
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 25px 60px -15px rgba(76, 29, 149, 0.45),
    0 10px 25px -8px rgba(20, 184, 196, 0.3),
    /* bombe iç ışıkları: üst kubbe beyazı + alt kenar gölgesi + yan kıvılcımlar */
    inset 0 3px 8px rgba(255, 255, 255, 1),
    inset 0 18px 40px -18px rgba(255, 255, 255, 0.95),
    inset 0 -14px 30px -18px rgba(124, 58, 237, 0.22),
    inset 6px 0 18px -12px rgba(45, 212, 191, 0.25),
    inset -6px 0 18px -12px rgba(236, 114, 182, 0.25);
  overflow: hidden;
}

/* Dönen gradient kenar ışığı — kartı çepeçevre sarar */
.glass-card-wrap {
  position: relative;
  border-radius: 1.6rem;
  padding: 2.5px;
  background: linear-gradient(
    var(--border-angle, 0deg),
    #2dd4bf,
    #38bdf8,
    #a78bfa,
    #f472b6,
    #2dd4bf
  );
  background-size: 300% 300%;
  animation: border-glow 6s linear infinite, halo-pulse 4s ease-in-out infinite;
  box-shadow:
    0 0 30px rgba(45, 212, 191, 0.4),
    0 0 60px rgba(168, 85, 247, 0.3);
}

@keyframes border-glow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Sürekli nefes alan renkli hale — turkuaz → mor → pembe döngüsü */
@keyframes halo-pulse {
  0% {
    box-shadow:
      0 0 25px rgba(45, 212, 191, 0.55),
      0 0 55px rgba(56, 189, 248, 0.35),
      0 0 90px rgba(45, 212, 191, 0.2);
  }
  33% {
    box-shadow:
      0 0 30px rgba(168, 85, 247, 0.6),
      0 0 65px rgba(129, 140, 248, 0.4),
      0 0 100px rgba(168, 85, 247, 0.22);
  }
  66% {
    box-shadow:
      0 0 30px rgba(236, 72, 153, 0.55),
      0 0 65px rgba(244, 114, 182, 0.38),
      0 0 100px rgba(236, 72, 153, 0.2);
  }
  100% {
    box-shadow:
      0 0 25px rgba(45, 212, 191, 0.55),
      0 0 55px rgba(56, 189, 248, 0.35),
      0 0 90px rgba(45, 212, 191, 0.2);
  }
}

/* Kart üzerinde kayan cam parlaması */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 55%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 45%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0.55) 55%,
    transparent 100%
  );
  opacity: 0.45;
  transform: skewX(-18deg);
  animation: card-shine 7s ease-in-out infinite;
}

@keyframes card-shine {
  0%   { left: -70%; opacity: 0; }
  12%  { opacity: 0.5; }
  35%  { left: 120%; opacity: 0; }
  100% { left: 120%; opacity: 0; }
}

/* Kart üst kenar ışık çizgisi */
.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(45, 212, 191, 0.9) 25%,
    rgba(255, 255, 255, 1) 50%,
    rgba(236, 107, 184, 0.9) 75%,
    transparent
  );
  border-radius: 2px;
}

/* -------- Logo Rozeti — nabız gibi parlayan -------- */
.logo-badge {
  position: relative;
  background:
    radial-gradient(ellipse 100% 55% at 50% 0%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 65%),
    linear-gradient(135deg, #2dd4bf 0%, #38bdf8 40%, #a78bfa 75%, #f472b6 100%);
  background-size: 100% 100%, 200% 200%;
  animation: badge-gradient 5s ease infinite, badge-glow 3.5s ease-in-out infinite;
  box-shadow:
    0 12px 34px -6px rgba(45, 212, 191, 0.55),
    0 6px 18px -4px rgba(167, 139, 250, 0.5),
    inset 0 3px 5px rgba(255, 255, 255, 0.65),
    inset 0 -4px 8px rgba(76, 29, 149, 0.35);
  overflow: hidden;
}

@keyframes badge-gradient {
  0%, 100% { background-position: 0% 0%, 0% 50%; }
  50%      { background-position: 0% 0%, 100% 50%; }
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 12px 34px -6px rgba(45, 212, 191, 0.55), 0 6px 18px -4px rgba(167, 139, 250, 0.5), inset 0 2px 3px rgba(255, 255, 255, 0.5); }
  50%      { box-shadow: 0 16px 44px -6px rgba(56, 189, 248, 0.75), 0 10px 28px -4px rgba(236, 107, 184, 0.65), inset 0 2px 3px rgba(255, 255, 255, 0.6); }
}

.logo-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 255, 255, 0.75) 52%,
    transparent 70%
  );
  transform: translateX(-110%);
  animation: badge-shine 3.5s ease-in-out infinite;
}

@keyframes badge-shine {
  0%, 55%   { transform: translateX(-110%); }
  85%, 100% { transform: translateX(110%); }
}

/* -------- Bölüm Başlıkları — gradient metin -------- */
.section-title {
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, rgba(45, 212, 191, 0.55), rgba(168, 85, 247, 0.45), rgba(236, 107, 184, 0.35), transparent) 1;
}

.section-title span.grad-text,
.section-title {
  /* başlık rengi Tailwind'den geliyor; gradient ikonlar aşağıda */
}

.section-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.8rem;
  color: #fff;
  font-size: 0.95rem;
  flex-shrink: 0;
  /* bombe: üst kubbe ışığı + alt iç gölge */
  box-shadow:
    0 8px 18px -4px rgba(76, 29, 149, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.65),
    inset 0 -3px 6px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: transform 0.25s ease;
  animation: icon-glow 4s ease-in-out infinite;
}

/* Bombe kubbe parlaması */
.section-icon::after {
  content: '';
  position: absolute;
  top: 6%;
  left: 10%;
  right: 10%;
  height: 48%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.05));
  border-radius: 50% 50% 45% 45%;
}

/* İkonlarda sürekli renk döngülü parıltı */
@keyframes icon-glow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.7)); }
  33%      { filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.75)); }
  66%      { filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.7)); }
}

section:hover .section-icon {
  transform: scale(1.12) rotate(-4deg);
}

/* -------- Form Elemanları -------- */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #3b3663;
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1.5px solid #e2e0f0;
  border-radius: 0.85rem;
  font-size: 0.95rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  color: #322f52;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.25s, background-color 0.2s, transform 0.15s;
  /* bombe input: üstte hafif kubbe ışığı, altta iç gölge */
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(250, 248, 255, 0.6) 40%, rgba(246, 243, 255, 0.9) 100%),
    linear-gradient(to bottom, #fdfcff, #faf8ff);
  box-shadow:
    inset 0 1.5px 3px rgba(255, 255, 255, 0.95),
    inset 0 -2px 5px rgba(106, 91, 216, 0.08),
    0 1px 2px rgba(76, 29, 149, 0.06);
}

.form-input::placeholder {
  color: #a9a5c4;
  font-weight: 500;
}

.form-input:hover {
  border-color: #c9c3ea;
}

/* Odaklanınca gradient halka */
.form-input:focus {
  border-color: transparent;
  background: #fff;
  box-shadow:
    0 0 0 2.5px rgba(45, 212, 191, 0.65),
    0 0 0 5px rgba(168, 85, 247, 0.25),
    0 4px 16px rgba(139, 92, 246, 0.18);
  transform: translateY(-1px);
}

.radio-label {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: #3b3663;
  cursor: pointer;
}

.radio-label input[type='radio'] {
  accent-color: #8b5cf6;
  width: 1.05rem;
  height: 1.05rem;
}

/* -------- Gönder Butonu — bombe + akan gradient + renk döngülü parlama -------- */
.submit-gradient {
  position: relative;
  background:
    radial-gradient(ellipse 100% 55% at 50% 0%, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(
      90deg,
      #06b6d4, #3b82f6, #8b5cf6, #ec4899, #8b5cf6, #3b82f6, #06b6d4
    );
  background-size: 100% 100%, 300% 100%;
  animation: btn-gradient-flow 6s linear infinite, btn-halo 4s ease-in-out infinite;
  box-shadow:
    0 14px 34px -8px rgba(139, 92, 246, 0.55),
    0 6px 18px -6px rgba(20, 184, 196, 0.45),
    inset 0 2px 3px rgba(255, 255, 255, 0.55),
    inset 0 -4px 8px rgba(76, 29, 149, 0.35);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

@keyframes btn-gradient-flow {
  0%   { background-position: 0% 0%, 0% 50%; }
  100% { background-position: 0% 0%, 300% 50%; }
}

/* Butonda nefes alan renkli dış parlama */
@keyframes btn-halo {
  0%, 100% {
    box-shadow:
      0 0 22px rgba(6, 182, 212, 0.6),
      0 14px 34px -8px rgba(139, 92, 246, 0.55),
      inset 0 2px 3px rgba(255, 255, 255, 0.55),
      inset 0 -4px 8px rgba(76, 29, 149, 0.35);
  }
  50% {
    box-shadow:
      0 0 34px rgba(236, 72, 153, 0.65),
      0 14px 38px -8px rgba(168, 85, 247, 0.6),
      inset 0 2px 3px rgba(255, 255, 255, 0.6),
      inset 0 -4px 8px rgba(76, 29, 149, 0.35);
  }
}

.submit-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 45%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.4) 55%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: btn-shine 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btn-shine {
  0%, 45%   { left: -80%; }
  75%, 100% { left: 130%; }
}

.submit-gradient:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 20px 45px -8px rgba(236, 72, 153, 0.6),
    0 10px 25px -6px rgba(59, 130, 246, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.submit-gradient:active:not(:disabled) {
  transform: translateY(0) scale(1);
}

#submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* -------- Veli Paneli Menü Butonları — bombe cam kartlar -------- */
.panel-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 2.2rem 1.6rem;
  border-radius: 1.6rem;
  text-decoration: none;
  /* bombe cam görünüm */
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.97) 0%, rgba(250, 248, 255, 0.88) 100%);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 20px 45px -12px rgba(76, 29, 149, 0.45),
    inset 0 3px 8px rgba(255, 255, 255, 1),
    inset 0 -10px 24px -14px rgba(124, 58, 237, 0.2);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  animation: halo-pulse 4s ease-in-out infinite;
  overflow: hidden;
}

.panel-btn:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 28px 60px -12px rgba(76, 29, 149, 0.55),
    0 0 40px rgba(168, 85, 247, 0.45),
    inset 0 3px 8px rgba(255, 255, 255, 1);
}

.panel-btn:active {
  transform: translateY(-2px) scale(1.01);
}

/* Panel butonu üzerinde kayan cam parlaması */
.panel-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: card-shine 6s ease-in-out infinite;
}

.panel-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 1.2rem;
  color: #fff;
  font-size: 1.6rem;
  box-shadow:
    0 10px 24px -6px rgba(76, 29, 149, 0.45),
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -4px 8px rgba(0, 0, 0, 0.2);
  animation: icon-glow 4s ease-in-out infinite;
  transition: transform 0.25s ease;
}

.panel-btn:hover .panel-btn-icon {
  transform: scale(1.15) rotate(-5deg);
}

.panel-btn-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3b3663;
}

.panel-btn-desc {
  font-size: 0.875rem;
  font-weight: 500;
  color: #8b86ad;
  line-height: 1.4;
}

/* -------- Müzik Butonu — sağ alt köşede parlayan cam düğme -------- */
.music-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 100% 55% at 50% 0%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 65%),
    linear-gradient(135deg, #2dd4bf 0%, #38bdf8 40%, #a78bfa 75%, #f472b6 100%);
  background-size: 100% 100%, 200% 200%;
  box-shadow:
    0 8px 24px -4px rgba(76, 29, 149, 0.5),
    0 0 20px rgba(45, 212, 191, 0.45),
    inset 0 2px 4px rgba(255, 255, 255, 0.55),
    inset 0 -3px 6px rgba(76, 29, 149, 0.3);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  animation: badge-gradient 5s ease infinite, halo-pulse 4s ease-in-out infinite;
}

.music-btn:hover {
  transform: scale(1.12);
}

.music-btn:active {
  transform: scale(0.96);
}

/* Çalarken dönen nota + güçlü parıltı */
.music-btn.playing i {
  animation: music-bounce 1.2s ease-in-out infinite;
}

@keyframes music-bounce {
  0%, 100% { transform: scale(1) rotate(-6deg); }
  50%      { transform: scale(1.18) rotate(6deg); }
}

/* Kapalıyken soluk görünüm */
.music-btn:not(.playing) {
  opacity: 0.75;
  animation: badge-gradient 5s ease infinite;
}

/* -------- Admin Tablo -------- */
.table-head {
  background: linear-gradient(90deg, #06b6d4 0%, #3b82f6 35%, #8b5cf6 70%, #ec4899 100%);
  background-size: 200% 100%;
  animation: btn-gradient-flow 8s linear infinite;
}

.table-head th {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* -------- Kaydırma Çubuğu -------- */
.glass-card::-webkit-scrollbar {
  height: 8px;
}
.glass-card::-webkit-scrollbar-track {
  background: rgba(139, 92, 246, 0.08);
  border-radius: 8px;
}
.glass-card::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #2dd4bf, #a78bfa, #f472b6);
  border-radius: 8px;
}

/* ============================================
   📱 MOBİL OPTİMİZASYONLARI
   ============================================ */
@media (max-width: 640px) {
  .page-gradient {
    background-size: 300% 300%;
    animation-duration: 18s;
  }

  .page-gradient::before {
    position: absolute;
    animation: none;
  }

  .page-gradient::after {
    display: none;
  }

  .glass-card {
    border-radius: 1.25rem !important;
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
  }

  .glass-card-wrap {
    border-radius: 1.35rem;
    padding: 2px;
  }

  .glass-card::before {
    opacity: 0.3;
  }

  .hero-title {
    animation-duration: 7s;
  }

  .form-input {
    font-size: 16px;
    padding: 0.8rem 1rem;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .radio-label {
    padding: 0.35rem 0;
    min-height: 44px;
  }

  .radio-label input[type='radio'] {
    width: 1.25rem;
    height: 1.25rem;
  }

  .section-icon {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 0.85rem;
  }

  #submit-btn {
    min-height: 56px;
  }
}

@media (max-width: 380px) {
  .glass-card {
    border-radius: 1rem !important;
  }
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
  .page-gradient,
  .page-gradient::before,
  .page-gradient::after,
  .glass-card::before,
  .glass-card-wrap,
  .hero-title,
  .logo-badge,
  .logo-badge::before,
  .submit-gradient,
  .submit-gradient::before,
  .section-icon,
  .table-head {
    animation: none;
  }
}
