:root {
  --primary: #FF0000;
  --accent: #FFD700;
  --text: #FFFFFF;
  --border: rgba(255,255,255,0.2);
  --glow: rgba(255, 215, 0, 0.28);
  --blur-bg: rgba(255,255,255,0.14);
}

/* BODY */
body {
  margin: 0;
  background: url('../img/bg.webp') no-repeat center center fixed;
  background-size: cover;
  color: var(--text);
  font-family: 'Courgette', cursive;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: -1;
}

/* HEADER */
header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 15px 30px;
  background: var(--blur-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

header .logo img {
  height: 100px;
  width: auto;
  border-radius: 0;
  box-shadow: none;
}

/* PLAYER */
.player {
  max-width: 100%;
  margin: 40px auto;
  text-align: center;
  padding: 20px;
}

.player-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.artist-img {
  width: 280px;
  height: 280px;
  border-radius: 50%; /* Daire için %50 */
  object-fit: cover;
  margin-bottom: 10px;
  border: 4px solid var(--primary);
  box-shadow: 0 0 18px var(--glow), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.track-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  text-shadow: 0 0 6px rgba(0,0,0,0.5);
}

/* VISUALIZER */
.canvas-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 200px;
  height: 260px;
}

#visualizer {
  width: 100%;
  height: 30vh;
  max-height: 260px;
  background: transparent;
  border: none;
}

/* CONTROLS */
.controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100; /* Widget ile çakışmayı önledik */
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--blur-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text);
  font-size: 2.3rem;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 0 16px var(--glow), 0 4px 12px rgba(0,0,0,0.4);
}

.btn:hover {
  background: var(--hover-orange);
  transform: scale(1.05);
}

.btn:active {
  transform: scale(0.95);
  background: var(--active-orange);
}

#audio {
  display: none;
}

/* AUTOPLAY WARNING */
.warning {
  background: rgba(254,100,1,0.9);
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: var(--blur-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

footer .social {
  margin-top: 10px;
}

footer .social a {
  color: var(--text);
  margin: 0 8px;
  font-size: 1.4rem;
  transition: color 0.3s;
}

footer .social a:hover {
  color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .artist-img {
    width: 210px;
    height: 210px;
  }

  .btn {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .track-title {
    font-size: 1.4rem;
  }

  header {
    flex-direction: column;
    gap: 10px;
    justify-content: center;
  }

  .canvas-wrapper {
    height: 200px;
  }

  .warning {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}

/* WHATSAPP WIDGET */
#wa-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-family: Arial, sans-serif;
  z-index: 9999;
}

#wa-button {
  background: var(--primary);
  color: #fff;
  font-size: 28px;
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 15px var(--glow);
  transition: transform 0.3s ease;
}

#wa-button:hover {
  transform: scale(1.1);
}

#wa-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
}

#wa-chat {
  display: none;
  width: 280px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  overflow: hidden;
  position: fixed;
  bottom: 80px;
  right: 20px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 9999;
}

#wa-chat.show {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.wa-header {
  background: var(--primary);
  color: #fff;
  padding: 10px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wa-body {
  padding: 15px;
}

.wa-msg {
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

#wa-chat button {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: #f1f1f1;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 14px;
}

#wa-chat button:hover {
  background: var(--primary);
  color: #fff;
}

/* WhatsApp Mobil */
@media (max-width: 480px) {
  #wa-chat {
    width: 90%;
    right: 5%;
  }
}

/* OFFLINE PAGE */
body.offline-page {
  font-family: 'Courgette', cursive;
  text-align: center;
  background: url('../img/bg.webp') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  padding: 50px;
  position: relative;
}

body.offline-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: -1;
}

body.offline-page h1 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 20px;
}

body.offline-page p {
  margin-top: 20px;
  font-size: 1.1rem;
}
