
/* ==========================================================================
   Bharat Datacenter - Poster Popup Modal Styles
   ========================================================================== */

.bdc-poster-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
}

.bdc-poster-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Dark Backdrop with blur */
.bdc-poster-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 15, 20, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

/* Modal Dialog Card */
.bdc-poster-dialog {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 380px;
  background: #11161f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(255, 255, 255, 0.05),
              0 0 35px rgba(2, 65, 63, 0.25);
  transform: scale(0.92) translateY(16px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
  display: flex;
  flex-direction: column;
}

.bdc-poster-modal.active .bdc-poster-dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Close Button (X) - positioned cleanly at top-right dark corner WITHOUT background circle */
.bdc-poster-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 35;
  width: 28px;
  height: 28px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
  padding: 0;
  opacity: 0.9;
}

.bdc-poster-close:hover {
  opacity: 1;
  color: #ffa163 !important;
  transform: scale(1.15);
  background: transparent !important;
  border: none !important;
}

.bdc-poster-close:focus {
  outline: none;
  opacity: 1;
}

.bdc-poster-close svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}

/* Poster Container & Image */
.bdc-poster-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.bdc-poster-img-wrapper {
  position: relative;
  width: 100%;
  max-height: 420px;
  background: #0b0f15;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bdc-poster-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Action Area with WhatsApp Button */
.bdc-poster-action {
  padding: 14px 16px 16px;
  background: #11161f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bdc-poster-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.bdc-poster-whatsapp-btn:hover {
  background: linear-gradient(135deg, #28e26e 0%, #16a392 100%);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.bdc-poster-whatsapp-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.4);
}

.bdc-whatsapp-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: currentColor;
}

/* Responsive adjustment for small screens */
@media (max-width: 480px) {
  .bdc-poster-modal {
    padding: 16px 12px;
  }
  
  .bdc-poster-dialog {
    max-width: 330px;
    border-radius: 16px;
  }
  
  .bdc-poster-container {
    border-radius: 16px;
  }

  .bdc-poster-close {
    top: 5px;
    right: 5px;
    width: 26px;
    height: 26px;
  }

  .bdc-poster-close svg {
    width: 15px;
    height: 15px;
  }
  
  .bdc-poster-img-wrapper {
    max-height: 360px;
  }
  
  .bdc-poster-img {
    max-height: 360px;
  }

  .bdc-poster-action {
    padding: 12px 14px 14px;
  }

  .bdc-poster-whatsapp-btn {
    padding: 11px 16px;
    font-size: 14px;
  }
}

