/* ===============================
      CYBERSHIELDY CUSTOM HEADER FIX
      Mobil + Tablet + Desktop
   =============================== */

/* --- HEADER OVERALL OPTIMIZATION --- */
#topbar-wrapper {
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
  z-index: 9999 !important;
}

.site-title {
  display: block !important;
  font-weight: 700 !important;
  word-break: break-word !important;
  white-space: normal !important;
  line-height: 1.25 !important;
}

/* --- PAGE HEADER FIX (POST TITLES) --- */
.page-header {
  margin-top: 1.5rem !important;
  padding-top: 0.5rem !important;
}

.page-header .page-title {
  font-size: 1.45rem;
  line-height: 1.3;
  word-break: break-word !important;
  white-space: normal !important;
  margin-bottom: 0.6rem;
}

/* ===============================
      MOBILE BREAKPOINT FIX
      (Mobilda başlığın yuxarı hissədə düzgün yerleşməsi)
   =============================== */
@media (max-width: 600px) {

  /* Yuxarı margin-top və padding tənzimlənməsi */
  #topbar-wrapper {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  /* Səhifə başlığına uyğun ölçü və margin */
  .page-header {
    margin-top: 3rem !important; /* Topbar ilə arasında məsafəni artır */
    padding-top: 0.3rem !important;
  }

  .page-header .page-title {
    font-size: 1.2rem !important;
    text-align: center !important; /* Başlığı mərkəzləşdir */
  }
}

/* --- VERY SMALL PHONES (<400px) --- */
@media (max-width: 400px) {
  #topbar-wrapper {
    padding-top: 0.75rem !important;
  }

  .page-header {
    margin-top: 2.8rem !important;
  }

  .page-header .page-title {
    font-size: 1rem !important;
  }
}

/* --- TABLET FIX (600–900px) --- */
@media (min-width: 600px) and (max-width: 900px) {
  .page-header {
    margin-top: 2rem !important;
  }

  .page-header .page-title {
    font-size: 1.35rem !important;
  }
}

/* --- DESKTOP CLEANUP --- */
@media (min-width: 900px) {
  .page-header {
    margin-top: 2rem !important;
  }

  .page-header .page-title {
    font-size: 1.55rem !important;
  }
}

/* --- OPTIONAL: BEAUTIFY HEADER BAR --- */
#topbar-wrapper {
  backdrop-filter: blur(6px);
}

/* ===============================
   CYBER POPUP – KIBER DERS REKLAMI
   =============================== */

.cyber-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.popup-box {
  position: relative;
  background: #0b1220;
  border: 1px solid #00ff99;
  padding: 30px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  color: #fff;
  box-shadow: 0 0 30px #00ff99;
}

.popup-box h2 {
  color: #00ff99;
  margin-bottom: 10px;
}

.popup-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 22px;
  background: #00ff99;
  color: #000;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
}

.popup-btn:hover {
  background: #00cc7a;
}

.popup-close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}
