/* Kidlio Ana Sayfa Stilleri - Modern Tasarım */

/* ==========================================
   COMMUNITY BAR - Topluluk Hissi
   ========================================== */

.community-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 12px auto;
  padding: 8px 20px;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.community-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  flex: 1;
}

.community-stat:first-child {
  justify-content: flex-end;
  padding-right: 16px;
}

.community-stat:last-child {
  justify-content: flex-start;
  padding-left: 16px;
}

.community-text {
  font-size: 0.75rem;
  color: #4b5563;
  font-weight: 500;
  white-space: nowrap;
}

.community-text strong {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  color: #4338ca;
}

.community-text strong.value-pulse {
  animation: value-pulse-anim 0.6s ease;
}

@keyframes value-pulse-anim {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); color: #fbbf24; }
  100% { transform: scale(1); }
}

.community-separator {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 14px;
  background: rgba(107, 120, 240, 0.3);
}

.online-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
  animation: online-glow 2s ease-in-out infinite;
  flex-shrink: 0;
}

.online-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(34, 197, 94, 0.6);
  transform: translate(-50%, -50%) scale(1);
  animation: online-ripple 2s ease-out infinite;
}

@keyframes online-glow {
  0%, 100% { box-shadow: 0 0 4px rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 10px rgba(34, 197, 94, 0.7); }
}

@keyframes online-ripple {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.community-emoji {
  font-size: 0.8rem;
  line-height: 1;
}

/* Dark Mode Community Bar */
body.dark .community-bar {
  background: rgba(15, 10, 45, 0.5);
  border-color: rgba(148, 112, 245, 0.2);
}

body.dark .community-text {
  color: rgba(255, 255, 255, 0.8);
}

body.dark .community-text strong {
  color: #c4b5fd;
}

body.dark .community-separator {
  background: rgba(148, 112, 245, 0.4);
}

/* Responsive Community Bar */
@media (max-width: 480px) {
  .community-bar {
    padding: 6px 14px;
  }

  .community-text {
    font-size: 0.65rem;
  }

  .community-stat {
    gap: 4px;
    padding: 0 8px;
  }

  .online-dot {
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 360px) {
  .community-bar {
    flex-direction: column;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 16px;
  }

  .community-separator {
    display: none;
  }
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  position: relative;
  background: transparent;
  padding-top: 20px;
  padding-bottom: 40px;
  min-height: 0;
}

/* Scrollbar Style.css'den devralınır */

/* Content Area - Confetti/Stars Dekorasyonu */
.content-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Mini Güneşler - Gündüz parıltısı */
.content-blob-1,
.content-blob-2,
.content-blob-3 {
  position: absolute;
  border-radius: 50%;
  animation: mini-sun-glow 5s ease-in-out infinite;
}

.content-blob-1 {
  width: 18px;
  height: 18px;
  background: radial-gradient(
    circle,
    rgba(255, 240, 180, 0.6) 0%,
    rgba(255, 220, 130, 0.3) 50%,
    transparent 80%
  );
  box-shadow: 0 0 12px rgba(255, 220, 150, 0.4);
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.content-blob-2 {
  width: 14px;
  height: 14px;
  background: radial-gradient(
    circle,
    rgba(255, 245, 190, 0.5) 0%,
    rgba(255, 225, 140, 0.25) 50%,
    transparent 80%
  );
  box-shadow: 0 0 10px rgba(255, 225, 160, 0.35);
  top: 25%;
  right: 12%;
  animation-delay: 1.5s;
}

.content-blob-3 {
  width: 12px;
  height: 12px;
  background: radial-gradient(
    circle,
    rgba(255, 240, 170, 0.45) 0%,
    rgba(255, 215, 120, 0.2) 50%,
    transparent 80%
  );
  box-shadow: 0 0 8px rgba(255, 230, 170, 0.3);
  bottom: 22%;
  left: 8%;
  animation-delay: 3s;
}

/* Mini Güneş Animasyonu */
@keyframes mini-sun-glow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.9;
  }
}

/* Confetti */
.content-blob-4,
.content-blob-5,
.content-blob-6 {
  position: absolute;
  border-radius: 3px;
  animation: confetti-float 8s ease-in-out infinite;
}

.content-blob-4 {
  width: 14px;
  height: 14px;
  background: rgba(251, 191, 36, 0.55);
  top: 18%;
  right: 14%;
  transform: rotate(45deg);
  animation-delay: 0s;
}

.content-blob-5 {
  width: 10px;
  height: 18px;
  background: rgba(52, 211, 153, 0.5);
  bottom: 18%;
  right: 10%;
  transform: rotate(-15deg);
  animation-delay: 2s;
}

.content-blob-6 {
  width: 16px;
  height: 10px;
  background: rgba(107, 120, 240, 0.45);
  bottom: 30%;
  left: 12%;
  transform: rotate(30deg);
  animation-delay: 4s;
}

/* Confetti Float Animation */
@keyframes confetti-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.5;
  }
  25% {
    transform: translateY(-15px) rotate(45deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-5px) rotate(90deg);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-20px) rotate(135deg);
    opacity: 0.6;
  }
}

/* Dark Mode - Mini güneşleri gizle, confetti kalsın */
body.dark .content-blob-1,
body.dark .content-blob-2,
body.dark .content-blob-3 {
  display: none;
}
body.dark .content-blob-4 {
  background: rgba(251, 191, 36, 0.55);
}
body.dark .content-blob-5 {
  background: rgba(52, 211, 153, 0.5);
}
body.dark .content-blob-6 {
  background: rgba(129, 140, 248, 0.5);
}

.header {
  flex-direction: column;
  text-align: center;
  background: transparent;
  padding: 48px 20px 20px;
  position: relative;
}

/* Body Dekorasyon - Tüm sayfa için */
.body-decoration {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Bulut Şekilleri - Gündüz teması (daha belirgin) */
.body-decoration::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 60px;
  border-radius: 60px 60px 50px 50px;
  background: radial-gradient(
    ellipse at 30% 40%,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 80%
  );
  top: 3%;
  left: 2%;
  animation: float-shape-1 15s ease-in-out infinite;
  filter: blur(1px);
}

.body-decoration::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 50px;
  border-radius: 50px 50px 40px 40px;
  background: radial-gradient(
    ellipse at 40% 35%,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 80%
  );
  top: 8%;
  right: 2%;
  animation: float-shape-2 18s ease-in-out infinite;
  filter: blur(1px);
}

/* Blob Şekilleri - Yumuşak bulut/balon hissi (daha belirgin) */
.body-decoration .blob-1 {
  position: absolute;
  width: 80px;
  height: 50px;
  border-radius: 50px;
  background: radial-gradient(
    ellipse at 35% 35%,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.15) 60%,
    transparent 90%
  );
  top: 28%;
  left: 18%;
  animation: float-shape-3 12s ease-in-out infinite;
}

.body-decoration .blob-2 {
  position: absolute;
  width: 70px;
  height: 45px;
  border-radius: 45px;
  background: radial-gradient(
    ellipse at 40% 30%,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.12) 60%,
    transparent 90%
  );
  top: 55%;
  right: 20%;
  animation: float-shape-4 14s ease-in-out infinite;
}

.body-decoration .blob-3 {
  position: absolute;
  width: 60px;
  height: 40px;
  border-radius: 40px;
  background: radial-gradient(
    ellipse at 30% 40%,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.1) 60%,
    transparent 90%
  );
  bottom: 15%;
  left: 12%;
  animation: float-shape-1 10s ease-in-out infinite reverse;
}

.body-decoration .blob-4 {
  position: absolute;
  width: 90px;
  height: 55px;
  border-radius: 55px;
  background: radial-gradient(
    ellipse at 35% 35%,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.12) 60%,
    transparent 90%
  );
  bottom: 20%;
  right: 8%;
  animation: float-shape-2 13s ease-in-out infinite reverse;
}

/* Küçük Parıltı Noktaları - Güneş ışığı hissi (daha belirgin) */
.body-decoration .dot-1 {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 240, 200, 0.6) 50%,
    transparent 80%
  );
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  top: 38%;
  left: 25%;
  animation: sparkle 4s ease-in-out infinite;
}

.body-decoration .dot-2 {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 245, 210, 0.55) 50%,
    transparent 80%
  );
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
  top: 65%;
  right: 28%;
  animation: sparkle 5s ease-in-out infinite 1s;
}

.body-decoration .dot-3 {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 235, 180, 0.6) 50%,
    transparent 80%
  );
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  bottom: 35%;
  left: 10%;
  animation: sparkle 6s ease-in-out infinite 2s;
}

.body-decoration .dot-4 {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 250, 220, 0.5) 50%,
    transparent 80%
  );
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.45);
  bottom: 12%;
  right: 12%;
  animation: sparkle 4s ease-in-out infinite 0.5s;
}

