@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@700&display=swap');

/* =============================================
   WEBINAR POPUP STYLES
   ============================================= */

/* =============================================
   FLOATING CAPSULE BUTTON
   ============================================= */
.webinar-floating-btn {
  position: fixed;
  bottom: 112px;
  right: 224px;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 136px;
  height: 40px;
  padding: 0 16px 0 10px;
  border-radius: 500px;
  border: 1px solid #FFFFFF;
  background: linear-gradient(135deg, #1a4a5e 0%, #2a6a82 50%, #1a4a5e 100%);
  box-shadow: 0px 4px 13px 0px #AAC8D9;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateX(60px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.webinar-floating-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.webinar-floating-btn:hover,
.webinar-floating-btn:focus {
  background: linear-gradient(135deg, #1a4a5e 0%, #2a6a82 50%, #1a4a5e 100%) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0px 6px 20px 0px #88b5c9;
  transform: translateX(0) scale(1.05);
  outline: none;
}

.webinar-floating-btn:active {
  background: linear-gradient(135deg, #153f51 0%, #236075 50%, #153f51 100%) !important;
  transform: translateX(0) scale(0.97);
}

/* Play icon */
.webinar-floating-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  line-height: 0;
}

/* Text */
.webinar-floating-text {
  color: #FFFFFF;
  font-family: 'Public Sans', 'Roboto', sans-serif !important;
  font-weight: 700;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: 0px;
  text-align: center;
  white-space: nowrap;
}


/* Overlay */
.webinar-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 20px;
}

/* Active state */
.webinar-popup-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Container */
.webinar-popup-container {
  position: relative;
  max-width: 540px;
  width: fit-content;
  max-height: 92vh;
  border-radius: 16px;
  overflow: visible;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.15);
  transform: scale(0.85) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: transparent;
}

.webinar-popup-overlay.is-active .webinar-popup-container {
  transform: scale(1) translateY(0);
}

/* Close button */
.webinar-popup-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0;
  line-height: 1;
}

.webinar-popup-close:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.webinar-popup-close:active {
  transform: scale(0.95);
}

/* Link wrapper */
.webinar-popup-link {
  display: block;
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
}

/* Poster image */
.webinar-popup-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 16px;
}

/* =============================================
   RESPONSIVE - TABLET (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {
  .webinar-popup-overlay {
    padding: 16px;
  }

  .webinar-popup-container {
    max-width: 360px;
    border-radius: 12px;
  }

  .webinar-popup-image {
    border-radius: 12px;
  }

  .webinar-popup-close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
  }

  .webinar-popup-close svg {
    width: 16px;
    height: 16px;
  }

  .webinar-floating-btn {
    bottom: 104px;
    right: 144px;
    width: 120px;
    height: 36px;
    padding: 0 12px 0 6px;
    gap: 6px;
  }

  .webinar-floating-text {
    font-size: 12px;
  }

  .webinar-floating-icon {
    width: 20px;
    height: 20px;
  }

  .webinar-floating-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* =============================================
   RESPONSIVE - MOBILE (max-width: 480px)
   ============================================= */
@media (max-width: 480px) {
  .webinar-popup-overlay {
    padding: 12px;
    align-items: center;
  }

  .webinar-popup-container {
    max-width: 100%;
    border-radius: 10px;
  }

  .webinar-popup-image {
    border-radius: 10px;
  }

  .webinar-popup-close {
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
  }

  .webinar-popup-close svg {
    width: 14px;
    height: 14px;
  }
}

/* =============================================
   RESPONSIVE - SMALL MOBILE (max-width: 360px)
   ============================================= */
@media (max-width: 360px) {
  .webinar-popup-overlay {
    padding: 8px;
  }

  .webinar-popup-container {
    border-radius: 8px;
  }

  .webinar-popup-image {
    border-radius: 8px;
  }

  .webinar-popup-close {
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
  }

  .webinar-popup-close svg {
    width: 13px;
    height: 13px;
  }
}

/* =============================================
   LANDSCAPE MOBILE - Limit poster height
   ============================================= */
@media (max-height: 500px) {
  .webinar-popup-container {
    max-height: 90vh;
  }

  .webinar-popup-image {
    max-height: 90vh;
    object-fit: contain;
  }
}