/* ============================================================
   COMPONENTS.CSS - Ortak Bileşenler
   ------------------------------------------------------------
   Bu dosya, tüm sayfalarda kullanılan ortak bileşenleri içerir:
   - Menü linkleri
   - Mobil menü
   - Modal (RTÜK / Politika)
   - Radyo player butonu
   - Ortak gizli sınıf
   
   NOT: Sayfa özel stiller sections/ klasöründedir.
   ============================================================ */

/* ============================================================
   1. MENÜ LİNKLERİ
   ============================================================ */
.menu-link {
  font-size: 1rem;
  font-weight: 600;
  color: #d1d5db;
  transition: color 0.3s;
}

.menu-link:hover {
  color: #facc15;
}

.menu-link.active {
  color: #facc15;
}

/* ============================================================
   2. MOBİL MENÜ
   ============================================================ */
.mobile-menu {
  transition: max-height 0.3s ease-out;
}

/* ============================================================
   3. MODAL (RTÜK BİLGİLENDİRME / POLİTİKA)
   ============================================================ */
.modal-container {
  background-color: #000;
  color: #fff;
  border-radius: 1rem;
  max-width: 900px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(252, 211, 77, 0.3);
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.modal-header {
  position: sticky;
  top: 0;
  background-color: #000;
  border-bottom: 1px solid rgba(252, 211, 77, 0.3);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.modal-header h2 {
  font-size: 1.5rem;
  color: #facc15;
  margin: 0;
}

#closeModal {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

#closeModal:hover {
  color: #facc15;
}

.modal-content {
  padding: 1rem 1.5rem;
  overflow-y: auto;
  flex: 1;
  text-align: justify;
  word-break: break-word;
  scrollbar-width: thin;
  scrollbar-color: #facc15 #000;
}

.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { background: #000; }
.modal-content::-webkit-scrollbar-thumb {
  background-color: #facc15;
  border-radius: 4px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
  background-color: #eab308;
}

/* ============================================================
   4. RADYO PLAYER BUTONU
   ============================================================ */
#playButton,
#playButtonDesktop {
  animation: pulseGlow 1s infinite;
  filter: drop-shadow(0 0 10px rgb(255, 255, 255));
  transform: scale(1.1);
  position: relative;
  z-index: 10;
  margin-bottom: 55px;
}

#playButton:hover,
#playButtonDesktop:hover {
  transform: scale(1.25);
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 1));
}

#playButton:active,
#playButtonDesktop:active {
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7));
}

/* ============================================================
   5. ORTAK YARDIMCI SINIFLAR
   ============================================================ */

/* Gizli öğeler (tüm sayfalarda kullanılır) */
.gizli {
  display: none;
}

/* ============================================================
   6. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .modal-header h2 { font-size: 1.25rem; }
  .modal-content { padding: 0.8rem 1rem; }
}
/* ============================================================
   7. İTİRAF ET MENÜ ANİMASYONU
   ============================================================ */

.itiraf-container {
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.itiraf-word {
  display: flex;
  align-items: center;
  gap: 6px;
}

.itiraf-word span {
  font-size: 22px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px red;
  text-transform: uppercase;
  display: inline-block;
  animation: fillRed 2s ease-in-out infinite;
}

.itiraf-word .space {
  width: 1px;
  animation: none;
}

.itiraf-word span:nth-child(1) { animation-delay: 0s; }
.itiraf-word span:nth-child(2) { animation-delay: 0.15s; }
.itiraf-word span:nth-child(3) { animation-delay: 0.3s; }
.itiraf-word span:nth-child(4) { animation-delay: 0.45s; }
.itiraf-word span:nth-child(5) { animation-delay: 0.6s; }
.itiraf-word span:nth-child(6) { animation-delay: 0.75s; }
.itiraf-word span:nth-child(8) { animation-delay: 0.9s; }
.itiraf-word span:nth-child(9) { animation-delay: 1.05s; }

/* ============================================================
   8. BLINK ICON (Footer politika modal butonu için)
   ============================================================ */
@keyframes blinkIcon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.blink-icon {
  animation: blinkIcon 2.2s ease-in-out infinite;
  color: yellow !important;
}

/* ============================================================
   9. RADYO PLAYER LOGO
   ============================================================ */
.logo-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
}

.logo-img {
  margin-top: 50px;
  max-height: 150px;
  width: auto;
  object-fit: contain;
  opacity: 1;
  margin-bottom: 22px;
}

@media (max-width: 1024px) {
  .logo-img { max-height: 150px; }
}

@media (max-width: 768px) {
  .logo-img { max-height: 100px; }
}

@media (max-width: 480px) {
  .logo-img { max-height: 100px; }
}

/* ============================================================
   10. WHATSAPP FLOATING BUTTON
   ============================================================ */
#whatsapp-button {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 9999;
  background: #25d366;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease-in-out;
}

#whatsapp-button:hover {
  transform: scale(1.1);
}

#whatsapp-button img {
  width: 35px;
  height: 35px;
  filter: brightness(0) invert(1);
}