/* Plus işaretleri - Güneş ışını hissi */
.body-decoration .plus-1 {
  position: absolute;
  width: 16px;
  height: 16px;
  top: 38%;
  left: 15%;
  opacity: 0.5;
}

.body-decoration .plus-1::before,
.body-decoration .plus-1::after {
  content: "";
  position: absolute;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 240, 180, 0.3) 100%
  );
  border-radius: 2px;
}

.body-decoration .plus-1::before {
  width: 3px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.body-decoration .plus-1::after {
  width: 100%;
  height: 3px;
  top: 50%;
  transform: translateY(-50%);
}

.body-decoration .plus-2 {
  position: absolute;
  width: 12px;
  height: 12px;
  top: 58%;
  right: 12%;
  opacity: 0.4;
}

.body-decoration .plus-2::before,
.body-decoration .plus-2::after {
  content: "";
  position: absolute;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 245, 190, 0.25) 100%
  );
  border-radius: 2px;
}

.body-decoration .plus-2::before {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.body-decoration .plus-2::after {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

/* Mini Güneş Parıltıları - Dağınık (daha belirgin) */
.body-decoration .star-1 {
  position: absolute;
  width: 26px;
  height: 26px;
  top: 18%;
  right: 32%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 245, 200, 0.75) 0%,
    rgba(255, 220, 150, 0.4) 50%,
    transparent 80%
  );
  box-shadow: 0 0 20px rgba(255, 230, 170, 0.5);
  animation: sun-glow 5s ease-in-out infinite;
}

.body-decoration .star-2 {
  position: absolute;
  width: 20px;
  height: 20px;
  bottom: 28%;
  left: 14%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 240, 190, 0.7) 0%,
    rgba(255, 215, 140, 0.35) 50%,
    transparent 80%
  );
  box-shadow: 0 0 16px rgba(255, 225, 160, 0.45);
  animation: sun-glow 6s ease-in-out infinite 2s;
}

/* Güneş parlaklık animasyonu */
@keyframes sun-glow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

/* Sparkle Animasyonu - Gündüz parıltısı (daha belirgin) */
@keyframes sparkle {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* Animasyonlar */
@keyframes float-shape-1 {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-15px) rotate(5deg) scale(1.05);
  }
}

@keyframes float-shape-2 {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  33% {
    transform: translateY(-12px) rotate(-5deg) scale(1.03);
  }
  66% {
    transform: translateY(-8px) rotate(3deg) scale(1.02);
  }
}

@keyframes float-shape-3 {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.08);
  }
}

@keyframes float-shape-4 {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(5deg);
  }
  75% {
    transform: translateY(-6px) rotate(-5deg);
  }
}

@keyframes float-shape-5 {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-6px) rotate(45deg);
  }
  66% {
    transform: translateY(-4px) rotate(90deg);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

/* ==========================================
   DARK MODE - Gece Gökyüzü Dekorasyonları
   ========================================== */

/* Dark mode - Bulutları gizle */
body.dark .body-decoration::before,
body.dark .body-decoration::after {
  display: none;
}

/* Hilal Ay Emoji - Sadece dark mode'da görünür */
.body-decoration .moon-emoji {
  display: none;
}

body.dark .body-decoration .moon-emoji {
  display: block;
  position: absolute;
  top: 45%;
  left: 5%;
  font-size: 2.2rem;
  opacity: 0.6;
  filter: drop-shadow(0 0 8px rgba(255, 250, 200, 0.4));
  animation: moon-float 6s ease-in-out infinite;
}

@keyframes moon-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Yıldız Emojileri - Sadece dark mode'da görünür */
.body-decoration .star-emoji {
  display: none;
}

body.dark .body-decoration .star-emoji {
  display: block;
  position: absolute;
  opacity: 0.45;
  filter: drop-shadow(0 0 3px rgba(255, 255, 200, 0.5))
    drop-shadow(0 0 6px rgba(255, 250, 150, 0.3));
  animation: star-emoji-twinkle 4s ease-in-out infinite;
}

body.dark .body-decoration .star-emoji-1 {
  top: 8%;
  right: 15%;
  font-size: 0.9rem;
  animation-delay: 0s;
}

body.dark .body-decoration .star-emoji-2 {
  top: 22%;
  left: 42%;
  font-size: 0.7rem;
  animation-delay: 1.2s;
}

body.dark .body-decoration .star-emoji-3 {
  top: 35%;
  right: 8%;
  font-size: 0.8rem;
  animation-delay: 2.5s;
}

body.dark .body-decoration .star-emoji-4 {
  top: 52%;
  left: 12%;
  font-size: 0.65rem;
  animation-delay: 0.8s;
}

body.dark .body-decoration .star-emoji-5 {
  bottom: 38%;
  right: 35%;
  font-size: 0.75rem;
  animation-delay: 1.8s;
}

body.dark .body-decoration .star-emoji-6 {
  bottom: 25%;
  left: 8%;
  font-size: 0.85rem;
  animation-delay: 3s;
}

body.dark .body-decoration .star-emoji-7 {
  bottom: 15%;
  right: 22%;
  font-size: 0.7rem;
  animation-delay: 0.5s;
}

body.dark .body-decoration .star-emoji-8 {
  top: 68%;
  left: 38%;
  font-size: 0.6rem;
  animation-delay: 2s;
}

@keyframes star-emoji-twinkle {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(255, 255, 200, 0.4))
      drop-shadow(0 0 4px rgba(255, 250, 150, 0.2));
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
    filter: drop-shadow(0 0 4px rgba(255, 255, 200, 0.7))
      drop-shadow(0 0 8px rgba(255, 250, 150, 0.4));
  }
}

/* Dark mode - Blob'ları gizle (emoji yıldızlar var) */
body.dark .body-decoration .blob-1,
body.dark .body-decoration .blob-2,
body.dark .body-decoration .blob-3,
body.dark .body-decoration .blob-4 {
  display: none;
}

/* Dark mode - Dot'ları gizle (emoji yıldızlar var) */
body.dark .body-decoration .dot-1,
body.dark .body-decoration .dot-2,
body.dark .body-decoration .dot-3,
body.dark .body-decoration .dot-4 {
  display: none;
}

/* Dark mode - Plus işaretlerini yıldız parıltısına dönüştür */
body.dark .body-decoration .plus-1,
body.dark .body-decoration .plus-2 {
  opacity: 0;
}

/* Dark mode - Star elementlerini gizle (emoji yıldızlar var) */
body.dark .body-decoration .star-1,
body.dark .body-decoration .star-2 {
  display: none;
}

/* Ay parlaklık animasyonu */
@keyframes moon-glow {
  0%,
  100% {
    box-shadow:
      0 0 20px rgba(255, 250, 220, 0.5),
      0 0 40px rgba(255, 245, 200, 0.3),
      0 0 60px rgba(255, 240, 180, 0.15);
  }
  50% {
    box-shadow:
      0 0 25px rgba(255, 250, 220, 0.6),
      0 0 50px rgba(255, 245, 200, 0.4),
      0 0 80px rgba(255, 240, 180, 0.2);
  }
}

/* Yıldız parıldama animasyonu - Dark mode */
@keyframes star-twinkle-dark {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.header-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.header-top-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.header-top-row .logo {
  text-align: center;
}

/* header-top-row buton ve actions pozisyonlaması Style.css'e taşındı */

.header-actions .theme-toggle {
  position: relative;
  top: auto;
  transform: none;
}

/* Header Login Button */
.header-login-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  text-decoration: none;
}

.header-login-btn:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.header-login-btn .login-icon {
  font-size: 1rem;
}

/* Header User Menu */
.header-user-menu {
  position: relative;
}

.header-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  /* Soft gradient - pastel purple tones */
  background: linear-gradient(135deg, #c4b5fd 0%, #a88ef8 50%, #9470f5 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  /* Subtle glow - same family as other icons */
  box-shadow:
    0 2px 8px rgba(148, 112, 245, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.06);
}

.header-avatar-btn:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.7);
  /* Enhanced glow on hover - same family */
  box-shadow:
    0 4px 16px rgba(148, 112, 245, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

.header-avatar-btn.open {
  border-color: rgba(255, 255, 255, 0.8);
}

.header-avatar-letter {
  font-size: 0.9rem;
  /* Softer font weight for rounder appearance */
  font-weight: 600;
  /* Off-white instead of pure white */
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  /* Slightly more letter spacing for elegance */
  letter-spacing: 0.02em;
}

.header-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow: hidden;
}

.header-menu-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Background blur overlay when menu is open */
.header-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 999;
  pointer-events: none;
}

.header-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.header-menu-header {
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(107, 120, 240, 0.1) 0%, rgba(148, 112, 245, 0.1) 100%);
}

