/* ==========================================================================
   Encouragement Initiative Academy Alumni - 3rd Biennial Conference Poster Popup
   Modern HTML5 / CSS3 / JavaScript Pop-Up Component
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,800;1,900&family=Oswald:wght@700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --eia-purple-dark: #320645;
  --eia-purple-primary: #7b1d74;
  --eia-purple-magenta: #962181;
  --eia-purple-light: #b8339f;
  --eia-orange-primary: #f58220;
  --eia-orange-deep: #e65c00;
  --eia-orange-light: #fba93b;
  --eia-red-badge: #e53935;
  --eia-dark-text: #191c21;
  --eia-muted-text: #596574;
  --eia-bg-white: #ffffff;
  --eia-font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --eia-font-title: 'Oswald', 'Montserrat', sans-serif;
}

/* Modal Overlay & Backdrop */
.eia-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.eia-popup-overlay.eia-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.eia-popup-wrapper {
  position: relative;
  max-width: 440px;
  width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.88) translateY(28px);
  transition: transform 0.38s cubic-bezier(0.34, 1.35, 0.7, 1);
  box-sizing: border-box;
}

.eia-popup-overlay.eia-active .eia-popup-wrapper {
  transform: scale(1) translateY(0);
}

/* Close Button */
.eia-close-btn {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #1e293b;
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  outline: none;
}

.eia-close-btn:hover {
  background: #f8fafc;
  color: #e53935;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.35);
  border-color: #fca5a5;
}

.eia-close-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
  stroke: currentColor;
  fill: none;
}

/* Main Poster Card Canvas */
.eia-poster-card {
  position: relative;
  width: 100%;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(255, 255, 255, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px 20px 20px;
  box-sizing: border-box;
  font-family: var(--eia-font-main);
  user-select: none;
  -webkit-user-select: none;
}

/* Top Subtle Menu Bar Mock */
.eia-top-indicator {
  position: absolute;
  top: 14px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  opacity: 0.3;
  z-index: 15;
}

.eia-top-indicator span {
  display: block;
  width: 18px;
  height: 2.2px;
  background: #475569;
  border-radius: 2px;
}

/* Watermark Geometric Background */
.eia-bg-watermark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.08;
  background-image: 
    radial-gradient(circle at 50% 18%, #4a0f5e 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23350849' stroke-width='0.8'%3E%3Cpolygon points='70,5 135,70 70,135 5,70' /%3E%3Cpolygon points='70,18 122,70 70,122 18,70' /%3E%3Cpolygon points='70,30 110,70 70,110 30,70' /%3E%3Ccircle cx='70' cy='70' r='65' /%3E%3Ccircle cx='70' cy='70' r='52' /%3E%3Ccircle cx='70' cy='70' r='38' /%3E%3Ccircle cx='70' cy='70' r='22' /%3E%3Cline x1='0' y1='70' x2='140' y2='70' /%3E%3Cline x1='70' y1='0' x2='70' y2='140' /%3E%3Cline x1='20.5' y1='20.5' x2='119.5' y2='119.5' /%3E%3Cline x1='20.5' y1='119.5' x2='119.5' y2='20.5' /%3E%3C/g%3E%3C/svg%3E");
  background-position: top center;
  background-repeat: repeat;
}

/* Dynamic Vector Waves Background (SVG Overlay) */
.eia-waves-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Header: Circular Logo & Organization */
.eia-header {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 6px;
  width: 100%;
}

.eia-logo-container {
  width: 86px;
  height: 86px;
  margin-bottom: 7px;
  filter: drop-shadow(0 4px 10px rgba(245, 130, 32, 0.25));
  transition: transform 0.3s ease;
}

.eia-logo-container:hover {
  transform: scale(1.05) rotate(2deg);
}

.eia-org-title {
  font-size: 13px;
  font-weight: 800;
  color: #191c21;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.25;
  margin: 0;
}

.eia-org-subtitle {
  font-size: 15px;
  font-weight: 900;
  color: #191c21;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  line-height: 1.2;
  margin: 1px 0 0 0;
}

/* Conference Big Typography (3RD BIENNIAL CONFERENCE) */
.eia-conference-block {
  position: relative;
  z-index: 10;
  margin: 4px 0 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 3RD */
.eia-title-3rd {
  font-family: var(--eia-font-title);
  font-size: 88px;
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -2px;
  margin: 0;
  text-transform: uppercase;
  background: linear-gradient(180deg, #2f0743 0%, #44105a 25%, #7e1a70 65%, #992180 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 2px rgba(48, 8, 69, 0.2));
}

/* BIENNIAL */
.eia-title-biennial {
  font-family: var(--eia-font-title);
  font-size: 39px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 1.2px;
  margin: 2px 0 0 0;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fba82b 0%, #f58220 50%, #e65c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 3px rgba(230, 92, 0, 0.22));
}

/* CONFERENCE */
.eia-title-conference {
  font-family: var(--eia-font-title);
  font-size: 33px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.5px;
  margin: 1px 0 0 0;
  text-transform: uppercase;
  color: #191c21;
}

/* Theme Section */
.eia-theme-section {
  position: relative;
  z-index: 10;
  width: 100%;
  margin: 6px 0 10px 0;
}

.eia-theme-label-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 5px;
}

.eia-theme-line {
  flex: 1;
  max-width: 70px;
  height: 1px;
  background: #cbd5e1;
}

.eia-theme-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: #475569;
  text-transform: uppercase;
}

.eia-theme-text {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  color: #7d1c73;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 auto;
  max-width: 360px;
}

.eia-theme-underline-wrap {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.eia-theme-underline {
  width: 130px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7d1c73, transparent);
  opacity: 0.5;
}

/* Guest Speaker Card Box */
.eia-speaker-box {
  position: relative;
  z-index: 10;
  width: 95%;
  max-width: 370px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 40px;
  padding: 13px 16px 9px 16px;
  margin: 12px 0 14px 0;
  box-shadow: 0 5px 18px -2px rgba(0, 0, 0, 0.06);
}

.eia-speaker-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #e53935 0%, #d32f2f 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 16px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 8px rgba(229, 57, 53, 0.35);
  white-space: nowrap;
}

