/* إعدادات عامة */
body.body-style {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  background-color: #f5f5f5;
  direction: rtl;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

/* شريط علوي */
.navbar {
  background-color: #214577;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 55px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  width: 80px;
  height: auto;
  object-fit: contain;
  cursor: pointer;
}

/* سويتش الوضع الداكن */
.dark-mode-container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
  user-select: none;
}

.mode-label {
  font-size: 1.5em;
  transition: color 0.3s ease;
}

.dark-mode .mode-label {
  color: #e0b84c;
}

.dark-mode-switch {
  position: relative;
  width: 50px;
  height: 24px;
  background-color: #ccc;
  border-radius: 50px;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.4s ease;
  outline: none;
  border: none;
}

.dark-mode-switch::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background-color: white;
  border-radius: 50%;
  top: 1px;
  left: 1px;
  transition: 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.dark-mode-switch:checked {
  background-color: #e0b84c;
}

.dark-mode-switch:checked::before {
  transform: translateX(26px);
}

/* شريط تحميل */
.loading-bar {
  height: 4px;
  background-color: #e0b84c;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  transition: width 0.1s;
}

/* زر مشاهدة الآن */
.watch-trigger-section {
  margin-top: 90px;
  text-align: center;
}

.watch-button {
  background-color: #e0b84c;
  color: white;
  font-size: 1.1em;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.watch-button:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

/* الفيديو */
.video-section {
  padding: 40px 20px;
  text-align: center;
}

.video-title-container {
  margin-bottom: 15px;
}

.video-title {
  background: #e0b84c;
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: bold;
  display: inline-block;
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: auto;
}

.video-frame {
  width: 85%;
  height: 50vh;
  max-width: 1000px;
  border-radius: 15px;
  margin-top: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

/* الحلقات */
.episodes-container {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.episode-box {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 20px rgba(224, 184, 76, 0.2);
  transition: all 0.3s ease;
}

.episode-box:hover {
  box-shadow: 0 0 25px rgba(224, 184, 76, 0.4);
  transform: scale(1.02);
}

.episode-text {
  font-size: 1.2em;
  font-weight: 600;
  color: #333;
  max-width: 70%;
}

.gold-button {
  background-color: #e0b84c;
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
}

.gold-button:hover {
  background-color: #d1a425;
}

/* دارك مود */
.dark-mode .episode-box {
  background-color: #1e1e1e;
}

.dark-mode .episode-text {
  color: #fff;
}

.dark-mode .video-title {
  background: #e0b84c;
  color: #000;
}

.dark-mode .video-frame {
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.dark-mode .watch-button,
.dark-mode .gold-button {
  color: black;
}

.dark-mode .watch-button:hover,
.dark-mode .gold-button:hover {
  background-color: #e0b84c;
}

/* responsive */
@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;
  }
}