/* ============================================================
   assets/css/event-hero.css  —  Apple Event Hero Section
   Pixel-faithful implementation of Keynote Event hero design
   ============================================================ */

/* ---- 1. THEME TOKENS ---- */
.section--black {
  --ev-bg:            #000000;
  --ev-panel-bg:      #07080a;
  --ev-card-bg:       #08090d;
  --ev-border:        rgba(255, 255, 255, 0.08);
  --ev-border-hover:  rgba(45, 212, 191, 0.35);
  --ev-accent:        #2dd4bf;
  --ev-accent-light:  #5eead4;
  --ev-text-pri:      #ffffff;
  --ev-text-sec:      #9ca3af;
  --ev-text-muted:    #71717a;
}

/* ---- 2. SECTION CONTAINER ---- */
.ev-hero-section {
  background: transparent;
  padding: 0.75rem 0 0.5rem 0;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: visible;
  position: relative;
  width: 100%;
}

.ev-hero-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 1.15rem;
  display: grid;
  grid-template-columns: 1.34fr 1fr;
  gap: 1.15rem;
  align-items: stretch;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* ---- 3. LEFT MAIN FEATURE CARD ---- */
.ev-main-card {
  background: #07080a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 2.6rem 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 570px;
}

/* Glowing Apple Artwork in Left Card */
.ev-artwork {
  position: absolute;
  top: 45px;
  right: 25px;
  width: 300px;
  height: 300px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ev-artwork__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(45, 212, 191, 0.28));
  animation: evAppleGlow 5s ease-in-out infinite alternate;
}

@keyframes evAppleGlow {
  0% {
    filter: drop-shadow(0 0 15px rgba(45, 212, 191, 0.2));
    transform: translateY(0);
  }
  100% {
    filter: drop-shadow(0 0 32px rgba(45, 212, 191, 0.4));
    transform: translateY(-3px);
  }
}

/* ---- 4. BADGE PILL ---- */
.ev-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.45rem 1rem 0.45rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9ca3af;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.ev-badge__dot {
  width: 6px;
  height: 6px;
  background: #2dd4bf;
  border-radius: 50%;
  box-shadow: 0 0 8px #2dd4bf;
  animation: evDotPulse 2.4s ease-in-out infinite;
}

@keyframes evDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.75); }
}

.ev-badge__apple {
  color: #ffffff;
  fill: currentColor;
}

.ev-badge__lbl {
  color: #ffffff;
}

.ev-badge__sep {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
}

.ev-badge__date {
  color: #9ca3af;
}

/* ---- 5. HEADLINE ---- */
.ev-headline {
  font-size: clamp(2.2rem, 3.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin: 0 0 1.25rem 0;
  position: relative;
  z-index: 2;
  max-width: 320px;
}

.ev-headline__line1,
.ev-headline__line2,
.ev-headline__line3 {
  display: block;
}

.ev-gradient-text {
  background: linear-gradient(90deg, #34d399 0%, #2dd4bf 45%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 25px rgba(45, 212, 191, 0.35);
}

/* ---- 6. SUBTEXT ---- */
.ev-subtext {
  font-size: 0.94rem;
  color: #9ca3af;
  margin: 0 0 1.85rem 0;
  line-height: 1.5;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 2;
}

/* ---- 7. CTAS ROW ---- */
.ev-cta-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.ev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 12px;
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  height: 48px;
  box-sizing: border-box;
}

.ev-btn--primary {
  background: linear-gradient(90deg, #10756c 0%, #13897e 50%, #179e93 100%);
  color: #ffffff;
  padding: 0 1.65rem;
  border: none;
  box-shadow: 0 4px 16px rgba(16, 117, 108, 0.35);
}

.ev-btn--primary:hover {
  background: linear-gradient(90deg, #13897e 0%, #179e93 50%, #1cb5a8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 212, 191, 0.4);
}

.ev-btn--primary:hover .ev-btn__arrow {
  transform: translateX(4px);
}

.ev-btn__arrow {
  transition: transform 0.2s ease;
}

.ev-btn--secondary {
  background: rgba(255, 255, 255, 0.02);
  color: #ffffff;
  padding: 0 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ev-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.ev-btn--secondary:hover .ev-btn__bell {
  transform: rotate(12deg);
}

.ev-btn__bell {
  transition: transform 0.2s ease;
}

/* ---- 8. BOTTOM INFO BAR ---- */
.ev-bar {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.15rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.ev-bar__col {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ev-bar__icon {
  flex-shrink: 0;
  color: #2dd4bf;
}

.ev-bar__label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #71717a;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.ev-bar__value {
  font-size: 0.88rem;
  font-weight: 500;
  color: #f4f4f5;
  white-space: nowrap;
}

/* Countdown */
.ev-countdown {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}

.ev-countdown__seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 1.8rem;
}

.ev-countdown__digit {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2dd4bf;
  line-height: 1;
  letter-spacing: -0.02em;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Mono", monospace;
  font-variant-numeric: tabular-nums;
}

.ev-countdown__digit.flip {
  animation: evDigitFlip 0.25s ease;
}

@keyframes evDigitFlip {
  0%   { opacity: 0.4; transform: translateY(-4px); }
  100% { opacity: 1;   transform: translateY(0); }
}

.ev-countdown__unit {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #71717a;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* ---- 9. RIGHT 2x3 MOSAIC GRID ---- */
.ev-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 0.9rem;
}

.ev-card {
  background: #08090d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.3rem 1.3rem 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.ev-card:hover {
  border-color: rgba(45, 212, 191, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(45, 212, 191, 0.12);
}

.ev-card__head {
  position: relative;
  z-index: 2;
}

.ev-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.2rem 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.ev-card__sub {
  font-size: 0.78rem;
  color: #8e8e93;
  margin: 0;
  line-height: 1.35;
}

.ev-card__media {
  width: 100%;
  height: 105px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  margin-top: 0.4rem;
  overflow: hidden;
}

.ev-card__img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.ev-card:hover .ev-card__img {
  transform: scale(1.04);
  filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.45));
}

/* ---- 10. SCROLL REVEAL ANIMATIONS ---- */
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--delay, 0ms)),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--delay, 0ms));
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- 11. RESPONSIVE BREAKPOINTS ---- */
@media (max-width: 1024px) {
  .ev-hero-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .ev-main-card {
    min-height: auto;
  }
  .ev-artwork {
    width: 260px;
    height: 260px;
  }
}

@media (max-width: 640px) {
  .ev-hero-section {
    padding: 1rem 0.65rem 1.75rem;
  }
  .ev-hero-container {
    padding: 0.65rem;
    border-radius: 22px;
    gap: 0.75rem;
  }
  .ev-main-card {
    padding: 1.4rem 1.1rem;
    border-radius: 18px;
  }
  .ev-artwork {
    position: relative;
    top: auto;
    right: auto;
    width: 190px;
    height: 190px;
    margin: 0 auto 1.25rem;
  }
  .ev-headline {
    font-size: 2.1rem;
    max-width: 100%;
  }
  .ev-cta-row {
    flex-direction: column;
    width: 100%;
  }
  .ev-btn {
    width: 100%;
    justify-content: center;
  }
  .ev-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
    padding: 1.15rem;
  }
  .ev-mosaic {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .ev-card {
    padding: 1rem 0.85rem 0.6rem;
    border-radius: 16px;
  }
  .ev-card__title {
    font-size: 0.9rem;
  }
  .ev-card__sub {
    font-size: 0.7rem;
  }
  .ev-card__media {
    height: 80px;
  }
}

/* ---- 12. ACCESSIBILITY / REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
}