/* ===== POPUP TASARIMI - İletişim & Teklif Formları ===== */

/* Arka plan overlay - popup açıkken */
.mfp-bg.mfp-ready {
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.mfp-fade.mfp-bg {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mfp-fade.mfp-ready.mfp-bg {
  opacity: 1;
}
.mfp-fade.mfp-removing.mfp-bg {
  opacity: 0;
}

/* Popup kutusu - giriş/çıkış animasyonu */
.mfp-fade .mfp-content {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mfp-fade.mfp-ready .mfp-content {
  opacity: 1;
  transform: scale(1);
}
.mfp-fade.mfp-removing .mfp-content {
  opacity: 0;
  transform: scale(0.96);
}

/* Scope everything to the popup id to avoid bleed */
#iletisim-popup.white-popup,
#teklif-popup.white-popup,
#yorum-popup.white-popup {
  position: relative;
  background: #ffffff;
  padding: 0;
  width: 100%;
  max-width: 560px;
  margin: 30px auto;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

#iletisim-popup .popup-iletisim-container,
#yorum-popup .popup-iletisim-container {
  position: relative;
  padding: 48px 40px 40px;
  background: linear-gradient(160deg, #ffffff 0%, #f8f9fc 100%);
}

#iletisim-popup .popup-title,
#yorum-popup .popup-title {
  margin: 0 0 28px 0;
  font-size: 24px;
  font-weight: 700;
  color: #111;
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--main-color, #ff9500);
  letter-spacing: -0.02em;
}

#iletisim-popup .white-form.mt-60,
#yorum-popup .white-form.mt-60 { margin-top: 0; }
#iletisim-popup .white-form .row,
#yorum-popup .white-form .row { margin: 0 -10px; }
#iletisim-popup .white-form .row > [class*="col-"],
#yorum-popup .white-form .row > [class*="col-"] { padding: 0 10px; }

#iletisim-popup .white-form .g-recaptcha,
#yorum-popup .white-form .g-recaptcha {
	margin-bottom: 20px;
	display: flex;
	justify-content: center;
}

#iletisim-popup .white-form input[type="text"],
#iletisim-popup .white-form input[type="email"],
#iletisim-popup .white-form input[type="tel"],
#iletisim-popup .white-form textarea,
#yorum-popup .white-form input[type="text"],
#yorum-popup .white-form input[type="email"],
#yorum-popup .white-form input[type="tel"],
#yorum-popup .white-form textarea {
  width: 100%;
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  color: #333;
  transition: .25s;
  box-sizing: border-box;
  margin-bottom: 18px;
}

#iletisim-popup .white-form textarea,
#yorum-popup .white-form textarea {
  min-height: 140px;
  resize: vertical;
}

#iletisim-popup .white-form input::placeholder,
#iletisim-popup .white-form textarea::placeholder,
#yorum-popup .white-form input::placeholder,
#yorum-popup .white-form textarea::placeholder { color: #98a2ad; }

#iletisim-popup .white-form input:focus,
#iletisim-popup .white-form textarea:focus,
#yorum-popup .white-form input:focus,
#yorum-popup .white-form textarea:focus {
  outline: none;
  border-color: var(--main-color, #ff9500);
  box-shadow: 0 0 0 4px rgba(255, 149, 0, .15);
}

#iletisim-popup .white-form .button-sm.primary-button.semi-rounded.full-width,
#yorum-popup .white-form .button-sm.primary-button.semi-rounded.full-width {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 15px 22px;
  font-weight: 700;
  letter-spacing: .3px;
  color: #fff;
  background: linear-gradient(135deg, #ff9500 0%, #ff7700 100%);
  box-shadow: 0 8px 22px rgba(255, 149, 0, .35);
  transition: .25s transform, .25s box-shadow;
  text-transform: uppercase;
}

#iletisim-popup .white-form .button-sm.primary-button.semi-rounded.full-width:hover,
#yorum-popup .white-form .button-sm.primary-button.semi-rounded.full-width:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 149, 0, .45);
}

/* Teklif Popup - aynı popup görünümü */
#teklif-popup .popup-iletisim-container {
  position: relative;
  padding: 48px 40px 40px;
  background: linear-gradient(160deg, #ffffff 0%, #f8f9fc 100%);
}

#teklif-popup .popup-title {
  margin: 0 0 28px 0;
  font-size: 24px;
  font-weight: 700;
  color: #111;
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--main-color, #ff9500);
  letter-spacing: -0.02em;
}

#teklif-popup .white-form.mt-60 { margin-top: 0; }
#teklif-popup .white-form .row { margin: 0 -10px; }
#teklif-popup .white-form .row > [class*="col-"] { padding: 0 10px; }

