/* ==========================================================================
   Next Event Countdown - Maximum Airy Landscape Layout
   ========================================================================== */

.nec-blur-widget {
  --nec-text-primary: #ffffff;
  --nec-text-secondary: rgba(255, 255, 255, 0.75);
  --nec-text-muted: rgba(255, 255, 255, 0.45);
  --nec-accent-hover: #ffffff;

  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  position: relative;
  max-width: 1100px;
  width: 100%;
  margin: 4rem auto;
  padding: 6rem 5rem;
  border-radius: 20px;
  overflow: hidden;
  color: var(--nec-text-primary);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 20px 50px rgba(0, 0, 0, 0.3);
  background-size: cover;
  background-position: center;
}

.nec-blur-widget__blur-layer {
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  transform: scale(1.08);
  z-index: 1;
}

.nec-blur-widget__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
  backdrop-filter: saturate(140%);
  -webkit-backdrop-filter: saturate(140%);
  z-index: 2;
}

.nec-blur-widget__content {
  position: relative;
  z-index: 3;
  max-width: 850px;
  width: 100%;
  margin-left: 6%;
  text-align: left;
}

.nec-widget-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--nec-text-secondary);
  margin: 0 0 1.5rem 0;
}

.nec-widget-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.02em;
  color: var(--nec-text-primary);
}

.nec-widget-date {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--nec-text-secondary);
  margin: 0 0 4.5rem 0;
}

.nec-ongoing-message {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.6;
  max-width: 550px;
  color: var(--nec-text-primary);
  margin: 0 0 3rem 0;
}

.nec-countdown-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: clamp(8px, 2vw, 18px);
  max-width: 650px;
  width: 100%;
  margin: 0 0 4.5rem 0;
}

.nec-countdown-tile {
  flex: 1;
  aspect-ratio: 1 / 1;
  min-width: 0;

  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: clamp(10px, 2vw, 14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 0 20px rgba(255, 255, 255, 0.04),
    0 8px 20px rgba(0, 0, 0, 0.15);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(0.4rem, 1.5vw, 0.75rem);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition:
    background 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.3s ease,
    transform 0.3s ease;
}

.nec-blur-widget:hover .nec-countdown-tile {
  border-color: rgba(255, 255, 255, 0.32);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
}

.nec-countdown-value {
  font-size: clamp(1.6rem, 8vw, 4.75rem);
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: clamp(3px, 1vw, 8px);
  color: var(--nec-text-primary);
}

.nec-countdown-label {
  font-size: clamp(0.55rem, 1.8vw, 0.7rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--nec-text-muted);
  line-height: 1;
  white-space: nowrap;
}

.nec-card__actions {
  display: flex;
  align-items: center;
  gap: 3.5rem;
}

.nec-card__link {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
  background: none;
  padding: 0;
  border: none;
}

.nec-card__link--primary {
  color: var(--nec-text-primary);
}

.nec-card__link--secondary {
  color: #c7c7c7;
}

.nec-card__link--secondary:hover {
  color: var(--nec-text-primary);
}

@media (max-width: 992px) {
  .nec-blur-widget {
    padding: 4.5rem 3.5rem;
  }

  .nec-widget-title {
    font-size: 2.75rem;
  }
}

@media (max-width: 768px) {
  .nec-blur-widget {
    padding: 4rem 2.5rem;
    margin: 2.5rem auto;
  }

  .nec-blur-widget__content {
    margin-left: 0;
  }

  .nec-widget-title {
    font-size: 2.4rem;
  }

  .nec-widget-date {
    margin-bottom: 3.5rem;
  }

  .nec-countdown-grid {
    max-width: 100%;
    margin-bottom: 3.5rem;
  }
}

@media (max-width: 480px) {
  .nec-blur-widget {
    padding: 2rem 1rem;
    margin: 1.75rem auto;
    border-radius: 16px;
  }

  .nec-widget-title {
    font-size: clamp(1.65rem, 6vw, 1.85rem);
    margin-bottom: 1rem;
  }

  .nec-widget-date {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .nec-countdown-grid {
    gap: clamp(6px, 2vw, 10px);
    margin-bottom: 2.25rem;
  }

  .nec-countdown-tile {
    min-width: 0;
    border-radius: 10px;
  }

  .nec-card__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
