/**
 * OKK NFT Platform - Dynamic Neon Glass Popup System Styles
 * Optimized for 9:16 Portrait / Story / Flyer Announcement Artworks
 */

/* Client Popup Overlay */
.okk-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 2, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.okk-popup-overlay.active {
  display: flex;
  opacity: 1;
}

/* Modal Container - Optimized for 9:16 Portrait Layout */
.okk-popup-card {
  background: linear-gradient(135deg, rgba(20, 14, 38, 0.96), rgba(12, 7, 26, 0.98));
  border: 1px solid rgba(166, 108, 255, 0.35);
  border-radius: 20px;
  width: 100%;
  max-width: 400px; /* Perfect width for 9:16 vertical posters & phone screens */
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85),
              0 0 35px rgba(166, 108, 255, 0.22),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: #FFFFFF;
}

.okk-popup-overlay.active .okk-popup-card {
  transform: scale(1) translateY(0);
}

/* Close Button */
.okk-popup-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #E2D9F3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.okk-popup-close-btn:hover {
  background: var(--okk-danger, #FF5A73);
  color: #FFFFFF;
  border-color: var(--okk-danger, #FF5A73);
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 0 14px rgba(255, 90, 115, 0.5);
}

/* Hero Image - 9:16 Portrait Container */
.okk-popup-hero-wrap {
  width: 100%;
  max-height: 54vh;
  overflow: hidden;
  border-top-left-radius: 19px;
  border-top-right-radius: 19px;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.okk-popup-hero-img {
  width: 100%;
  height: auto;
  max-height: 54vh;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
  display: block;
}

.okk-popup-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 70%, rgba(12, 7, 26, 0.95) 100%);
  pointer-events: none;
}

/* Content Body */
.okk-popup-body {
  padding: 60px 22px 24px;
}

/* Announcement Tag - Positioned in Upper Left Corner of okk-popup-card */
.okk-popup-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 13px;
  border-radius: 20px;
  background: rgba(8, 4, 18, 0.78);
  border: 1px solid rgba(214, 61, 255, 0.45);
  color: #D63DFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 12px rgba(214, 61, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.okk-popup-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 10px 0;
  color: #FFFFFF;
  letter-spacing: -0.3px;
}

.okk-popup-desc {
  font-size: 13.5px;
  color: #B8B0CC;
  line-height: 1.6;
  margin: 0 0 18px 0;
  white-space: pre-line;
}

/* Actions Footer */
.okk-popup-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.okk-popup-btn-primary {
  flex: 1;
  min-width: 130px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--okk-purple, #A66CFF), var(--okk-pink, #D63DFF));
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(166, 108, 255, 0.35);
  transition: all 0.25s ease;
}

.okk-popup-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(214, 61, 255, 0.5);
  color: #FFFFFF;
}

.okk-popup-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #A39BB5;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.okk-popup-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 575px) {
  .okk-popup-card {
    max-width: 360px;
    border-radius: 16px;
    max-height: 94vh;
  }
  .okk-popup-tag {
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    font-size: 10px;
  }
  .okk-popup-close-btn {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .okk-popup-hero-wrap {
    max-height: 50vh;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
  }
  .okk-popup-hero-img {
    max-height: 50vh;
  }
  .okk-popup-body {
    padding: 16px;
  }
  .okk-popup-title {
    font-size: 17px;
    margin-bottom: 8px;
  }
  .okk-popup-desc {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .okk-popup-actions {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .okk-popup-btn-primary,
  .okk-popup-btn-secondary {
    width: 100%;
    padding: 11px 16px;
  }
}
