/* ==========================================================================
   Next Event Countdown - Transparent, Large Text & Bold Clock Styles
   ========================================================================== */

/* Transparent container */
.nec-simple-widget {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  background: transparent;
  padding: 2.5rem 0;
  text-align: center;
  margin: 2rem auto;
  max-width: 900px; /* Widened slightly to accommodate larger clock elements gracefully */
  box-shadow: none;
}

/* Content wrapper */
.nec-simple-widget__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* Eyebrow section (H3) */
.nec-line-eyebrow h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: #666666; /* Subtle dark gray */
  margin: 0;
}

/* Event title (H2 - Scaled up for extra prominence) */
.nec-line-title {
  font-size: 3.5rem; /* Noticeably larger and more impactful */
  font-weight: 800;
  margin: 0.5rem 0;
  line-height: 1.15;
  color: #111111; /* Strong dark color */
  letter-spacing: -0.02em;
}

/* Date range (H3 - a few shades darker/muted than the title) */
.nec-line-date h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: #4a4a4a; /* Muted shade for contrast */
  margin: 0;
  letter-spacing: 0.02em;
}

/* Countdown grid - Adjusted layout spacing for larger cards */
.nec-simple-countdown-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin: 3rem 0;
  width: 100%;
}

/* Individual countdown item */
.nec-simple-countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

/* Embossed & Glossy Gray Card Effect - Scaled Up (ANIMATIONS REMOVED) */
.nec-flip-card {
  background: linear-gradient(
    180deg,
    #444444 0%,
    #2e2e2e 50%,
    #1f1f1f 51%,
    #2a2a2a 100%
  );
  border: 1px solid #111111;
  border-top: 1px solid #666666; /* Light highlight on top for look of depth */
  border-radius: 10px;
  padding: 1.5rem;
  min-width: 110px; /* Increased width from 90px */
  min-height: 110px; /* Increased height from 90px */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  /* Skeuomorphic double shadow for the embossed look */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 5px rgba(0, 0, 0, 0.5),
    0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Horizontal split line across the cards */
.nec-flip-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2;
}

/* Subtle glossy reflection overlay */
.nec-flip-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* Countdown value - Responsive size to fit the card */
.nec-simple-countdown-value {
  font-size: clamp(1.6rem, 3.5vw, 3.2rem);
  font-weight: 800;
  font-family: "Courier New", monospace;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.7);
  margin: 0;
  line-height: 1;
  position: relative;
  z-index: 1;
}

/* Countdown label */
.nec-simple-countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #555555;
  margin: 0;
}

/* Actions section text-style links */
.nec-simple-widget__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  width: 100%;
}

/* Base Link styling - STRICTLY TEXT ONLY */
.nec-card__link {
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
  cursor: pointer;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Primary Link (More Evident / Vibrant Text Link) */
.nec-card__link--primary {
  color: #4f46e5;
  border-bottom: 2px solid #4f46e5 !important; /* Elegant accent text underline */
  padding-bottom: 2px !important;
  font-weight: 800;
}

.nec-card__link--primary:hover {
  color: #3730a3;
  border-color: #3730a3 !important;
  transform: none !important;
}

/* Secondary Link (Subtle Muted Text Link) */
.nec-card__link--secondary {
  color: #777777;
  font-weight: 400;
}

.nec-card__link--secondary:hover {
  color: #222222;
  transform: none !important;
}

/* Ongoing state styling */
.next-event-widget--ongoing.nec-simple-widget {
  background: transparent;
}

.ongoing-pulse {
  animation: pulse 2s infinite;
  color: #e11d48 !important;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nec-line-title {
    font-size: 2.8rem;
  }
  .nec-simple-countdown-grid {
    gap: 1.25rem;
  }
  .nec-flip-card {
    min-width: 95px;
    min-height: 95px;
    padding: 1.2rem;
  }
  .nec-simple-countdown-value {
    font-size: 2.6rem;
  }
}

/* Mobile optimizations */
@media (max-width: 480px) {
  .nec-line-title {
    font-size: 2rem;
  }
  .nec-line-eyebrow h3 {
    font-size: 0.9rem;
  }
  .nec-line-date h3 {
    font-size: 1rem;
  }

  /* Allow cards to wrap and occupy more horizontal space */
  .nec-simple-countdown-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 2rem 0;
    width: 100%;
  }

  /* Two cards per row for better mobile readability */
  .nec-simple-countdown-item {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 130px;
    gap: 0.4rem;
  }

  /* Smaller, still legible counter cards */
  .nec-flip-card {
    width: 100%;
    min-width: 0 !important;
    min-height: 72px;
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 0.5rem;
    border-radius: 8px;
  }

  .nec-simple-countdown-value {
    font-size: clamp(0.75rem, 1vw, 1rem);
    /* line-height: 1.1; */
    letter-spacing: -0.02em;
  }

  .nec-simple-countdown-label {
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nec-simple-widget__actions {
    gap: 1rem;
    flex-direction: column;
  }
}
