/* ================================================================
   CALL FOR ABSTRACTS  (#call-for-abstracts)
   Design matches programme.css / venue.css editorial pattern
   ================================================================ */

#call-for-abstracts,
#call-for-abstracts * {
  font-family: 'Avenir Next Pro', 'Avenir Next LT Pro', 'Avenir Next', 'Avenir', Arial, sans-serif;
  font-weight: 300;
}

#call-for-abstracts {
  background: #08080a;
  /* Always fill at least the viewport height.
     min-height lets content push past on tiny screens rather than clipping.
     dvh adjusts as mobile browser chrome hides/shows. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(2rem, 6vh, 5rem) 0;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* ── Ambient radial glow — pulsing hot-pink heartbeat ── */
.cfa-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1100px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 31, 107, 0.09) 0%,
    rgba(123, 22, 54, 0.06) 40%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
  animation: cfa-pulse 7s ease-in-out infinite;
}

@keyframes cfa-pulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1);    }
  50%       { opacity: 1;    transform: translate(-50%, -50%) scale(1.14); }
}

/* Thin horizontal accent line across the section top */
#call-for-abstracts::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 31, 107, 0.5) 35%,
    rgba(255, 31, 107, 0.5) 65%,
    transparent 100%
  );
  z-index: 1;
}

/* ── Inner wrapper ── */
.cfa-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2.5rem;
  text-align: center;
}

/* ── Heading block ── */
.cfa-heading-wrap {
  margin-bottom: clamp(1.2rem, 3.5vh, 3.5rem);
}

.cfa-kicker {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 31, 107, 0.7);
  display: block;
  margin-bottom: clamp(0.8rem, 2vh, 2.2rem);
}

/* ── Dramatic Bebas Neue title — same diagonal entrance as venue/programme ── */
.cfa-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.cfa-title-line1,
.cfa-title-line2 {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 0.85;
  display: block;
}

/* Small top word: "CALL FOR" — enters diagonally from top-right */
.cfa-title-line1 {
  font-size: clamp(2rem, 4vw, 6rem);
  color: rgba(255, 255, 255, 0.45);
  opacity: 0;
  transform: translateX(160px) translateY(-120px) skewX(-12deg);
  transition: opacity 0.9s ease 0s, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0s;
  white-space: nowrap;
}

/* Dominant word: "ABSTRACTS" — enters diagonally from bottom-left */
.cfa-title-line2 {
  font-size: clamp(2.5rem, 5vw, 7.5rem);
  color: #ffffff;
  opacity: 0;
  transform: translateX(-160px) translateY(120px) skewX(12deg);
  transition: opacity 0.9s ease 0.12s, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
  white-space: nowrap;
}

/* Triggered by JS IntersectionObserver adding .cfa-title-entered */
#call-for-abstracts.cfa-title-entered .cfa-title-line1,
#call-for-abstracts.cfa-title-entered .cfa-title-line2 {
  opacity: 1;
  transform: none;
}

/* Instant reset when leaving viewport so next entry feels fresh */
#call-for-abstracts.cfa-title-resetting .cfa-title-line1,
#call-for-abstracts.cfa-title-resetting .cfa-title-line2 {
  transition: none !important;
}

/* ── Body copy ── */
.cfa-body {
  font-size: clamp(0.88rem, 1.1vw, 1.05rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.48);
  max-width: 680px;
  margin: 0 auto clamp(1.5rem, 4vh, 4.5rem);
  font-weight: 300;
}

/* ── Stats row: three key dates ── */
.cfa-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(1.5rem, 4vh, 5rem);
  flex-wrap: wrap;
  gap: 0;
}

.cfa-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 3rem;
}

.cfa-stat-value {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif !important;
  font-weight: 400 !important;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: #ff1f6b;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.cfa-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  display: block;
  font-weight: 300;
}

/* Thin vertical dividers between stats */
.cfa-stat-divider {
  width: 1px;
  height: 3.5rem;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  align-self: center;
}

/* ── CTA buttons — match hero banner button style exactly ── */
.cfa-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
  
/* Override generic .button styles inside CFA to match hero spec */
.cfa-actions .button {
  border-radius: 0;
  padding: 0 1.75rem;
  height: 2.5rem;
  line-height: 2.5rem;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.12s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  min-width: 9rem;
  box-sizing: border-box;
}

.cfa-actions .button.primary {
  background: var(--ir-hot);
  color: #fff !important;
  border: none;
  box-shadow: none;
}

.cfa-actions .button.primary:hover {
  opacity: 0.85;
}

.cfa-actions .button.white {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.7) !important;
  box-shadow: none;
}

.cfa-actions .button.white:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff !important;
  opacity: 1;
}

#abstract-template-btn {
  border-radius: 0 !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .cfa-stat {
    padding: 0 1.8rem;
  }
}

@media (max-width: 700px) {
  #call-for-abstracts {
    padding: clamp(1.5rem, 4vh, 4rem) 0;
    justify-content: flex-start;
    padding-top: clamp(2.5rem, 8vh, 5rem);
  }

  .cfa-stat-divider {
    display: none;
  }

  /* Stack all three stats in a single column, full width */
  .cfa-stats {
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 3vh, 1.8rem);
    margin-bottom: clamp(1.2rem, 3vh, 2.5rem);
    flex-wrap: nowrap;
  }

  .cfa-stat {
    padding: 0;
    width: 100%;
  }

  .cfa-stat-value {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }

  .cfa-actions {
    flex-direction: column;
    align-items: center;
  }

  .cfa-actions .button {
    width: 100%;
    max-width: 360px;
    
  }
}