.header-menu-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: #5b6ae8;
}

.header-menu-divider {
  height: 1px;
  background: rgba(107, 120, 240, 0.1);
  margin: 0;
}

/* Wider spacer divider before logout action */
.header-menu-divider-spacer {
  margin: 6px 0;
}

.header-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: #374151;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.header-menu-item:hover {
  background: rgba(107, 120, 240, 0.08);
  color: #5b6ae8;
}

.header-menu-icon {
  font-size: 0.9rem;
}

/* Icon color tints - subtle toning */
.header-menu-icon.icon-profile {
  opacity: 0.85;
}

.header-menu-icon.icon-children {
  opacity: 0.9;
  filter: sepia(0.15);
}

.header-menu-icon.icon-settings {
  opacity: 0.6;
}

.header-menu-icon.icon-logout {
  filter: sepia(0.5) saturate(1.5);
}

.header-menu-logout {
  color: #dc2626;
}

.header-menu-logout:hover {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
}

/* Dark mode - Header User Menu */
body.dark .header-avatar-btn {
  border-color: rgba(148, 112, 245, 0.8);
  /* Dark mode - richer, deeper gradient */
  background: linear-gradient(135deg, #a88ef8 0%, #9470f5 40%, #7b62ed 100%);
  /* Enhanced glow in dark mode */
  box-shadow:
    0 4px 16px rgba(148, 112, 245, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.2);
}

body.dark .header-avatar-btn:hover {
  border-color: rgba(167, 139, 250, 0.9);
  /* Enhanced glow on hover */
  box-shadow:
    0 6px 24px rgba(148, 112, 245, 0.6),
    0 3px 10px rgba(0, 0, 0, 0.25);
}

body.dark .header-menu-dropdown {
  background: rgba(30, 30, 45, 0.95);
  border-color: rgba(148, 112, 245, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

body.dark .header-menu-backdrop {
  background: rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

body.dark .header-menu-header {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(107, 120, 240, 0.2) 100%);
}

body.dark .header-menu-name {
  color: #a88ef8;
}

body.dark .header-menu-divider {
  background: rgba(148, 112, 245, 0.2);
}

body.dark .header-menu-item {
  color: rgba(255, 255, 255, 0.85);
}

body.dark .header-menu-item:hover {
  background: rgba(148, 112, 245, 0.15);
  color: #a88ef8;
}

body.dark .header-menu-logout {
  color: #f87171;
}

body.dark .header-menu-logout:hover {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

/* Dark mode icon tints */
body.dark .header-menu-icon.icon-profile {
  opacity: 0.9;
}

body.dark .header-menu-icon.icon-children {
  opacity: 0.95;
  filter: sepia(0.2);
}

body.dark .header-menu-icon.icon-settings {
  opacity: 0.5;
}

body.dark .header-menu-icon.icon-logout {
  filter: sepia(0.6) saturate(1.6);
}

.header .logo {
  color: white;
  font-size: 2rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  animation: float 3s ease-in-out infinite;
}

.header .tagline {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  font-weight: 500;
}

.header .page-title {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

@keyframes float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

.form-card {
  /* Auth.css inspired - soft glassmorphism */
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(255, 255, 255, 0.48) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  padding: 18px 22px;
  box-shadow:
    0 8px 32px rgba(107, 120, 240, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  z-index: 2;
}

/* Form Back Row - Geri butonu sağa yaslı */
.form-back-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

/* Temizle butonu - Modern & Minimalist */
.clear-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.05);
  border: 1.5px solid rgba(239, 68, 68, 0.15);
  color: #EF4444; 
  padding: 6px 14px;
  border-radius: 20px; /* Pill shape */
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.clear-filters-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #DC2626;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.12);
}

.clear-filters-btn:active {
  transform: scale(0.95);
}

.clear-filters-btn svg {
  width: 13px;
  height: 13px;
  stroke-width: 3px; /* Daha belirgin minimalist çizgi */
  transition: transform 0.3s ease;
}

.clear-filters-btn:hover svg {
  transform: rotate(-15deg);
}

.content-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Hero Card */
.hero-card {
  /* Light mode - glassmorphism efekti */
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(255, 255, 255, 0.48) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  padding: 20px 32px;
  box-shadow:
    0 4px 24px rgba(107, 120, 240, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  box-sizing: border-box;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: skewX(-20deg);
  animation: hero-shimmer 4s ease-in-out infinite;
}

@keyframes hero-shimmer {
  0%,
  100% {
    transform: skewX(-20deg) translateX(-100%);
  }
  50% {
    transform: skewX(-20deg) translateX(100%);
  }
}

/* Hero Başlık */
.hero-title {
  font-size: 1rem;
  font-weight: 800;
  /* Light mode - daha koyu mor tonlu metin */
  color: #243769;
  text-align: center;
  line-height: 1.35;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
  letter-spacing: 0.06em;
  position: relative;
  z-index: 1;
}

.hero-title .highlight {
  display: inline-block;
  color: #f97316;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Dark Mode Hero Card */
body.dark .hero-card {
  background: linear-gradient(
    145deg,
    rgba(129, 140, 248, 0.15) 0%,
    rgba(148, 112, 245, 0.1) 100%
  );
  border-color: rgba(129, 140, 248, 0.25);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

body.dark .hero-title {
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   CATEGORY HERO - Kategori Sayfaları Hero
   ========================================== */

/* Home Button & Activities Button stilleri Style.css'e taşındı */

.category-hero {
  text-align: center;
  margin-top: 40px;
  padding: 16px 24px;
}

.category-hero-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
  text-align: center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  animation: hero-icon-float 3s ease-in-out infinite;
}

@keyframes hero-icon-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Kategori Hero Renkleri */
.category-play-hero {
  border-color: rgba(255, 45, 190, 0.3);
}

.category-play-hero .category-hero-icon {
  filter: drop-shadow(0 4px 12px rgba(255, 45, 190, 0.4));
}

.category-think-hero {
  border-color: rgba(245, 158, 11, 0.3);
}

.category-think-hero .category-hero-icon {
  filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.4));
}

.category-explore-hero {
  border-color: rgba(16, 185, 129, 0.3);
}

.category-explore-hero .category-hero-icon {
  filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.4));
}

.category-chat-hero {
  border-color: rgba(148, 112, 245, 0.3);
}

.category-chat-hero .category-hero-icon {
  filter: drop-shadow(0 4px 12px rgba(148, 112, 245, 0.4));
}

/* Dark Mode Category Hero */
body.dark .category-play-hero {
  border-color: rgba(255, 45, 190, 0.25);
}

body.dark .category-think-hero {
  border-color: rgba(245, 158, 11, 0.25);
}

body.dark .category-explore-hero {
  border-color: rgba(16, 185, 129, 0.25);
}

body.dark .category-chat-hero {
  border-color: rgba(148, 112, 245, 0.25);
}

/* Responsive Category Hero */
@media (max-width: 768px) {
  .category-hero {
    margin-top: 20px;
    padding: 12px 20px;
  }

  .category-hero-icon {
    font-size: 2.5rem;
    margin-bottom: 6px;
  }
}

@media (max-width: 480px) {
  .category-hero {
    margin-top: 10px;
    padding: 10px 16px;
  }

  .category-hero-icon {
    font-size: 2.2rem;
    margin-bottom: 4px;
  }
}

/* Tek Filtreli Form - Geniş Alan */
.single-field-form {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
}

.single-field-form .form-group {
  width: 100% !important;
  grid-column: span 2 !important;
}

.single-field-form .form-group select,
.single-field-form .form-group .custom-select-wrapper,
.single-field-form .form-group .custom-select,
.single-field-form .form-group .custom-select-trigger {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.form-card h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 6px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(
    135deg,
    rgba(107, 120, 240, 0.12),
    rgba(167, 139, 250, 0.1)
  );
  color: var(--primary-color);
  display: inline-block;
}

.form-card > div {
  text-align: center;
}

.subtitle {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 14px;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Form */
.game-form {
  display: flex;
  flex-direction: column;
  gap: 12px; /* Compact spacing */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}

.form-group label {
  font-weight: 600;
  color: #243769; /* Auth.css color */
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-group select {
  width: 100%; /* Ensure full width by default */
  padding: 8px 12px;
  padding-right: 32px;
  border: 2px solid rgba(107, 120, 240, 0.25); /* Auth.css border color */
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: #243769; /* Auth.css text color */
  background-color: rgba(255, 255, 255, 0.6); /* Auth.css input background */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%236366F1' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  appearance: none;
  box-shadow: 0 4px 12px rgba(107, 120, 240, 0.1);
}

.form-group select:hover {
  background-color: rgba(255, 255, 255, 0.75);
  border-color: rgba(107, 120, 240, 0.35);
  box-shadow: 0 6px 16px rgba(107, 120, 240, 0.18);
  transform: translateY(-1px);
}

.form-group select:focus {
  outline: none;
  border-color: rgba(107, 120, 240, 0.5); /* Auth.css focus border */
  background-color: rgba(255, 255, 255, 0.8); /* Auth.css focus background */
  box-shadow: 0 0 0 4px rgba(107, 120, 240, 0.1); /* Auth.css focus shadow */
  transform: translateY(-2px);
}

.form-group select:invalid {
  color: rgba(25, 18, 60, 0.4); /* Placeholder color from Auth.css */
}

/* Select option styling - IMPROVED VISIBILITY */
.form-group select option {
  background-color: #ffffff !important;
  color: #1f2937 !important;
  padding: 10px;
  font-weight: 500;
}

.form-group select option:checked {
  background-color: #eef2ff !important;
  color: #5b6ae8 !important;
  font-weight: 600;
}

.form-group select option:hover {
  background-color: #eef2ff !important;
  color: #5b6ae8 !important;
}

/* Custom Select Dropdown */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: rgba(255, 255, 255, 0.6); /* Auth.css input background */
  border: 2px solid rgba(107, 120, 240, 0.25); /* Auth.css border */
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(107, 120, 240, 0.1);
  font-size: 0.85rem;
  color: #243769; /* Auth.css text color */
}

.custom-select-trigger:hover {
  background-color: rgba(255, 255, 255, 0.75);
  border-color: rgba(107, 120, 240, 0.35);
  box-shadow: 0 6px 16px rgba(107, 120, 240, 0.18);
  transform: translateY(-1px);
}

.custom-select.open .custom-select-trigger {
  background-color: rgba(255, 255, 255, 0.8);
  border-color: rgba(107, 120, 240, 0.5);
  box-shadow: 0 0 0 4px rgba(107, 120, 240, 0.1);
  transform: translateY(-2px);
}

.custom-select.placeholder-selected .custom-select-value {
  color: rgba(25, 18, 60, 0.4); /* Auth.css placeholder color */
}

.custom-select-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #6b78f0; /* Purple arrow */
  transition: transform 0.3s ease;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  /* Auth.css inspired - white glassmorphism */
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  box-shadow:
    0 12px 40px rgba(107, 120, 240, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid rgba(107, 120, 240, 0.15);
}

.custom-select.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  color: #1f2937; /* Dark text for visibility */
  border-bottom: 1px solid rgba(107, 120, 240, 0.1);
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:hover {
  background: rgba(107, 120, 240, 0.1);
  color: #5b6ae8; /* Purple on hover */
  padding-left: 20px;
}

.custom-select-option.selected {
  background: rgba(107, 120, 240, 0.15);
  color: #5b6ae8; /* Purple for selected */
  font-weight: 600;
}

.custom-select-option.selected::before {
  content: "✓";
  margin-right: 8px;
  font-weight: 700;
}

.custom-select-option.placeholder {
  color: rgba(25, 18, 60, 0.4); /* Auth.css placeholder */
  font-style: italic;
}

/* Custom Select Scrollbar - Modern thin style */
.custom-select-options::-webkit-scrollbar {
  width: 5px;
  background: transparent !important;
}

.custom-select-options::-webkit-scrollbar-track {
  background: transparent !important;
}

.custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(107, 120, 240, 0.4);
  border-radius: 10px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 120, 240, 0.6);
}

.custom-select-options::-webkit-scrollbar-corner {
  background: transparent !important;
}

/* Dark Mode Custom Select */
body.dark .custom-select-trigger {
  background-color: rgba(25, 18, 60, 0.6); /* Darker purple background */
  border-color: rgba(129, 140, 248, 0.4); /* Brighter border */
  color: rgba(255, 255, 255, 0.95); /* White text */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.dark .custom-select-trigger:hover {
  background-color: rgba(67, 56, 202, 0.7); /* Brighter on hover */
  border-color: rgba(129, 140, 248, 0.6);
  box-shadow: 0 6px 16px rgba(107, 120, 240, 0.25);
}

body.dark .custom-select.open .custom-select-trigger {
  background-color: rgba(91, 106, 232, 0.75); /* Even brighter when open */
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow: 0 0 0 4px rgba(107, 120, 240, 0.2);
}

body.dark .custom-select-options {
  /* Balanced purple gradient - visible but not too bright */
  background: linear-gradient(
    145deg,
    rgba(25, 18, 60, 0.95) 0%,
    rgba(67, 56, 202, 0.92) 50%,
    rgba(91, 106, 232, 0.9) 100%
  );
  border-color: rgba(129, 140, 248, 0.3);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(107, 120, 240, 0.2);
}

body.dark .custom-select-option {
  color: rgba(255, 255, 255, 0.95) !important; /* White text for dark mode */
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark .custom-select-option:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 1) !important; /* Brighter white on hover */
}

body.dark .custom-select-option.selected {
  background: rgba(255, 255, 255, 0.18);
  color: #fde68a !important; /* Yellow highlight for selected in dark mode */
}

/* Shake & Highlight Animation - Yaş seçimi uyarısı */
.custom-select.shake-highlight {
  animation: shake 0.5s ease-in-out;
}

.custom-select.shake-highlight .custom-select-trigger {
  border-color: #f97316 !important;
  box-shadow:
    0 0 0 3px rgba(249, 115, 22, 0.3),
    0 0 20px rgba(249, 115, 22, 0.2);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-6px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(6px);
  }
}

/* Checkbox */
.form-group-checkbox {
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary-color);
  border-radius: 4px;
}

