/*
Theme Name: Fajri 952 FM
Theme URI: https://fajri952fm.com
Author: Fajri 952 FM
Author URI: https://fajri952fm.com
Description: Tema modern islami untuk radio streaming Fajri 952 FM
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fajri952fm
*/

:root {
  --green-dark: #0a3d1f;
  --green-mid: #145a32;
  --green-light: #1e8449;
  --green-accent: #27ae60;
  --gold: #d4ac0d;
  --gold-light: #f1c40f;
  --white: #ffffff;
  --off-white: #f8fdf9;
  --gray-light: #e8f5e9;
  --gray: #95a5a6;
  --text-dark: #1a1a1a;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* NAVBAR */
nav {
  background: var(--green-dark);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo .logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-logo .logo-text {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.nav-logo .logo-text span {
  color: var(--gold-light);
  display: block;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s;
  letter-spacing: 0.5px;
}

.nav-menu a:hover { color: var(--gold-light); }

.nav-social {
  display: flex;
  gap: 12px;
}

.nav-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.3s;
}

.nav-social a:hover { background: var(--gold); }

/* HERO */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-mid) 50%, var(--green-light) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-bismillah {
  font-family: 'Amiri', serif;
  color: var(--gold-light);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeDown 1s ease 0.2s forwards;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeDown 1s ease 0.4s forwards;
}

.hero-title span { color: var(--gold-light); }

.hero-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  text-align: center;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeDown 1s ease 0.6s forwards;
}

/* PLAYER */
.player-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 2.5rem;
  width: 100%;
  max-width: 600px;
  text-align: center;
  opacity: 0;
  animation: fadeUp 1s ease 0.8s forwards;
  position: relative;
  z-index: 1;
}

.on-air-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e74c3c;
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.on-air-badge .dot {
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
  animation: blink 1s infinite;
}

.now-playing-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.now-playing-title {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.now-playing-artist {
  color: var(--gold-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.visualizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 50px;
  margin-bottom: 2rem;
}

.bar {
  width: 4px;
  background: linear-gradient(to top, var(--gold), var(--green-accent));
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}

.bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.bar:nth-child(2) { height: 35px; animation-delay: 0.1s; }
.bar:nth-child(3) { height: 50px; animation-delay: 0.2s; }
.bar:nth-child(4) { height: 30px; animation-delay: 0.3s; }
.bar:nth-child(5) { height: 45px; animation-delay: 0.4s; }
.bar:nth-child(6) { height: 25px; animation-delay: 0.5s; }
.bar:nth-child(7) { height: 40px; animation-delay: 0.6s; }
.bar:nth-child(8) { height: 15px; animation-delay: 0.7s; }
.bar:nth-child(9) { height: 35px; animation-delay: 0.8s; }
.bar:nth-child(10) { height: 50px; animation-delay: 0.9s; }
.bar:nth-child(11) { height: 28px; animation-delay: 1.0s; }
.bar:nth-child(12) { height: 42px; animation-delay: 1.1s; }

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.btn-play {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 25px rgba(212,172,13,0.4);
  color: var(--green-dark);
}

.btn-play:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(212,172,13,0.5);
}

.btn-secondary {
  width: 45px; height: 45px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
  transition: background 0.2s;
}

.btn-secondary:hover { background: rgba(255,255,255,0.2); }

.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  justify-content: center;
}

.volume-slider {
  -webkit-appearance: none;
  width: 120px; height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  background: var(--gold-light);
  border-radius: 50%;
  cursor: pointer;
}

/* SCHEDULE */
.schedule-section {
  background: var(--green-dark);
  padding: 5rem 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title .arabic {
  font-family: 'Amiri', serif;
  color: var(--gold-light);
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title h2 {
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
}

.section-title h2 span { color: var(--gold-light); }
.section-title p { color: rgba(255,255,255,0.5); margin-top: 0.5rem; font-size: 0.9rem; }

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.schedule-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}

.schedule-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--gold);
  border-radius: 4px 0 0 4px;
}

.schedule-item:hover { transform: translateY(-4px); background: rgba(255,255,255,0.08); }
.schedule-time { color: var(--gold-light); font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; margin-bottom: 0.5rem; }
.schedule-show { color: var(--white); font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.schedule-host { color: rgba(255,255,255,0.5); font-size: 0.8rem; }

/* ARTICLES */
.articles-section { padding: 5rem 2rem; background: var(--off-white); }
.articles-section .section-title h2 { color: var(--green-dark); }
.articles-section .section-title p { color: var(--gray); }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.article-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover { transform: translateY(-6px); box-shadow: 0 12px 35px rgba(0,0,0,0.12); }

.article-img {
  height: 180px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.article-body { padding: 1.5rem; }
.article-tag { display: inline-block; background: var(--gray-light); color: var(--green-mid); padding: 3px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-bottom: 0.8rem; }
.article-title { font-size: 1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.5rem; line-height: 1.4; }
.article-excerpt { color: var(--gray); font-size: 0.85rem; line-height: 1.6; margin-bottom: 1rem; }
.article-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--gray); }
.read-more { color: var(--green-accent); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.read-more:hover { color: var(--green-dark); }

/* CHAT */
.chat-section { background: var(--green-mid); padding: 5rem 2rem; }
.chat-container { max-width: 600px; margin: 0 auto; }

.chat-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  height: 300px;
  padding: 1.5rem;
  overflow-y: auto;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message { display: flex; gap: 10px; align-items: flex-start; }
.chat-avatar { width: 32px; height: 32px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--green-dark); font-weight: 700; flex-shrink: 0; }
.chat-bubble { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 0.6rem 1rem; flex: 1; }
.chat-name { color: var(--gold-light); font-size: 0.75rem; font-weight: 600; margin-bottom: 0.2rem; }
.chat-text { color: rgba(255,255,255,0.8); font-size: 0.85rem; }
.chat-input-row { display: flex; gap: 10px; }
.chat-input { flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 0.8rem 1.2rem; color: white; font-family: 'Poppins', sans-serif; font-size: 0.85rem; outline: none; }
.chat-input::placeholder { color: rgba(255,255,255,0.3); }
.chat-send { background: var(--gold); border: none; border-radius: 12px; padding: 0.8rem 1.5rem; color: var(--green-dark); font-weight: 600; cursor: pointer; font-family: 'Poppins', sans-serif; transition: background 0.2s; }
.chat-send:hover { background: var(--gold-light); }

/* FOOTER */
footer { background: var(--green-dark); padding: 3rem 2rem 1.5rem; text-align: center; border-top: 1px solid rgba(212,172,13,0.2); }
.footer-logo { font-family: 'Amiri', serif; color: var(--gold-light); font-size: 1.8rem; margin-bottom: 0.5rem; }
.footer-tagline { color: rgba(255,255,255,0.4); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1.5rem; }
.footer-social { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.footer-social a { width: 40px; height: 40px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; font-size: 0.9rem; transition: background 0.3s, border-color 0.3s; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--green-dark); }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 0.75rem; }

/* CONTENT AREA */
.content-area { max-width: 1100px; margin: 0 auto; padding: 5rem 2rem; }
.page-title { color: var(--green-dark); font-size: 2rem; font-weight: 700; margin-bottom: 2rem; }
.wp-content img { max-width: 100%; border-radius: 12px; }
.wp-content p { line-height: 1.8; margin-bottom: 1rem; color: var(--text-dark); }

/* ANIMATIONS */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes wave { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hero-title { font-size: 2.2rem; }
  .player-card { padding: 1.5rem; }
}
