/*
Theme Name: Chale Radio
Theme URI: https://chaleradio.com
Description: A vibrant and immersive radio station website with live streaming, show schedules, and news.
Version: 1.0.0
Author: Chale Radio
Author URI: https://chaleradio.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chale-radio
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: #000; color: #fff; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; overflow: hidden; }
#app { position: relative; width: 100vw; height: 100vh; background: #000; overflow: hidden; }
#app:before { content: ""; position: absolute; inset: 0; background-image: url('https://i.imgur.com/TonBBgd.png'); background-size: cover; background-position: center; opacity: 0.82; filter: saturate(0.9); transform: scale(1.02); }
#app:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,.04), rgba(0,0,0,.75)); }
.particles { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.particle { position: absolute; color: #ffffff; animation: drift 20s linear infinite; text-shadow: 0 0 8px rgba(255,255,255,.8); opacity: 0.8; }
@keyframes drift { 0% { transform: translate(0, -20px) rotate(0deg); opacity: .05; } 50% { opacity: .35; } 100% { transform: translate(0, 110vh) rotate(360deg); opacity: .05; } }
.cursor-trail { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 30; transform: translate(-50%, -50%); font-size: 1.1rem; }
.cursor-music { position: absolute; pointer-events: none; opacity: 1; animation: float-away 0.8s ease-out forwards; }
@keyframes float-away { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(0, -28px) scale(1.1); } }
.header, .footer { position: absolute; left: 0; width: 100%; z-index: 20; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.header { top: 0; }
.footer { bottom: 0; flex-wrap: wrap; gap: .75rem; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-icon { width: 2.4rem; height: 2.4rem; border-radius: 999px; background: #ff6321; display: grid; place-items: center; box-shadow: 0 4px 20px rgba(255, 99, 33, .3); }
.brand-name { font-weight: 800; font-size: 1.45rem; letter-spacing: .015em; text-transform: uppercase; font-style: italic; }
.brand-name span { color: #ff6321; }
.nav-links { display: flex; gap: 1rem; }
.nav-links a { color: rgba(255,255,255,.6); font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; transition: color .2s ease; }
.nav-links a:hover { color: white; }
.main-card { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 2.5rem; }
.card { width: min(96vw, 520px); background: rgba(18, 20, 22, .92); border: 1px solid rgba(255,255,255,.08); border-radius: 1.25rem; backdrop-filter: blur(16px); box-shadow: 0 15px 40px rgba(0,0,0,.6); padding: 1.25rem; }
.station-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1rem; }

/* Mobile responsiveness */
@media (max-width: 980px) {
  .header,
  .footer {
    padding: 0.85rem 1rem;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .nav-links {
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    font-size: 0.62rem;
  }

  .main-card {
    padding: 1.5rem;
  }

  .card {
    width: min(90vw, 480px);
    padding: 1rem;
  }

  .station-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .station-actions {
    width: 100%;
    display: flex;
    gap: 0.4rem;
    justify-content: flex-start;
  }

  .controls {
    flex-direction: column;
    gap: 0.75rem;
  }

  .volume-box {
    width: 100%;
  }

  input.volume-slider {
    width: 100%;
  }

  .footer {
    margin-top: 0.25rem;
    padding: 0.8rem 1rem;
  }

  .listener p {
    font-size: 0.8rem;
  }

  .listener-avatars {
    gap: 0.45rem;
  }

  .icon-btn {
    min-width: 2.4rem;
    min-height: 2.4rem;
    padding: 0.45rem 0.7rem;
  }
}

@media (max-width: 640px) {
  body {
    overflow: auto;
  }

  #app {
    min-height: 100vh;
  }

  #app:before {
    background-size: auto 115%;
    background-position: left 13% top 70%;
    transform: scale(1);
  }

  .header,
  .footer {
    width: 100%;
    justify-content: space-between;
    padding: 0.7rem 0.8rem;
  }

  .header {
    position: relative;
  }

  .footer {
    position: absolute;
    bottom: 0;
    left: 0;
  }

  .brand-name {
    font-size: 0.92rem;
  }

  .nav-links {
    display: none !important;
  }

  .footer-divider {
    display: none !important;
  }

  .main-card {
    padding: 0.8rem;
    align-items: center;
    justify-items: center;
    max-width: 100%;
    height: auto;
    min-height: 100vh;
    margin-top: 0.5rem;
  }

  .card {
    width: min(88vw, 340px);
    max-width: 90vw;
    margin: 0 auto;
    border-radius: 1rem;
    padding: 0.9rem;
  }

  .controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
  }

  .station-title { font-size: 1.2rem; }
  .status-badge { font-size: 0.58rem; }
  .play-btn { width: 3rem; height: 3rem; font-size: 1rem; }
  .volume-meta { font-size: 0.58rem; }

  .footer {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  .listener {
    width: 100%;
  }

  .listener p {
    font-size: 0.75rem;
  }
}

.station-title { font-size: 1.75rem; font-weight: 800; }
.status-badge { display: inline-flex; align-items: center; gap: .5rem; opacity: .65; font-size: .625rem; letter-spacing: .15em; text-transform: uppercase; }
.status-dot { width: .4rem; height: .4rem; background: #ff0000; border-radius: 999px; animation: pulse 1.2s infinite ease-in-out; }
@keyframes pulse { 0%,100% { transform: scale(.8); opacity: .6; } 50% { transform: scale(1.2); opacity: 1; } }
.controls { display: flex; align-items: center; gap: 1rem; }
.play-btn { width: 3.5rem; height: 3.5rem; border-radius: 999px; border: none; background: white; color: #000; font-size: 1.2rem; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 25px rgba(255,255,255,.2); transition: transform .18s ease; }
.play-btn:hover { transform: scale(1.05); }
.play-btn:active { transform: scale(.94); }
.volume-box { flex: 1; display: grid; gap: .55rem; }
.volume-meta { display: flex; justify-content: space-between; align-items: center; font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.63); }
.volume-row { display: flex; align-items: center; gap: .6rem; }
.icon-btn { width: 1.6rem; height: 1.6rem; border: none; background: transparent; color: rgba(255,255,255,.65); cursor: pointer; transition: color .2s ease; }
.icon-btn:hover { color: white; }
.volume-slider-wrap { flex: 1; height: .5rem; background: rgba(255,255,255,.12); border-radius: 999px; position: relative; overflow: hidden; }
.volume-fill { position: absolute; inset: 0; width: 80%; background: linear-gradient(90deg, #ff6321, #ffa356); border-radius: 999px; }
.volume-slider { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.footer a, .footer p { color: rgba(255,255,255,.42); font-size: .65rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; }
.footer .listener { display: flex; align-items: center; gap: .5rem; }
.listener-avatars { display: flex; align-items: center; gap: -0.4rem; }
.avatar { width: 2rem; height: 2rem; border: 2px solid #000; border-radius: 999px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.footer-divider { width: 1px; height: 1.1rem; background: rgba(255,255,255,.1); }
@media (max-width: 780px) {
  .header, .footer { padding-left: .8rem; padding-right: .8rem; }
  .station-title { font-size: 1.35rem; }
  .card { width: 95vw; padding: 1rem; }
  .nav-links { display: none; }
}
