/* Açılış fırsat popup — 1080 kare, taşmadan */
.opp-popup {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.opp-popup.is-visible {
  pointer-events: auto;
  opacity: 1;
}

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

.opp-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
}

.opp-popup__panel {
  position: relative;
  width: min(92vw, 420px);
  max-height: min(92vh, 520px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.opp-popup__toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 10px 12px 4px;
  flex-shrink: 0;
}

.opp-popup__controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.opp-popup__countdown {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.opp-popup__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.opp-popup__close:hover {
  background: #e11d48;
  color: #fff;
}

.opp-popup__link {
  display: block;
  flex: 1;
  min-height: 0;
  padding: 0 12px 12px;
  text-decoration: none;
}

.opp-popup__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(min(92vh, 520px) - 56px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  background: #f8fafc;
}

.opp-detail-crumb {
  margin-bottom: 1.25rem;
}

.blog-card__img--square {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.blog-grid--opportunity .blog-card__title {
  font-size: 1.125rem;
}

@media (min-width: 768px) {
  .opp-popup__panel {
    width: min(480px, 42vw);
  }
}
