@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@font-face {
  font-family: 'PAGKAKI-Regular';
  src: url('../fonts/PAGKAKI-Regular.woff2') format('woff2'),
       url('../fonts/PAGKAKI-Regular.woff') format('woff');
  font-weight: 400; 
  font-style: normal;
  font-display: swap; 
}

:root {
  /* Color Palette based on Instagram Feed Concept */
  --primary: #7758A3;      /* Purple */
  --secondary: #db3e8c;    /* Magenta */
  --accent-1: #ffafeb;     /* Light Pink */
  --accent-2: #66a5ed;     /* Light Blue */
  --accent-3: #f6c45c;     /* Yellow/Orange */
  --dark: #000000;         /* Black */
  --light: #ffffff;        /* White */
  
  /* Gradients */
  --gradient-main: linear-gradient(135deg, var(--accent-1), var(--primary));
  --gradient-font: linear-gradient(135deg, var(--secondary), var(--accent-1));
  --gradient-fun: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  
  /* Typography */
  --font-heading: 'PAGKAKI-Regular', sans-serif;
  --font-body: 'Poppins', sans-serif;
  
  /* UI Elements */
  --border-radius: 16px;
  --box-shadow: 0 10px 30px rgba(119, 88, 163, 0.15);
  --box-shadow-hover: 0 15px 40px rgba(219, 62, 140, 0.25);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  /* Default background if no class is provided */
  background: linear-gradient(135deg, #ffafeb 0%, #b892ff 50%, #66a5ed 100%);
  background-attachment: fixed;
}

/* Page Specific Backgrounds based on provided gradients */
body.home-page {
  /* Yellow/Orange to Pink */
  background: linear-gradient(135deg, #facb6a 0%, #df69a6 100%);
  background-attachment: fixed;
}

body.profile-page {
  /* Blue to Pink */
  background: linear-gradient(135deg, #74aeee 0%, #f6a1e9 100%);
  background-attachment: fixed;
}

body.programs-page {
  /* Light Pink to Purple */
  background: linear-gradient(135deg, #e4a2e8 0%, #a282c6 100%);
  background-attachment: fixed;
}

body.announcer-page {
  /* Magenta to Light Pink */
  background: linear-gradient(135deg, #df4d9d 0%, #f7a9ec 100%);
  background-attachment: fixed;
}

body.music-news-page {
  /* Purple to Pink */
  background: linear-gradient(135deg, #b892ff 0%, #ffafeb 100%);
  background-attachment: fixed;
}

body.spotcast-page {
  /* Yellow to Blue */
  background: linear-gradient(135deg, #df4d9d 0%, #f6c45c 100%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  background: var(--gradient-font);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-text-stroke: 0.5px var(--light);
}

/* Reset heading style for specific titles */
.news-title, .fe-sub-title, .ep-title {
  font-family: var(--font-body);
  background: none;
  -webkit-text-fill-color: currentColor;
  color: inherit;
  -webkit-text-stroke: 0;
}


a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--light);
  box-shadow: 0 4px 15px rgba(119, 88, 163, 0.3);
}

.btn-primary:hover {
  background: var(--secondary);
  box-shadow: 0 6px 20px rgba(219, 62, 140, 0.4);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent-3);
  color: var(--dark);
  box-shadow: 0 4px 15px rgba(246, 196, 92, 0.3);
}

.btn-accent:hover {
  background: var(--light);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Shapes for decorative background (Instagram concept) */
.shape {
  position: absolute;
  z-index: -1;
}

.shape-star {
  width: 40px;
  height: 40px;
  background: var(--accent-3);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: rotate 20s linear infinite;
}

.shape-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-2);
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Header / Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(119, 88, 163, 0.1);
  padding: 15px 0;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links li a {
  font-weight: 500;
  color: var(--dark);
  transition: var(--transition);
  position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--secondary);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary);
}

/* Mobile menu open state (toggled via JS) */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  z-index: 999;
  box-sizing: border-box;
  gap: 15px;
}

/* Hero Section */
.hero {
  padding: 150px 0 80px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-main);
  color: var(--light);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="white" opacity="0.05"/></svg>') repeat;
  background-size: 150px;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 20px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent-3), #ff9a9e);
  color: var(--light);
  padding: 0 55px;
  border-radius: 55px;
  display: inline-block;
  transform: rotate(-2deg);
  font-family: 'Pagkaki', cursive;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Cards (Instagram Feed Style) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

.card {
  background: var(--light);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  border: 2px solid transparent;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--gradient-fun);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--accent-1);
}

.card-tag {
  background: var(--accent-2);
  color: var(--light);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 15px;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* Section specific */
.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 36px;
  color: var(--light);
  display: inline-block;
  position: relative;
  z-index: 1;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 120%;
  height: 30%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  z-index: -1;
  border-radius: 10px;
  opacity: 0.7;
  transform: rotate(-2deg);
}