.checkbox-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

/* Buton */
.btn-primary {
  margin-top: 4px;
  width: 100%;
  font-size: 0.95rem;
  padding: 12px 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(240, 240, 255, 0.9) 100%
  );
  color: #5b6ae8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(107, 120, 240, 0.15),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(245, 243, 255, 1) 100%
  );
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Yaş seçilmeden önce buton stili */
.btn-primary.btn-waiting {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(240, 240, 255, 0.7) 100%
  );
  color: rgba(91, 106, 232, 0.75);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn-primary.btn-waiting:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(240, 240, 255, 0.8) 100%
  );
  color: rgba(91, 106, 232, 0.85);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:disabled {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(240, 240, 255, 0.6) 100%
  );
  color: rgba(91, 106, 232, 0.7);
  cursor: not-allowed;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: none;
  opacity: 0.85;
}

.btn-primary:disabled::before {
  display: none;
}

.btn-primary:disabled:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(240, 240, 255, 0.65) 100%
  );
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: none;
}

.btn-text {
  flex: 1;
  text-align: center;
  font-weight: 700;
}

.btn-icon {
  font-size: 1.2rem;
}

/* Form Error */
.form-error {
  display: none;
  background: linear-gradient(135deg, #ffe5e5, #ffd5d5);
  color: #e74c3c;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-top: 12px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  border-left: 4px solid #e74c3c;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
}

.form-error.show {
  display: block;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  75% {
    transform: translateX(8px);
  }
}

/* Responsive (Mobil ve Tablet Uyumlu) */

/* Tablet (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .header {
    padding: 28px 20px 18px;
  }

  .header .tagline {
    font-size: 0.9rem;
  }

  .form-card {
    padding: 22px 24px;
    max-width: 460px;
  }

  .form-card h2 {
    font-size: 1.3rem;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .form-group select {
    padding: 10px 14px;
    font-size: 0.84rem;
  }

  .btn-primary {
    font-size: 0.92rem;
    padding: 12px 22px;
  }
}

/* Desktop - Büyük ekranlar için dekoratif elementler */
@media (min-width: 1024px) {
  /* Light mode elementleri büyüt */
  .body-decoration::before {
    width: 180px;
    height: 90px;
  }

  .body-decoration::after {
    width: 150px;
    height: 75px;
  }

  .body-decoration .blob-1 {
    width: 120px;
    height: 75px;
  }

  .body-decoration .blob-2 {
    width: 100px;
    height: 65px;
  }

  .body-decoration .dot-1 {
    width: 14px;
    height: 14px;
  }

  .body-decoration .dot-2 {
    width: 12px;
    height: 12px;
  }

  .body-decoration .star-1 {
    width: 38px;
    height: 38px;
  }

  /* Dark mode elementleri büyüt */
  body.dark .body-decoration .moon-emoji {
    font-size: 3rem;
  }

  body.dark .body-decoration .star-emoji-1 {
    font-size: 1.3rem;
  }

  body.dark .body-decoration .star-emoji-2 {
    font-size: 1rem;
  }

  body.dark .body-decoration .star-emoji-3 {
    font-size: 1.15rem;
  }

  body.dark .body-decoration .star-emoji-4 {
    font-size: 0.95rem;
  }

  body.dark .body-decoration .star-emoji-5 {
    font-size: 1.1rem;
  }

  body.dark .body-decoration .star-emoji-6 {
    font-size: 1.2rem;
  }

  body.dark .body-decoration .star-emoji-7 {
    font-size: 1rem;
  }

  body.dark .body-decoration .star-emoji-8 {
    font-size: 0.9rem;
  }
}

/* Mobil ve Küçük Tablet (max 768px) */
@media (max-width: 768px) {
  .header {
    padding: 36px 16px 16px;
  }

  /* Header avatar küçültme - diğer butonlarla eşit */
  .header-avatar-btn {
    width: 34px;
    height: 34px;
  }

  .header-avatar-letter {
    font-size: 0.85rem;
  }

  /* Dropdown menü küçültme */
  .header-menu-dropdown {
    min-width: 130px;
    top: calc(100% + 5px);
  }

  .header-menu-header {
    padding: 7px 11px;
  }

  .header-menu-name {
    font-size: 0.75rem;
  }

  .header-menu-item {
    padding: 6px 11px;
    font-size: 0.75rem;
    gap: 7px;
  }

  .header-menu-icon {
    font-size: 0.85rem;
  }

  .header-menu-divider-spacer {
    margin: 5px 0;
  }

  .header .logo {
    font-size: 1.8rem;
  }

  .header-top-row .logo {
    font-size: 1.8rem;
  }

  .content-container {
    gap: 28px;
  }

  .hero-card {
    padding: 16px 24px;
  }

  .hero-title {
    font-size: 1.05rem;
    line-height: 1.4;
  }

  /* Mobilde dekoratif şekilleri küçült */
  .body-decoration::before {
    width: 80px;
    height: 80px;
  }

  .body-decoration::after {
    width: 70px;
    height: 70px;
  }

  .body-decoration .blob-1,
  .body-decoration .blob-2 {
    width: 50px;
    height: 50px;
  }

  .body-decoration .blob-3,
  .body-decoration .blob-4 {
    width: 40px;
    height: 40px;
  }

  .body-decoration .dot-1,
  .body-decoration .dot-2,
  .body-decoration .dot-3,
  .body-decoration .dot-4 {
    width: 6px;
    height: 6px;
  }

  .body-decoration .plus-1,
  .body-decoration .plus-2 {
    width: 10px;
    height: 10px;
  }

  .body-decoration .star-1,
  .body-decoration .star-2 {
    width: 12px;
    height: 12px;
  }

  /* Mobilde confetti/stars küçült */
  .content-blob-1 {
    width: 18px;
    height: 18px;
  }

  .content-blob-2,
  .content-blob-3 {
    width: 14px;
    height: 14px;
  }

  .content-blob-4 {
    width: 10px;
    height: 10px;
  }

  .content-blob-5 {
    width: 8px;
    height: 14px;
  }

  .content-blob-6 {
    width: 12px;
    height: 8px;
  }

  .header .logo {
    font-size: 1.6rem;
  }

  .header .tagline {
    font-size: 0.85rem;
  }

  .header .page-title {
    font-size: 1.1rem;
  }

  .form-card {
    padding: 14px 14px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(107, 120, 240, 0.12);
  }

  .form-card h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .subtitle {
    font-size: 0.75rem;
    margin-bottom: 8px;
  }

  .game-form {
    gap: 6px;
  }

  .magic-orb-btn {
    width: 82px;
    height: 82px;
    margin: 8px auto;
    font-size: 0.78rem;
  }

  .form-group label {
    font-size: 0.82rem;
  }

  .form-group select {
    padding: 9px 12px;
    font-size: 0.8rem;
    padding-right: 32px;
  }

  .btn-primary {
    font-size: 0.88rem;
    padding: 11px 18px;
  }

  .form-error {
    padding: 8px 12px;
    font-size: 0.78rem;
    margin-top: 8px;
  }
}

/* Küçük Mobil (max 480px) */
@media (max-width: 480px) {
  .header {
    padding: 28px 14px 14px;
  }

  /* Header avatar küçültme - diğer butonlarla eşit */
  .header-avatar-btn {
    width: 30px;
    height: 30px;
  }

  .header-avatar-letter {
    font-size: 0.8rem;
  }

  /* Dropdown menü daha da küçültme */
  .header-menu-dropdown {
    min-width: 125px;
    top: calc(100% + 4px);
    border-radius: 10px;
  }

  .header-menu-header {
    padding: 6px 10px;
  }

  .header-menu-name {
    font-size: 0.72rem;
  }

  .header-menu-item {
    padding: 6px 10px;
    font-size: 0.72rem;
    gap: 7px;
  }

  .header-menu-icon {
    font-size: 0.8rem;
  }

  .header-menu-divider-spacer {
    margin: 4px 0;
  }

  .header .logo {
    font-size: 1.6rem;
  }

  .header-top-row .logo {
    font-size: 1.6rem;
  }

  .content-container {
    gap: 14px;
  }

  .hero-card {
    padding: 12px 16px;
  }

  .hero-title {
    font-size: 0.9rem;
    line-height: 1.35;
    letter-spacing: 0.04em;
  }

  .header .logo {
    font-size: 1.4rem;
  }

  .header .tagline {
    font-size: 0.78rem;
  }

  .form-card {
    padding: 12px 10px;
  }

  .form-card h2 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .subtitle {
    font-size: 0.7rem;
    margin-bottom: 6px;
  }

  .game-form {
    gap: 5px;
  }

  .magic-orb-btn {
    width: 78px;
    height: 78px;
    margin: 6px auto;
    font-size: 0.75rem;
  }

  .magic-orb-btn::before {
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
  }

  .form-group label {
    font-size: 0.78rem;
  }

  .form-group select {
    padding: 8px 10px;
    font-size: 0.76rem;
    padding-right: 30px;
  }

  .btn-primary {
    padding: 10px 16px;
    font-size: 0.82rem;
  }

  .form-error {
    padding: 6px 10px;
    font-size: 0.72rem;
    margin-top: 6px;
  }
}

/* Ultra Küçük Mobil (max 360px) */
@media (max-width: 360px) {
  .header {
    padding: 28px 10px 12px;
  }

  .header .logo {
    font-size: 1.3rem;
  }

  .header-top-row .logo {
    font-size: 1.3rem;
  }

  .content-container {
    gap: 10px;
  }

  .hero-card {
    padding: 10px 12px;
  }

  .hero-card::before {
    display: none;
  }

  .hero-title {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .header .tagline {
    font-size: 0.7rem;
  }

  .form-card {
    padding: 10px 8px;
  }

  .form-card h2 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    padding: 3px 10px;
  }

  .subtitle {
    font-size: 0.65rem;
    margin-bottom: 4px;
  }

  .game-form {
    gap: 4px;
  }

  .form-group label {
    font-size: 0.7rem;
  }

  .form-group select {
    padding: 6px 8px;
    font-size: 0.68rem;
    padding-right: 26px;
  }

  .btn-primary {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .magic-orb-btn {
    width: 70px;
    height: 70px;
    margin: 4px auto;
    font-size: 0.7rem;
  }

  .magic-orb-btn::before {
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
  }

  .category-hero {
    margin-top: 5px;
    padding: 8px 12px;
  }

  .category-hero-icon {
    font-size: 1.8rem;
    margin-bottom: 2px;
  }

  /* Ultra küçük mobilde confetti/stars gizle */
  .content-decoration {
    display: none;
  }
}

/* Çok Küçük Mobil (max 320px) - Samsung Galaxy S8, iPhone SE gibi */
@media (max-width: 320px) {
  .header {
    padding: 28px 10px 14px;
  }

  .header .logo {
    font-size: 1.4rem;
  }

  .header-top-row .logo {
    font-size: 1.4rem;
  }

  .header .tagline {
    font-size: 0.65rem;
  }

  .hero-card {
    padding: 10px 12px;
  }

  .hero-title {
    font-size: 0.75rem;
  }
}

/* İkili Form Dizilişi (min 780px) */
@media (min-width: 780px) {
  .form-card {
    max-width: 520px;
    padding: 28px 32px;
  }

  .hero-card {
    max-width: 520px;
  }

  .game-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px; /* Restored original desktop spacing */
  }

  .form-group {
    gap: 6px;
  }

  /* Full width form elements */
  .form-group-full {
    grid-column: span 2;
  }

  .form-group-full select,
  .form-group-full .custom-select-trigger {
    max-width: 100%;
  }

  .form-group-checkbox,
  .form-group-full,
  .game-form > .btn-primary,
  .form-error {
    grid-column: span 2;
  }

  .btn-primary {
    margin-top: 8px;
  }

  /* Explore Form - 4 alan için 2x2 grid (5. child zorluk, tek sütun) */
  .explore-form .form-group:nth-child(5),
  .explore-form .form-group:nth-child(6) {
    grid-column: span 1;
  }

  .explore-form .form-group:nth-child(5) select,
  .explore-form .form-group:nth-child(6) select {
    max-width: 100%;
  }
}

/* ==========================================
   DARK MODE - Gece Modu Stilleri
   ========================================== */

/* Form Card */
body.dark .form-card {
  background: linear-gradient(
    145deg,
    rgba(26, 31, 78, 0.85) 0%,
    rgba(15, 23, 42, 0.9) 50%,
    rgba(30, 41, 91, 0.8) 100%
  );
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Temizle Butonu - Dark Mode */
body.dark .clear-filters-btn {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.15);
  color: #F87171;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.dark .clear-filters-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Form Selectler */
body.dark .form-group label {
  color: rgba(255, 255, 255, 0.95); /* Dark mode keeps white labels */
}

body.dark .form-group select {
  color: var(--text-primary); /* Dark mode text */
  background-color: var(--bg-primary); /* Dark mode background */
  border: 2px solid transparent; /* Dark mode transparent border */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%2394A3B8' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
}

body.dark .form-group select:hover {
  background-color: var(--bg-card);
  box-shadow: 0 6px 16px rgba(107, 120, 240, 0.18);
}

body.dark .form-group select:focus {
  background-color: var(--bg-card);
  box-shadow:
    0 0 0 4px rgba(107, 120, 240, 0.15),
    0 6px 16px rgba(107, 120, 240, 0.22);
}

body.dark .form-group select:invalid {
  color: var(--text-light); /* Dark mode placeholder */
}

body.dark .form-group select option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

/* Form Checkbox */
body.dark .checkbox-label .checkbox-text {
  color: var(--text-primary);
}

/* Form Error */
body.dark .form-error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Form Button - Dark Mode - UEFA CL Metallic Style */
body.dark .game-form .btn-primary,
body.dark .btn-primary {
  /* Metallic Deep Blue Gradient (UEFA CL Colors: Dark Navy -> Royal Blue) */
  background: linear-gradient(
    135deg,
    #001242 0%,
    #002570 50%,
    #003b99 100%
  ) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 6px 20px rgba(0, 18, 66, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

body.dark .game-form .btn-primary:hover,
body.dark .btn-primary:hover {
  /* Lighter, shinier metallic blue on hover */
  background: linear-gradient(
    135deg,
    #001c5e 0%,
    #00358e 50%,
    #0050c7 100%
  ) !important;
  box-shadow:
    0 8px 25px rgba(0, 37, 112, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px);
}

/* ==========================================
   MAGIC ORB BUTTON - Sihirli Küre (Çocuk Dostu)
   ========================================== */

.magic-orb-btn {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  margin: 10px auto;
  padding: 0;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: white;
  z-index: 10;
  overflow: visible;
  grid-column: span 2;

  /* Cam Küre - Pastel Mor-Mavi-Pembe Gradient */
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.4) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(219, 190, 255, 0.95) 0%,
      rgba(186, 156, 245, 0.9) 20%,
      rgba(167, 139, 250, 0.85) 40%,
      rgba(147, 112, 219, 0.9) 60%,
      rgba(186, 135, 200, 0.85) 80%,
      rgba(167, 139, 250, 0.95) 100%
    );

  /* 3D Cam Derinlik */
  box-shadow:
    inset 0 -15px 30px rgba(100, 60, 150, 0.4),
    inset 0 10px 20px rgba(255, 255, 255, 0.25),
    inset 3px 0 15px rgba(255, 200, 220, 0.2),
    inset -3px 0 15px rgba(150, 180, 255, 0.2),
    0 8px 25px rgba(147, 112, 219, 0.35);

  transition: transform 0.3s ease;
}

/* Aura - Nabız Atan Dış Işık */
.magic-orb-btn::before {
  content: "";
  position: absolute;
  top: -18px;
  left: -18px;
  right: -18px;
  bottom: -18px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(186, 156, 245, 0.5) 0%,
      rgba(167, 139, 250, 0.35) 30%,
      rgba(200, 160, 220, 0.25) 50%,
      rgba(150, 180, 255, 0.15) 70%,
      transparent 100%
    );
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
  animation: aura-pulse 4s ease-in-out infinite;
}

/* Cam Yansıması - Üst Sol */
.magic-orb-btn .orb-highlight {
  position: absolute;
  top: 8%;
  left: 12%;
  width: 40%;
  height: 30%;
  background:
    radial-gradient(
      ellipse at 50% 50%,
      rgba(255, 255, 255, 0.75) 0%,
      rgba(255, 255, 255, 0.4) 40%,
      transparent 70%
    );
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(-15deg);
}

/* Sparklar Konteyneri */
.magic-orb-btn .orb-sparks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: visible;
  pointer-events: none;
  animation: sparks-rotate 9s linear infinite;
  clip-path: circle(50% at 50% 50%); /* Normal durumda küre içinde tut */
}

