/* ============================================================
   MTGBox Help Popup — beyaz kart, mtgbox aksanları
   tagadres ile çakışmamak için tüm sınıflar `help-popup-`
   prefixiyle scoped.
   ============================================================ */

/* Renk değişkenleri yerel (mtgbox-main.css yüklü olmazsa da çalışır) */
.help-popup-section {
  --mtg-yellow: #FFD42A;
  --mtg-green-1: #0F2210;
}

/* OVERLAY */
.help-popup-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 34, 16, 0.65);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 20px;
  box-sizing: border-box;
}

.help-popup-section.slr-hidden {
  display: none !important;
}

/* KART (beyaz) */
.help-popup-content-wrapper {
  background-color: #ffffff;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  padding: 36px 32px 28px;
  position: relative;
  box-shadow:
    0 24px 60px -16px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 212, 42, 0.18);
  max-height: 88vh;
  overflow-y: auto;
  animation: helpPopupFadeIn 0.35s cubic-bezier(.2, .8, .2, 1);
  box-sizing: border-box;
}

@keyframes helpPopupFadeIn {
  from { opacity: 0; transform: translateY(-16px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* KAPATMA BUTONU */
.help-popup-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000 !important;
  border: 1px solid #000 !important;
  border-radius: 50%;
  font-size: 21px !important;
  line-height: 1;
  color: #fff !important;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease;
  padding: 0;
}

.help-popup-close:hover,
.help-popup-close:focus-visible {
  background: #1a1a1a !important;
  color: #fff !important;
  transform: rotate(90deg);
  outline: none;
}

/* HEADER */
.help-popup-header {
  text-align: center;
  margin-bottom: 24px;
}

.help-popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 800 11px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #555;
  background: rgba(255, 212, 42, 0.12);
  border: 1px solid rgba(255, 212, 42, 0.45);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.help-popup-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mtg-yellow);
  box-shadow: 0 0 10px var(--mtg-yellow);
}

.help-popup-title {
  font: 900 26px/1.1 'Nunito', system-ui, sans-serif;
  letter-spacing: -.7px;
  color: var(--mtg-green-1);
  margin: 0 0 8px;
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
}

.help-popup-accent {
  color: var(--mtg-green-1);
  background: linear-gradient(180deg, transparent 60%, rgba(255, 212, 42, 0.55) 60%);
  padding: 0 2px;
}

.help-popup-desc {
  margin: 0 auto;
  max-width: 380px;
  color: #555;
  font-size: 14px;
  line-height: 1.55;
}

/* İLETİŞİM BUTONLARI */
.help-popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.help-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  border: 1px solid transparent;
}

.help-btn:hover {
  transform: translateY(-2px);
}

.help-btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.help-btn-icon svg {
  width: 18px;
  height: 18px;
}

.help-btn-content {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.help-btn-label {
  font: 700 10px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 1.5px;
  opacity: .8;
  text-transform: uppercase;
}

.help-btn-text {
  font: 900 17px/1.15 'Nunito', system-ui, sans-serif;
  letter-spacing: -.2px;
  margin-top: 4px;
  word-break: break-word;
}

/* HEMEN ARA (sarı gradient) */
.help-btn-phone {
  background: linear-gradient(135deg, var(--mtg-yellow), #FFD42A);
  color: var(--mtg-green-1);
  border-color: rgba(255, 212, 42, .6);
  box-shadow: 0 12px 28px -10px rgba(255, 212, 42, .55);
}
.help-btn-phone:hover {
  box-shadow: 0 18px 36px -10px rgba(255, 212, 42, .7);
}
.help-btn-phone .help-btn-icon {
  background: var(--mtg-green-1);
  color: var(--mtg-yellow);
}

/* WHATSAPP */
.help-btn-wa {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  box-shadow: 0 12px 28px -10px rgba(37, 211, 102, .55);
}
.help-btn-wa:hover {
  background: #20BD5A;
  box-shadow: 0 18px 36px -10px rgba(37, 211, 102, .7);
}
.help-btn-wa .help-btn-icon {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

/* E-POSTA */
.help-btn-mail,
.help-btn-mail:hover,
.help-btn-mail:focus,
.help-btn-mail:visited,
.help-btn-mail:active {
  color: #fff !important;
}
.help-btn-mail {
  background: #181818;
  border-color: #000;
  box-shadow: 0 12px 28px -10px rgba(255, 212, 42, .4);
}
.help-btn-mail:hover {
  background: #1a1a1a;
  box-shadow: 0 18px 36px -10px rgba(0, 0, 0, .55);
}
.help-btn-mail .help-btn-icon {
  background: rgba(255, 255, 255, .15);
  color: var(--mtg-yellow);
}

/* ADRES */
.help-popup-address {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 212, 42, .45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  color: #555;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}

.help-popup-pin {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--mtg-yellow);
  margin-top: 1px;
}

/* MOBİL UYUM */
@media (max-width: 480px) {
  .help-popup-content-wrapper {
    padding: 28px 20px 22px;
    border-radius: 16px;
    max-height: 90vh;
  }

  .help-popup-title {
    font-size: 22px;
  }

  .help-popup-desc {
    font-size: 12.5px;
  }

  .help-popup-badge {
    font-size: 9px;
    letter-spacing: 1.5px;
    padding: 6px 12px;
  }

  .help-btn {
    padding: 10px 14px;
    gap: 10px;
    border-radius: 12px;
  }

  .help-btn-icon {
    width: 34px;
    height: 34px;
  }

  .help-btn-icon svg {
    width: 15px;
    height: 15px;
  }

  .help-btn-label {
    font-size: 9px;
  }

  .help-btn-text {
    font-size: 14px;
  }

  .help-popup-address {
    font-size: 11.5px;
  }
}

/* Sticky elementlerle çakışma önleme (mevcut davranış korunur) */
.help-popup-section ~ .woocommerce-product-gallery,
.help-popup-section ~ .entry-summary {
  z-index: auto !important;
}
