/* Kalp animasyonları ve özel stiller */

/* Backdrop filter için Safari desteği - iOS 26 tarzı */
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
  .backdrop-blur-xl {
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }

  .backdrop-blur-md {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

/* iOS 26 tarzı icon */
.ios-icon {
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.ios-icon::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

/* Bulanık kalpler arka plan */
.blurry-hearts-background {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: radial-gradient(
      circle at 80% 20%,
      rgba(255, 0, 68, 0.15) 10%,
      transparent 60%
    ),
    radial-gradient(
      circle at 20% 70%,
      rgba(255, 0, 68, 0.2) 10%,
      transparent 65%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 105, 180, 0.15) 15%,
      transparent 70%
    );
  z-index: 3;
  opacity: 0.8;
  filter: blur(40px);
  animation: pulse-background 15s infinite alternate ease-in-out;
}

/* Bulanık kalp background animasyonu */
@keyframes pulse-background {
  0% {
    background-position: 0% 0%;
    opacity: 0.7;
  }
  50% {
    background-position: 100% 50%;
    opacity: 0.9;
  }
  100% {
    background-position: 0% 100%;
    opacity: 0.7;
  }
}

/* Arka planda hareketli kalpler */
.blurry-hearts-background::before,
.blurry-hearts-background::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 0, 68, 0.2) 30%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(30px);
}

.blurry-hearts-background::before {
  top: 20%;
  left: 30%;
  animation: float-heart1 20s infinite ease-in-out;
}

.blurry-hearts-background::after {
  bottom: 20%;
  right: 30%;
  animation: float-heart2 18s infinite ease-in-out;
}

@keyframes float-heart1 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(100px, 50px) scale(1.5);
    opacity: 0.8;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
}

@keyframes float-heart2 {
  0% {
    transform: translate(0, 0) scale(1.2);
    opacity: 0.5;
  }
  50% {
    transform: translate(-80px, -40px) scale(0.9);
    opacity: 0.7;
  }
  100% {
    transform: translate(0, 0) scale(1.2);
    opacity: 0.5;
  }
}

/* Kalpler için container */
.hearts-container {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

/* Kalp animasyonları */
@keyframes float {
  0% {
    transform: translateY(110vh) scale(0);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-10vh) scale(1) rotate(360deg);
    opacity: 0;
  }
}

/* Kalp elementi */
.heart {
  position: absolute;
  bottom: -100px;
  background-color: #ff0844;
  height: 30px;
  width: 30px;
  transform: rotate(-45deg) scale(1);
  animation: float 15s linear infinite;
  opacity: 0.6;
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  background-color: #ff0844;
  height: 30px;
  width: 30px;
  border-radius: 50%;
}

.heart::before {
  top: -15px;
  left: 0;
}

.heart::after {
  top: 0;
  right: -15px;
}

/* Farklı kalp renkleri */
.heart:nth-child(2n) {
  background-color: #ff4b7d;
}

.heart:nth-child(2n)::before,
.heart:nth-child(2n)::after {
  background-color: #ff4b7d;
}

.heart:nth-child(3n) {
  background-color: #ff7096;
}

.heart:nth-child(3n)::before,
.heart:nth-child(3n)::after {
  background-color: #ff7096;
}

.heart:nth-child(4n) {
  background-color: #ff8fab;
}

.heart:nth-child(4n)::before,
.heart:nth-child(4n)::after {
  background-color: #ff8fab;
}

/* Özel audio player stilleri */
.audio-player {
  transition: all 0.3s ease;
  box-shadow: 0 -10px 20px rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.audio-player::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

.progress-container {
  cursor: pointer;
}

.progress-bar {
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Şarkı listesi stilleri */
#playlist {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

#playlist::-webkit-scrollbar {
  width: 4px;
}

#playlist::-webkit-scrollbar-track {
  background: transparent;
}

#playlist::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
}

/* Glassy kontroller */
#play-btn,
#prev-btn,
#next-btn,
#playlist-btn {
  position: relative;
  transition: all 0.2s ease;
}

#play-btn:hover,
#prev-btn:hover,
#next-btn:hover,
#playlist-btn:hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

#play-btn:active,
#prev-btn:active,
#next-btn:active,
#playlist-btn:active {
  transform: scale(0.95);
}

/* Şarkı sözleri animasyonları - iOS 26 tarzı */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
    filter: blur(4px);
  }
}

.fade-in-text {
  animation: fadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  background: linear-gradient(90deg, #ff0844, #ff5e7e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0px 2px 8px rgba(255, 8, 68, 0.3);
}

.fade-out-text {
  animation: fadeOut 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#restart-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff0844, #ff5e7e);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(255, 8, 68, 0.3);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#restart-btn svg {
  filter: drop-shadow(0px 1px 1px rgba(255, 255, 255, 0.5));
}

#restart-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 8, 68, 0.4);
}

/* Mobil uyumluluk */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }

  .audio-player {
    padding: 0.75rem;
  }
}