/* Patlama sırasında clip-path kaldır - animasyon aşağıda tanımlı */

/* Bireysel Spark Noktaları */
.magic-orb-btn .spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.6);
}

.magic-orb-btn .spark:nth-child(1) { top: 22%; left: 28%; width: 3px; height: 3px; }
.magic-orb-btn .spark:nth-child(2) { top: 35%; left: 65%; width: 4px; height: 4px; }
.magic-orb-btn .spark:nth-child(3) { top: 55%; left: 25%; width: 3px; height: 3px; }
.magic-orb-btn .spark:nth-child(4) { top: 68%; left: 55%; width: 4px; height: 4px; }
.magic-orb-btn .spark:nth-child(5) { top: 45%; left: 45%; width: 3px; height: 3px; }
.magic-orb-btn .spark:nth-child(6) { top: 30%; left: 50%; width: 2px; height: 2px; }
.magic-orb-btn .spark:nth-child(7) { top: 60%; left: 70%; width: 3px; height: 3px; }

/* Metin - Nefes Alan */
.magic-orb-btn .btn-text-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
  text-shadow:
    0 1px 2px rgba(80, 40, 120, 0.4),
    0 0 15px rgba(255, 255, 255, 0.5);
  animation: text-breathe 3s ease-in-out infinite;
}

