/* Ana site açılış popup */
.site-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 12, 22, 0.72);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  animation: site-popup-fade-in 0.28s ease-out;
}

.site-popup-backdrop[hidden] {
  display: none !important;
}

@keyframes site-popup-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes site-popup-rise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.site-popup {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 40rem);
  max-height: min(92vh, 720px);
  border-radius: 1.125rem;
  border: 1px solid var(--site-border-soft, rgba(255, 255, 255, 0.1));
  background: var(--site-panel-gradient, linear-gradient(165deg, #1e2739 0%, #141a28 100%));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 28px 64px -24px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(22, 119, 255, 0.08);
  overflow: hidden;
  animation: site-popup-rise 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-popup__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--site-border-soft, rgba(255, 255, 255, 0.12));
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.35);
  color: var(--site-text, #e2e8f0);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.site-popup__close:hover {
  background: rgba(22, 119, 255, 0.15);
  border-color: rgba(22, 119, 255, 0.35);
  color: #fff;
}

.site-popup__head {
  flex-shrink: 0;
  padding: 1.1rem 3rem 0.65rem 1.15rem;
  border-bottom: 1px solid var(--site-border-soft, rgba(255, 255, 255, 0.06));
  background: linear-gradient(180deg, rgba(22, 119, 255, 0.1) 0%, transparent 100%);
}

.site-popup__eyebrow {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--site-accent-bright, #69b1ff);
}

.site-popup__title {
  margin: 0;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--site-text, #f1f5f9);
}

.site-popup__media {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  background: rgba(0, 0, 0, 0.22);
}

.site-popup__media-link {
  display: block;
  outline: none;
}

.site-popup__media-link:focus-visible {
  outline: 2px solid var(--site-accent, #1677ff);
  outline-offset: -2px;
}

.site-popup__img {
  display: block;
  width: 100%;
  max-height: min(58vh, 480px);
  object-fit: contain;
  object-position: center;
}

.site-popup__foot {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--site-border-soft, rgba(255, 255, 255, 0.06));
  background: rgba(0, 0, 0, 0.15);
}

.site-popup__never {
  margin: 0;
  padding: 0.35rem 0;
  border: none;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--site-text-muted, #94a3b8);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.site-popup__never:hover {
  color: var(--site-text, #e2e8f0);
}

.site-popup__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
}

.site-popup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1.1rem;
  border-radius: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  text-decoration: none;
  font-family: inherit;
}

.site-popup__btn--ghost {
  border: 1px solid var(--site-border, rgba(255, 255, 255, 0.14));
  background: rgba(255, 255, 255, 0.04);
  color: var(--site-text, #e2e8f0);
}

.site-popup__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-popup__btn--primary {
  border: none;
  color: #fff;
  background: linear-gradient(180deg, var(--site-accent, #1677ff) 0%, var(--site-accent-muted, #0958d8) 100%);
  box-shadow: 0 6px 20px -8px rgba(22, 119, 255, 0.55);
}

.site-popup__btn--primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, var(--site-accent-hover, #4096ff) 0%, var(--site-accent, #1677ff) 100%);
}

[data-theme="light"] .site-popup-backdrop {
  background: rgba(15, 23, 42, 0.45);
}

[data-theme="light"] .site-popup {
  border-color: var(--site-border, rgba(15, 23, 42, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 48px -20px rgba(15, 23, 42, 0.25);
}

[data-theme="light"] .site-popup__close {
  background: rgba(255, 255, 255, 0.85);
  color: var(--site-text, #0f172a);
}

body.site-popup-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .site-popup-backdrop,
  .site-popup {
    animation: none;
  }
}

@media (max-width: 480px) {
  .site-popup__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .site-popup__actions {
    margin-left: 0;
    width: 100%;
  }

  .site-popup__btn {
    flex: 1 1 auto;
  }
}