.eia-speaker-name {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 1px 0 2px 0;
}

.eia-speaker-role {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  line-height: 1.3;
  margin: 0;
}

/* Footer Info: Date, Time & Venue */
.eia-footer-info {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 8px 2px 8px;
  box-sizing: border-box;
}

/* Date & Time Row */
.eia-datetime-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.eia-datetime-item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.eia-icon-calendar-svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.eia-info-primary {
  font-size: 13px;
  font-weight: 800;
  color: #191c21;
  line-height: 1.2;
}

.eia-info-secondary {
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  line-height: 1.2;
}

.eia-divider-vert {
  width: 1.5px;
  height: 26px;
  background: #cbd5e1;
  opacity: 0.7;
}

/* Venue Row */
.eia-venue-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: left;
  margin-top: 2px;
}

.eia-pin-badge {
  width: 28px;
  height: 28px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eia-pin-badge svg {
  width: 16px;
  height: 16px;
  color: #d32f2f;
  fill: currentColor;
}

.eia-venue-text {
  display: flex;
  flex-direction: column;
}

/* Popup Actions & CTA Bar (Below Poster Card) */
.eia-popup-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  flex-wrap: wrap;
}

.eia-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--eia-font-main);
  border-radius: 30px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.eia-btn-primary {
  background: linear-gradient(135deg, #f58220 0%, #e65c00 100%);
  color: #ffffff;
}

.eia-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 130, 32, 0.45);
}

.eia-btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: #350849;
}

.eia-btn-secondary:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.35);
}

.eia-btn svg {
  width: 16px;
  height: 16px;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .eia-popup-wrapper {
    max-width: 100%;
  }

  .eia-poster-card {
    padding: 20px 14px 18px 14px;
    border-radius: 16px;
  }

  .eia-title-3rd {
    font-size: 74px;
  }

  .eia-title-biennial {
    font-size: 33px;
  }

  .eia-title-conference {
    font-size: 28px;
  }

  .eia-theme-text {
    font-size: 15px;
  }

  .eia-speaker-box {
    padding: 12px 12px 8px 12px;
    border-radius: 30px;
  }

  .eia-speaker-name {
    font-size: 13px;
  }

  .eia-speaker-role {
    font-size: 10.5px;
  }

  .eia-info-primary {
    font-size: 12px;
  }

  .eia-info-secondary {
    font-size: 11px;
  }

  .eia-close-btn {
    top: -8px;
    right: -8px;
    width: 34px;
    height: 34px;
  }
}