/* Aura Nabız Animasyonu */
@keyframes aura-pulse {
  0%, 100% {
    opacity: 0.7;
    filter: blur(8px);
    transform: scale(1);
  }
  50% {
    opacity: 1;
    filter: blur(12px);
    transform: scale(1.05);
  }
}

/* Spark Dönme Animasyonu - Yavaş */
@keyframes sparks-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Metin Nefes Animasyonu */
@keyframes text-breathe {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 1; }
}

/* Hover - Hafif Büyüme */
.magic-orb-btn:hover {
  transform: scale(1.03);
}

.magic-orb-btn:hover::before {
  animation: aura-pulse-hover 2s ease-in-out infinite;
}

@keyframes aura-pulse-hover {
  0%, 100% {
    opacity: 0.85;
    filter: blur(10px);
    transform: scale(1.02);
  }
  50% {
    opacity: 1;
    filter: blur(14px);
    transform: scale(1.08);
  }
}

/* Active/Tap - Aura Güçlenir, Sparklar Hızlanır */
.magic-orb-btn:active {
  transform: scale(0.97);
}

.magic-orb-btn:active::before {
  opacity: 1;
  filter: blur(15px);
  transform: scale(1.1);
  transition: all 0.15s ease;
}

.magic-orb-btn:active .orb-sparks {
  animation-duration: 2s;
}

/* Patlama Animasyonu - Form Submit Sonrası */
.magic-orb-btn.orb-swirl .orb-sparks {
  animation: none;
  clip-path: none; /* Sparkların dışarı çıkması için */
}

.magic-orb-btn.orb-swirl::before {
  animation: aura-burst 0.5s ease-out forwards;
}

/* Her spark için patlama - dışarı fırlama */
.magic-orb-btn.orb-swirl .spark:nth-child(1) {
  animation: spark-explode-1 0.5s ease-out forwards;
}
.magic-orb-btn.orb-swirl .spark:nth-child(2) {
  animation: spark-explode-2 0.5s ease-out forwards;
}
.magic-orb-btn.orb-swirl .spark:nth-child(3) {
  animation: spark-explode-3 0.5s ease-out forwards;
}
.magic-orb-btn.orb-swirl .spark:nth-child(4) {
  animation: spark-explode-4 0.5s ease-out forwards;
}
.magic-orb-btn.orb-swirl .spark:nth-child(5) {
  animation: spark-explode-5 0.5s ease-out forwards;
}
.magic-orb-btn.orb-swirl .spark:nth-child(6) {
  animation: spark-explode-6 0.5s ease-out forwards;
}
.magic-orb-btn.orb-swirl .spark:nth-child(7) {
  animation: spark-explode-7 0.5s ease-out forwards;
}