/* Audio Player Bar */
.audio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
  z-index: 1000;
  border-top: 2px solid var(--accent-1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.audio-player.active {
  transform: translateY(0);
}

.player-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.now-playing-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.now-playing-img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: var(--gradient-fun);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.controls button {
  background: var(--primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.controls button:hover {
  background: var(--secondary);
  transform: scale(1.1);
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--light);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--accent-3);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  opacity: 0.7;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-1);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.6;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .hero h1 {
    font-size: 40px;
  }
}
/* =========================================
   NEW HOME PAGE COMPONENTS (WIREFRAME)
========================================= */

/* Hero Wave */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.hero-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}
.hero-wave .shape-fill {
  fill: rgba(255, 255, 255, 0.4);
}

/* Now Playing Banner */
.now-playing-banner {
  background: var(--light);
  border-radius: var(--border-radius);
  padding: 20px 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  box-shadow: var(--box-shadow);
  margin-top: -30px;
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
}

.visualizer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
}
.visualizer .bar {
  width: 6px;
  background: var(--primary);
  border-radius: 3px;
  animation: bounce 1s infinite alternate;
}
.visualizer .bar:nth-child(2) { animation-delay: 0.2s; background: var(--secondary); }
.visualizer .bar:nth-child(3) { animation-delay: 0.4s; background: var(--accent-1); }
.visualizer .bar:nth-child(4) { animation-delay: 0.1s; background: var(--accent-2); }
.visualizer .bar:nth-child(5) { animation-delay: 0.5s; background: var(--accent-3); }

@keyframes bounce {
  0% { height: 10px; }
  100% { height: 40px; }
}

.np-info h3 {
  color: var(--secondary);
  font-size: 20px;
  margin-bottom: 5px;
}
.np-info p {
  color: var(--dark);
  font-weight: 600;
}

/* Today's Schedule */
.schedule-container {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  max-width: 800px;
  margin: 0 auto;
}
.schedule-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px dashed var(--primary);
}
.schedule-item:last-child { border-bottom: none; }
.sch-time { width: 150px; font-weight: bold; color: var(--primary); }
.sch-name { flex: 1; font-weight: 700; font-size: 18px; }
.sch-status { padding: 5px 15px; border-radius: 20px; font-size: 12px; font-weight: bold; }
.sch-status.live { background: #4caf50; color: white; animation: pulse 2s infinite; }
.sch-status.next { background: var(--accent-3); color: var(--dark); }
.sch-status.pending { border: 1px solid var(--primary); color: var(--primary); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* Player Extensions */
.player-progress-container {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 20px;
}
.player-time { font-size: 12px; font-weight: bold; }
.player-bar {
  flex: 1;
  height: 6px;
  background: rgba(119, 88, 163, 0.2);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}
.player-fill {
  position: absolute;
  top: 0; left: 0; height: 100%;
  width: 45%;
  background: var(--secondary);
  border-radius: 3px;
}
.player-fill::after {
  content: '';
  position: absolute;
  right: -5px; top: -4px;
  width: 14px; height: 14px;
  background: var(--primary);
  border-radius: 50%;
}
.player-volume {
  font-size: 20px;
  cursor: pointer;
}

/* =========================================
   MUSIC CHARTS
========================================= */
.charts-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.chart-box {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.chart-title {
  background: var(--gradient-main);
  color: var(--light);
  padding: 15px 25px;
  font-size: 20px;
  font-weight: 800;
}

.chart-list {
  max-height: 600px;
  overflow-y: auto;
}

.chart-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(119, 88, 163, 0.1);
  transition: background 0.2s;
}

.chart-item:hover {
  background: rgba(119, 88, 163, 0.05);
}

.chart-item:last-child {
  border-bottom: none;
}

.chart-rank {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.chart-item:nth-child(1) .chart-rank { background: linear-gradient(135deg, #f6c45c, #e8a030); font-size: 16px; }
.chart-item:nth-child(2) .chart-rank { background: linear-gradient(135deg, #a0a0a0, #808080); }
.chart-item:nth-child(3) .chart-rank { background: linear-gradient(135deg, #cd7f32, #a0612a); }

.chart-trend {
  width: 40px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  margin: 0 12px;
  flex-shrink: 0;
}

.chart-trend.up { color: #4caf50; }
.chart-trend.down { color: #f44336; }
.chart-trend.same { color: #9e9e9e; }
.chart-trend.new {
  color: var(--light);
  background: var(--secondary);
  border-radius: 4px;
  font-size: 10px;
  padding: 2px 6px;
}

.chart-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chart-info strong {
  color: var(--dark);
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-info span {
  color: var(--accent-2);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .charts-wrapper {
    grid-template-columns: 1fr;
  }
}