#teklif-popup .white-form .g-recaptcha {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

#teklif-popup .white-form input[type="text"],
#teklif-popup .white-form input[type="email"],
#teklif-popup .white-form input[type="tel"],
#teklif-popup .white-form textarea {
  width: 100%;
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  color: #333;
  transition: .25s;
  box-sizing: border-box;
  margin-bottom: 18px;
}

#teklif-popup .white-form textarea {
  min-height: 140px;
  resize: vertical;
}

#teklif-popup .white-form input::placeholder,
#teklif-popup .white-form textarea::placeholder { color: #98a2ad; }

#teklif-popup .white-form input:focus,
#teklif-popup .white-form textarea:focus {
  outline: none;
  border-color: var(--main-color, #ff9500);
  box-shadow: 0 0 0 4px rgba(255, 149, 0, .15);
}

#teklif-popup .white-form .button-sm.primary-button.semi-rounded.full-width {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 15px 22px;
  font-weight: 700;
  letter-spacing: .3px;
  color: #fff;
  background: linear-gradient(135deg, #ff9500 0%, #ff7700 100%);
  box-shadow: 0 8px 22px rgba(255, 149, 0, .35);
  transition: .25s transform, .25s box-shadow;
  text-transform: uppercase;
}

#teklif-popup .white-form .button-sm.primary-button.semi-rounded.full-width:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 149, 0, .45);
}

/* ===== BLOG POPUP TASARIMI ===== */

.blog-popup-content.white-popup {
  position: relative;
  background: #ffffff;
  padding: 0;
  width: 100%;
  max-width: 840px;
  margin: 30px auto;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.blog-popup-content .popup-blog-inner {
  padding: 36px 40px 32px;
  background: radial-gradient(circle at top left, #fff7eb 0, #ffffff 45%, #f7f8fb 100%);
}

.blog-popup-content .popup-blog-title {
  margin: 0 0 12px 0;
  font-size: 22px;
  font-weight: 800;
  color: #101827;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.blog-popup-content .popup-blog-meta {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #e5e7eb;
  font-size: 12px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.45);
}

.blog-popup-content .popup-blog-meta .fa-classic {
  color: var(--main-color, #ff9500);
}

.blog-popup-content .popup-blog-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
}

.blog-popup-content .popup-blog-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.6s ease;
}

.mfp-ready .blog-popup-content .popup-blog-image img {
  transform: scale(1);
}

.blog-popup-content .popup-blog-content {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 6px;
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
}

.blog-popup-content .popup-blog-content::-webkit-scrollbar {
  width: 6px;
}

.blog-popup-content .popup-blog-content::-webkit-scrollbar-track {
  background: transparent;
}

.blog-popup-content .popup-blog-content::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.7);
  border-radius: 999px;
}

.blog-popup-content .popup-blog-content p {
  margin-bottom: 14px;
}

.blog-popup-content .popup-blog-content h1,
.blog-popup-content .popup-blog-content h2,
.blog-popup-content .popup-blog-content h3,
.blog-popup-content .popup-blog-content h4 {
  margin-top: 18px;
  margin-bottom: 10px;
  font-weight: 700;
  color: #111827;
}

.blog-popup-content .popup-blog-content ul,
.blog-popup-content .popup-blog-content ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .blog-popup-content.white-popup {
    max-width: calc(100% - 24px);
    margin: 16px auto;
    border-radius: 16px;
  }
  .blog-popup-content .popup-blog-inner {
    padding: 28px 20px 24px;
  }
  .blog-popup-content .popup-blog-title {
    font-size: 20px;
  }
}

/* Popup kapatma butonu */
.mfp-close-btn-in .mfp-close {
  right: 16px;
  top: 16px;
  width: 44px;
  height: 44px;
  line-height: 44px;
  font-size: 20px;
  border-radius: 50%;
  background: #fff;
  color: #333;
  opacity: 1;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.mfp-close-btn-in .mfp-close:hover {
  background: var(--main-color, #ff9500);
  color: #fff;
  transform: rotate(90deg);
}

/* Mobil popup */
@media (max-width: 768px) {
  #iletisim-popup.white-popup,
  #teklif-popup.white-popup {
    max-width: calc(100% - 24px);
    margin: 16px auto;
    border-radius: 16px;
  }
  #iletisim-popup .popup-iletisim-container,
  #teklif-popup .popup-iletisim-container {
    padding: 36px 24px 32px;
  }
  #iletisim-popup .popup-title,
  #teklif-popup .popup-title {
    font-size: 20px;
    margin-bottom: 22px;
  }
  .mfp-close-btn-in .mfp-close {
    right: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    line-height: 38px;
  }
}