/* Spark patlama keyframe'leri - her biri farklı yöne */
@keyframes spark-explode-1 {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(-60px, -50px) scale(2); opacity: 0; }
}
@keyframes spark-explode-2 {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(55px, -45px) scale(1.8); opacity: 0; }
}
@keyframes spark-explode-3 {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(-50px, 55px) scale(2.2); opacity: 0; }
}
@keyframes spark-explode-4 {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(60px, 50px) scale(1.6); opacity: 0; }
}
@keyframes spark-explode-5 {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(0, -65px) scale(2); opacity: 0; }
}
@keyframes spark-explode-6 {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(-55px, 0) scale(1.5); opacity: 0; }
}
@keyframes spark-explode-7 {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(50px, -30px) scale(1.8); opacity: 0; }
}

@keyframes aura-burst {
  0% {
    opacity: 1;
    filter: blur(10px);
    transform: scale(1);
  }
  40% {
    opacity: 1;
    filter: blur(20px);
    transform: scale(1.3);
  }
  100% {
    opacity: 0;
    filter: blur(12px);
    transform: scale(1.05);
  }
}

/* ==========================================
   DARK MODE - Sihirli Küre
   ========================================== */
body.dark .magic-orb-btn {
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(180, 150, 230, 0.9) 0%,
      rgba(150, 120, 210, 0.85) 20%,
      rgba(130, 100, 200, 0.8) 40%,
      rgba(110, 80, 180, 0.85) 60%,
      rgba(140, 100, 170, 0.8) 80%,
      rgba(120, 90, 190, 0.9) 100%
    );

  box-shadow:
    inset 0 -15px 30px rgba(60, 30, 100, 0.5),
    inset 0 10px 20px rgba(255, 255, 255, 0.15),
    inset 3px 0 15px rgba(200, 150, 180, 0.15),
    inset -3px 0 15px rgba(120, 150, 220, 0.15),
    0 8px 25px rgba(100, 70, 170, 0.4);
}

body.dark .magic-orb-btn::before {
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(150, 120, 210, 0.5) 0%,
      rgba(130, 100, 200, 0.35) 30%,
      rgba(160, 120, 180, 0.25) 50%,
      rgba(120, 150, 220, 0.15) 70%,
      transparent 100%
    );
}

body.dark .magic-orb-btn .orb-highlight {
  background:
    radial-gradient(
      ellipse at 50% 50%,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.25) 40%,
      transparent 70%
    );
}

body.dark .magic-orb-btn .spark {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 5px 2px rgba(200, 180, 255, 0.5);
}

body.dark .magic-orb-btn .btn-text-content {
  text-shadow:
    0 1px 3px rgba(30, 20, 60, 0.5),
    0 0 12px rgba(200, 180, 255, 0.4);
}

body.dark .btn-primary:disabled {
  background: linear-gradient(
    135deg,
    rgba(91, 106, 232, 0.4) 0%,
    rgba(67, 56, 202, 0.4) 100%
  );
  color: rgba(255, 255, 255, 0.5);
  border-color: transparent;
}

/* ==========================================
   CATEGORY BUBBLES - Ana Sayfa Balon Kartları
   ========================================== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding: 10px;
  justify-items: center;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  animation: bubble-float 4s ease-in-out infinite;
  /* Glassmorphism efekti */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Her balon farklı zamanlama ile hareket etsin */
.category-card:nth-child(1) {
  animation-delay: 0s;
}
.category-card:nth-child(2) {
  animation-delay: 0.5s;
}
.category-card:nth-child(3) {
  animation-delay: 1s;
}
.category-card:nth-child(4) {
  animation-delay: 1.5s;
}

@keyframes bubble-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

/* Balon parlama efekti */
.category-card::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 18%;
  width: 25%;
  height: 20%;
  background: radial-gradient(
    ellipse,
    rgba(255, 255, 255, 0.6) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: rotate(-30deg);
  pointer-events: none;
}

/* Balon alt gölge */
.category-card::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 10px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.6;
  transition: all 0.4s ease;
}

.category-card:hover {
  transform: translateY(-15px) scale(1.12);
  animation: breathe 1.5s ease-in-out infinite;
}

/* Nefes alan animasyon */
@keyframes breathe {
  0%,
  100% {
    transform: translateY(-15px) scale(1.12);
  }
  50% {
    transform: translateY(-18px) scale(1.14);
  }
}

.category-card:hover::after {
  width: 50%;
  opacity: 0.3;
  bottom: -25px;
}

.category-card:active {
  transform: translateY(-5px) scale(1.05);
}

/* Kategori İkon */
.category-icon {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
  transition: transform 0.1s ease;
  position: relative;
  z-index: 1;
}

/* İkon arkası mikro glow */
.category-play .category-icon {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 18px rgba(255, 165, 225, 1)) saturate(1.5) contrast(1.4)
    brightness(1.1);
}

.category-think .category-icon {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3))
    drop-shadow(0 0 18px rgba(253, 230, 138, 1)) saturate(1.35) contrast(1.2);
}

.category-explore .category-icon {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3))
    drop-shadow(0 0 18px rgba(110, 231, 183, 1)) saturate(1.4) contrast(1.25);
}

.category-chat .category-icon {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.9)) saturate(1.5) contrast(1.4)
    brightness(1.1);
}

.category-card:hover .category-icon {
  transform: scale(1.2) rotate(-8deg);
  animation: icon-bounce 0.25s ease;
}

/* İkon bounce animasyonu */
@keyframes icon-bounce {
  0%,
  100% {
    transform: scale(1.2) rotate(-8deg);
  }
  25% {
    transform: scale(1.3) rotate(-12deg);
  }
  50% {
    transform: scale(1.15) rotate(-5deg);
  }
  75% {
    transform: scale(1.25) rotate(-10deg);
  }
}

/* Kategori Başlık */
.category-title {
  font-size: 1rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.98);
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

/* Kategori Açıklama - Gizli (dönen yazıda kullanılıyor) */
.category-desc {
  display: none;
}

/* Kategori Dönen Açıklama */
.category-hint {
  text-align: center;
  margin: 8px auto 0;
  max-width: 340px;
  min-height: 20px;
}

.category-hint-text {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  transition: opacity 0.4s ease;
}

.category-hint-text strong {
  font-weight: 700;
}

body.dark .category-hint-text {
  color: rgba(255, 255, 255, 0.45);
}

/* Aktif balon vurgusu */
.category-card.category-hint-active {
  filter: brightness(1.15);
  transform: scale(1.06);
}

/* Balon Renkleri - Oyna (Fuşya #FF0FBA) */
.category-play {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 165, 225, 1) 0%,
    rgba(255, 100, 205, 1) 30%,
    rgba(255, 45, 190, 0.95) 60%,
    rgba(215, 30, 155, 0.9) 100%
  );
  box-shadow:
    0 0 25px rgba(255, 45, 190, 0.4),
    0 8px 32px rgba(255, 45, 190, 0.5),
    inset 0 -8px 20px rgba(215, 30, 155, 0.35),
    inset 0 8px 20px rgba(255, 255, 255, 0.25);
  border: 3px solid rgba(255, 165, 225, 0.6);
}

.category-play:hover {
  box-shadow:
    0 0 30px rgba(255, 45, 190, 0.6),
    0 0 60px rgba(255, 45, 190, 0.3),
    0 16px 48px rgba(255, 45, 190, 0.5),
    inset 0 -8px 20px rgba(215, 30, 155, 0.4),
    inset 0 8px 20px rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 165, 225, 0.9);
}

/* Balon Renkleri - Düşün (Sarı/Turuncu) */
.category-think {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(254, 230, 130, 1) 0%,
    rgba(252, 195, 60, 1) 30%,
    rgba(245, 165, 30, 0.95) 60%,
    rgba(220, 130, 20, 0.9) 100%
  );
  box-shadow:
    0 0 25px rgba(245, 165, 30, 0.4),
    0 8px 32px rgba(245, 165, 30, 0.5),
    inset 0 -8px 20px rgba(220, 130, 20, 0.35),
    inset 0 8px 20px rgba(255, 255, 255, 0.28);
  border: 3px solid rgba(254, 230, 130, 0.65);
}

.category-think:hover {
  box-shadow:
    0 0 30px rgba(245, 158, 11, 0.6),
    0 0 60px rgba(245, 158, 11, 0.3),
    0 16px 48px rgba(245, 158, 11, 0.5),
    inset 0 -8px 20px rgba(217, 119, 6, 0.4),
    inset 0 8px 20px rgba(255, 255, 255, 0.35);
  border-color: rgba(253, 230, 138, 0.9);
}

