/* ===== Way of Holiness Radio Custom Styles ===== */

body {
  font-family: 'Nunito', sans-serif;
  background-color: #f9f9f9;
  color: #222;
  margin: 0;
  padding-top: calc(60px + env(safe-area-inset-top)); /* 60px header + notch */
}

/* Theme colors */
.w3-theme {
  background-color: #1a1a1a !important; /* Dark header/nav */
  color: #fff !important;
}

.w3-theme-light {
  background-color: #f9f9f9 !important;
  color: #222 !important;
}

.w3-theme-darker {
  background-color: #000000 !important;
  color: #fff !important;
}

.w3-accent {
  background-color: #1e4e8c !important; /* Deep blue accent */
  color: #fff !important;
}

/* Buttons */
.w3-button.w3-theme:hover {
  background-color: #333333 !important;
}

.w3-button.w3-accent:hover {
  background-color: #1660b3 !important; /* brighter blue hover */
}

/* Card look */
.app-card {
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 16px;
  margin: 16px auto; /* auto centers horizontally */
  background: #fff;
  max-width: 480px; /* same max width for all cards */
  width: 90%;       /* responsive width for smaller screens */
  box-sizing: border-box; /* ensure padding doesn’t break width */
  text-align: center; /* center text inside */
}

/* Player */
#player {
  width: 100%;
  margin-top: 12px;
  border-radius: 8px;
}

/* ===== Header ===== */
.header {
  background: #5A7080; /* dusty blue / blue-gray */
  color: #fff;
  position: fixed; /* w3-top already does this */
  top: env(safe-area-inset-top); /* pushes header below notch */
  left: 0;
  right: 0;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 12px;
  padding-right: 12px;
  font-size: 1.2em;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 9999; /* make sure it's on top */
}



/* ===== Icon styling ===== */
.icon {
  width: 32px;
  height: 32px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}

/* Example icons */
.icon-home { background-image: url("../icons/home.png"); }
.icon-music { background-image: url("../icons/music.png"); }
.icon-user { background-image: url("../icons/user.png"); }


.player-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.progress-circle {
  position: relative;
  width: 180px;
  height: 180px;
}

.progress-circle img.album {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.progress-circle svg {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
  z-index: 1;
}

circle.bg {
  fill: none;
  stroke: #eee;
  stroke-width: 12;
}

circle.progress {
  fill: none;
  stroke: #4a6d82;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 339.292; /* 2πr */
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 0.2s linear;
}

.controls {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.controls button {
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: #4a6d82;
  padding: 10px;
}

.controls button:active {
  transform: scale(0.9);
}