/* ==========================================================================
   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; /* Expanded for an even wider structural presence */
  width: 100%;
  margin: 4rem auto; /* Generous breathing room on the page layout */
  padding: 6rem 5rem; /* Massive internal canvas padding for an editorial look */
  border-radius: 20px; /* Softer, highly premium rounded profile */
  overflow: hidden;
  color: var(--nec-text-primary);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  background-size: cover;
  background-position: center;
}

/* Layer 1: Hardware-accelerated Extra-Deep Blur */
.nec-blur-widget__blur-layer {
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  background-size: cover;
  background-position: center;
  filter: blur(10px); /* Maximized blur depth */
  transform: scale(1.08);
  z-index: 1;
}

/* Layer 2: Deep Dark Gradient Overlay */
.nec-blur-widget__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 2;
}

/* Content Container (Perfectly spaced left offset) */
.nec-blur-widget__content {
  position: relative;
  z-index: 3;
  max-width: 850px;
  width: 100%;
  margin-left: 6%; /* Pushes text to cleanly clear the structural left third */
  text-align: left;
}

/* ==========================================================================
   Ultra-Airy Typography System
   ========================================================================== */

.nec-widget-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em; /* Wide, high-end tracking space */
  color: var(--nec-text-secondary);
  margin: 0 0 1.5rem 0; /* Significant gap before title */
}

.nec-widget-title {
  font-size: 3.25rem; /* Noticeably larger presence */
  font-weight: 800;
  line-height: 1.35; /* Highly readable, fully opened line height */
  margin: 0 0 1.5rem 0; /* Clear distinction above secondary info */
  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; /* Massive structural gap separating header from countdown */
}

/* ==========================================================================
   Symmetrical Flex Countdown Grid
   ========================================================================== */

.nec-countdown-grid {
  display: flex;
  justify-content: flex-start;
  gap: 18px; /* Highly spaced out tiles */
  max-width: 650px;
  width: 100%;
  margin: 0 0 4.5rem 0; /* Massive structural separation from the link actions */
}

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

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  backdrop-filter: blur(10px);
  transition:
    background 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.3s ease;
}

.nec-blur-widget:hover .nec-countdown-tile {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

/* Inside numbers */
.nec-countdown-value {
  font-size: 2.25rem;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 8px; /* Added internal height layout whitespace */
  color: var(--nec-text-primary);
}

/* Inside labels */
.nec-countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em; /* Spaced labels inside squares */
  font-weight: 600;
  color: var(--nec-text-muted);
  line-height: 1;
}

/* ==========================================================================
   Minimalist Action Links
   ========================================================================== */

.nec-card__actions {
  display: flex;
  align-items: center;
  gap: 3.5rem; /* Wide spatial alignment separating primary/secondary targets */
}

.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--primary:hover .nec-link-arrow {
  transform: translateX(6px); /* Fluid micro-interaction */
}

.nec-card__link--secondary {
  color: var(
    --nec-text-muted
  ); /* Distinctly washed and non-intrusive appearance */
}

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

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@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; /* Returns content cleanly centered/flush layout on smaller devices */
  }

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

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

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

  .nec-countdown-value {
    font-size: 1.8rem;
  }
}

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

  .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 {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 2.25rem;
  }

  .nec-countdown-tile {
    flex: 1 1 calc(50% - 5px);
    min-width: 100px;
  }

  .nec-countdown-value {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    margin-bottom: 4px;
  }

  .nec-countdown-label {
    font-size: 0.55rem;
    letter-spacing: 0.04em;
  }

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