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

body {
  font-family: 'Poppins', 'Tajawal', sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
}

.light-mode {
  background-color: #ffffff;
  color: #000000;
}

.dark-mode {
  background-color: #0e0e0e;
  color: #ffffff;
}

/* ✅ شريط التمرير */
.scroll-indicator {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1000;
  background: transparent;
}

.scroll-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #d4af37, #f8e473);
  transition: width 0.3s ease-in-out;
  border-radius: 0 4px 4px 0;
}

/* ✅ الشريط العلوي */
.top-bar {
  background-color: #214575;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 30px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  height: 54px;
}

/* ✅ أنميشن تفاعلي على لوجو الهيدر */
.logo-section a {
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-section a:hover {
  transform: scale(1.1) rotate(3deg);
  filter: drop-shadow(0 0 10px #d4af37);
  cursor: pointer;
}

/* ✅ زر الوضع الليلي - سويتش */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 34px;
  transition: 0.4s;
}

body.light-mode .slider {
  background-color: #ccc;
}

body.dark-mode .slider {
  background-color: #3ebdfc;
}

.slider::before {
  content: "☀️";
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  color: #000;
  transition: 0.4s;
  border-radius: 50%;
  position: absolute;
}

input:checked + .slider::before {
  content: "🌙";
  transform: translateX(26px);
  color: #fff;
  background-color: #222;
}

/* ✅ القسم الرئيسي */
.main-section {
  padding: 130px 20px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative; /* مهم للتزيين */
}

.main-title {
  font-size: 48px;
  margin-bottom: 30px;
  font-weight: bold;
}

.modern-text {
  font-family: 'Poppins', sans-serif;
  font-size: 54px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.4s ease;
}

@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}

.shimmer-text {
  background: linear-gradient(90deg, #d4af37, #ffffff, #d4af37);
  background-size: 800px 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s infinite;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* ✅ البطاقة */
.podcast-card {
  margin-top: 0;
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.podcast-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.image-container {
  position: relative;
  transition: transform 0.5s ease;
}

.image-container img {
  width: 320px;
  border-radius: 12px;
  display: block;
}

.podcast-card:hover .image-container {
  transform: translateX(-10px);
}

.episode-title {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 14px;
  color: white;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
}

/* ✅ وصف البودكاست */
.podcast-description {
  max-width: 600px;
  text-align: right;
  font-size: 16px;
  line-height: 1.8;
  background-color: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease-in-out;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.podcast-card:hover .podcast-description {
  opacity: 1;
  transform: translateX(0);
  height: auto;
  pointer-events: auto;
}

/* ✅ التزيين */
.decoration {
  position: absolute;
  width: 50px;
  opacity: 0.7;
  z-index: 1;
}

.deco1 {
  top: 60px;
  left: 20px;
  transform: rotate(-15deg);
}

.deco2 {
  top: 200px;
  right: 30px;
  transform: rotate(12deg);
}

.deco3 {
  bottom: 160px;
  left: 25px;
  transform: rotate(-8deg);
}

.deco4 {
  bottom: 120px;
  right: 40px;
  width: 60px;
  transform: rotate(10deg);
}

/* ✅ الفوتر */
.footer {
  background-color: #214575;
  color: white;
  text-align: center;
  padding: 50px 20px 30px;
  margin-top: 60px;
}

.footer-logo img,
.footer-logo-img {
  width: 140px;
  height: auto;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.social-icons img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: transform 0.3s;
}

.social-icons img:hover {
  transform: scale(1.1);
}

/* ✅ السطر الموحد للفوتر */
.single-line-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
}

.single-line-footer a {
  color: #00eaff;
  text-decoration: none;
  margin: 0 5px;
  font-weight: bold;
}

/* ✅ موبايل */
@media (max-width: 768px) {
  .modern-text {
    font-size: 38px;
  }

  .podcast-card {
    flex-direction: column;
    align-items: center;
  }

  .image-container img {
    width: 90%;
  }

  .podcast-description {
    text-align: center;
  }

  .header-logo {
    height: 60px;
  }

  .social-icons img {
    width: 40px;
    height: 40px;
  }

  .footer-logo-img {
    width: 100px;
  }

  .decoration {
    display: none;
  }
}