/* Balon Renkleri - Keşfet (Yeşil) */
.category-explore {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(120, 235, 190, 1) 0%,
    rgba(70, 215, 165, 1) 30%,
    rgba(35, 195, 140, 0.95) 60%,
    rgba(15, 160, 110, 0.9) 100%
  );
  box-shadow:
    0 0 25px rgba(35, 195, 140, 0.4),
    0 8px 32px rgba(35, 195, 140, 0.5),
    inset 0 -8px 20px rgba(15, 160, 110, 0.35),
    inset 0 8px 20px rgba(255, 255, 255, 0.25);
  border: 3px solid rgba(120, 235, 190, 0.65);
}

.category-explore:hover {
  box-shadow:
    0 0 30px rgba(16, 185, 129, 0.6),
    0 0 60px rgba(16, 185, 129, 0.3),
    0 16px 48px rgba(16, 185, 129, 0.5),
    inset 0 -8px 20px rgba(5, 150, 105, 0.4),
    inset 0 8px 20px rgba(255, 255, 255, 0.3);
  border-color: rgba(110, 231, 183, 0.9);
}

/* Balon Renkleri - Sohbet Et (Mor) */
.category-chat {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(175, 190, 255, 1) 0%,
    rgba(140, 155, 250, 1) 30%,
    rgba(110, 115, 240, 0.95) 60%,
    rgba(85, 80, 225, 0.9) 100%
  );
  box-shadow:
    0 0 25px rgba(110, 115, 240, 0.4),
    0 8px 32px rgba(110, 115, 240, 0.5),
    inset 0 -8px 20px rgba(85, 80, 225, 0.35),
    inset 0 8px 20px rgba(255, 255, 255, 0.25);
  border: 3px solid rgba(175, 190, 255, 0.65);
}

.category-chat:hover {
  box-shadow:
    0 0 30px rgba(107, 120, 240, 0.6),
    0 0 60px rgba(107, 120, 240, 0.3),
    0 16px 48px rgba(107, 120, 240, 0.5),
    inset 0 -8px 20px rgba(91, 106, 232, 0.4),
    inset 0 8px 20px rgba(255, 255, 255, 0.3);
  border-color: rgba(165, 180, 252, 0.9);
}

/* Dark Mode - Balon Kartları */
body.dark .category-play {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 165, 225, 0.95) 0%,
    rgba(255, 100, 205, 0.9) 30%,
    rgba(255, 45, 190, 0.85) 60%,
    rgba(215, 30, 155, 0.8) 100%
  );
  box-shadow:
    0 8px 32px rgba(255, 45, 190, 0.6),
    inset 0 -8px 20px rgba(215, 30, 155, 0.45),
    inset 0 8px 20px rgba(255, 255, 255, 0.18);
}

body.dark .category-think {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(254, 230, 130, 0.95) 0%,
    rgba(252, 195, 60, 0.9) 30%,
    rgba(245, 165, 30, 0.85) 60%,
    rgba(220, 130, 20, 0.8) 100%
  );
  box-shadow:
    0 8px 32px rgba(245, 165, 30, 0.6),
    inset 0 -8px 20px rgba(220, 130, 20, 0.45),
    inset 0 8px 20px rgba(255, 255, 255, 0.18);
}

body.dark .category-explore {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(120, 235, 190, 0.95) 0%,
    rgba(70, 215, 165, 0.9) 30%,
    rgba(35, 195, 140, 0.85) 60%,
    rgba(15, 160, 110, 0.8) 100%
  );
  box-shadow:
    0 8px 32px rgba(35, 195, 140, 0.6),
    inset 0 -8px 20px rgba(15, 160, 110, 0.45),
    inset 0 8px 20px rgba(255, 255, 255, 0.18);
}

body.dark .category-chat {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(175, 190, 255, 0.95) 0%,
    rgba(140, 155, 250, 0.9) 30%,
    rgba(110, 115, 240, 0.85) 60%,
    rgba(85, 80, 225, 0.8) 100%
  );
  box-shadow:
    0 8px 32px rgba(110, 115, 240, 0.6),
    inset 0 -8px 20px rgba(85, 80, 225, 0.45),
    inset 0 8px 20px rgba(255, 255, 255, 0.18);
}

body.dark .category-card::after {
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.35) 0%, transparent 70%);
}

/* Responsive - Balon Kartları */
@media (max-width: 768px) {
  .category-grid {
    gap: 20px;
    max-width: 300px;
  }

  .category-card {
    width: 120px;
    height: 120px;
  }

  .category-icon {
    font-size: 2.4rem;
    margin-bottom: 4px;
  }

  .category-title {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .category-grid {
    gap: 16px;
    max-width: 260px;
  }

  .category-card {
    width: 105px;
    height: 105px;
  }

  .category-icon {
    font-size: 2rem;
    margin-bottom: 3px;
  }

  .category-title {
    font-size: 0.8rem;
  }

  .category-card::after {
    display: none;
  }
}

@media (max-width: 360px) {
  .category-grid {
    gap: 12px;
    max-width: 220px;
  }

  .category-card {
    width: 90px;
    height: 90px;
  }

  .category-icon {
    font-size: 1.7rem;
    margin-bottom: 2px;
  }

  .category-title {
    font-size: 0.72rem;
  }
}

/* ==========================================
   UYKU SESLERİ GİRİŞ KARTI
   ========================================== */

.sleep-entry-card {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 340px;
  width: 100%;
  margin: 18px auto 0;
  padding: 14px 18px;
  border-radius: 16px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(135deg,
      rgba(224, 218, 255, 0.9) 0%,
      rgba(199, 189, 248, 0.85) 40%,
      rgba(178, 162, 245, 0.8) 100%
    );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 112, 245, 0.2);
  box-shadow:
    0 4px 16px rgba(148, 112, 245, 0.12),
    0 2px 8px rgba(107, 120, 240, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sleep-entry-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 24px rgba(148, 112, 245, 0.2),
    0 4px 12px rgba(107, 120, 240, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.sleep-entry-card:active {
  transform: translateY(-1px) scale(0.98);
}

.sleep-entry-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(253, 224, 71, 0.4));
  animation: sleep-icon-float 3s ease-in-out infinite;
}

@keyframes sleep-icon-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(-5deg); }
}

.sleep-entry-text {
  flex: 1;
  min-width: 0;
}

.sleep-entry-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #3b2e6e;
  margin: 0;
  letter-spacing: 0.01em;
}

.sleep-entry-desc {
  font-size: 0.75rem;
  color: rgba(79, 55, 139, 0.7);
  margin: 2px 0 0;
  font-weight: 400;
}

.sleep-entry-arrow {
  font-size: 1.2rem;
  color: rgba(79, 55, 139, 0.45);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.sleep-entry-card:hover .sleep-entry-arrow {
  transform: translateX(3px);
  color: rgba(79, 55, 139, 0.7);
}

/* Dark mode */
body.dark .sleep-entry-card {
  background:
    linear-gradient(135deg,
      rgba(15, 10, 50, 0.9) 0%,
      rgba(30, 20, 80, 0.85) 40%,
      rgba(50, 40, 120, 0.8) 100%
    );
  border-color: rgba(148, 112, 245, 0.3);
  box-shadow:
    0 4px 16px rgba(10, 5, 30, 0.5),
    0 2px 8px rgba(148, 112, 245, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.dark .sleep-entry-card:hover {
  box-shadow:
    0 8px 24px rgba(10, 5, 30, 0.6),
    0 4px 12px rgba(148, 112, 245, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark .sleep-entry-title {
  color: white;
}

body.dark .sleep-entry-desc {
  color: rgba(167, 139, 250, 0.7);
}

body.dark .sleep-entry-arrow {
  color: rgba(167, 139, 250, 0.5);
}

body.dark .sleep-entry-card:hover .sleep-entry-arrow {
  color: rgba(196, 181, 253, 0.9);
}

/* Responsive */
@media (max-width: 480px) {
  .sleep-entry-card {
    max-width: 280px;
    padding: 12px 16px;
    gap: 12px;
  }

  .sleep-entry-icon {
    font-size: 1.5rem;
  }

  .sleep-entry-title {
    font-size: 0.88rem;
  }

  .sleep-entry-desc {
    font-size: 0.7rem;
  }
}

@media (max-width: 360px) {
  .sleep-entry-card {
    max-width: 220px;
    padding: 10px 14px;
    gap: 10px;
  }

  .sleep-entry-icon {
    font-size: 1.3rem;
  }

  .sleep-entry-title {
    font-size: 0.82rem;
  }

  .sleep-entry-desc {
    font-size: 0.65rem;
  }
}
