/* static/css/nerd+.css */

/* ✅ OVERRIDE base.css layout constraints */
.tiles-container,
.container {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* ✅ Add 15px spacing on left and right */
.nerdplus-container {
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

h1 {
  font-size: 30px;
  color: #2e7d32;
  margin: 0;
  padding: 0;
  font-weight: 800;
  text-align: center;
  font-family: "Playfair Display", "Georgia", "Times New Roman", serif;
  letter-spacing: 0.3px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 25px;
  }
}

/* Center paragraph under h1 (default) */
.nerdplus-container p {
  text-align: center;
  max-width: 1000px;
  margin: 8px auto 24px; /* Increased bottom spacing for mobile */
  padding: 0 8px;
  font-size: 1rem;
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

/* Larger screens */
@media (min-width: 768px) {
  .nerdplus-container p {
    font-size: 1.1rem;
    margin: 8px auto 14px; /* Slightly smaller bottom spacing on larger screens */
  }
}

/* ✅ Make video smaller + centered */
.modal-video {
  max-width: 650px; /* 👈 Adjust this value to control size */
  margin: 0 auto;   /* centers video */
}

/* Video positioning */
.modal-video,
.video-placeholder,
.modal-video iframe {
  position: relative;
  z-index: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ✅ FIX: remove 1px line on large screens */
.video-placeholder {
  position: relative;
  overflow: hidden;
  line-height: 0;

  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;

  aspect-ratio: 16 / 9;
}

.video-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* 🔴 LIVE PAGE TIMER ONLY */
.nerdplus-container .live-timer {
  text-align: center;
  margin: 20px auto 30px;
  font-family: Arial, sans-serif;
}

@media (max-width: 480px) {
  .nerdplus-container .live-timer {
    margin: 20px auto 20px;
  }
}

/* Label */
.nerdplus-container #liveLabel {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: #b71c1c;
  text-transform: uppercase;
}

/* Countdown */
.nerdplus-container #liveCountdown {
  display: block;
  font-size: 3.2rem;
  font-weight: 800;
  color: #ff1f1f;
  line-height: 1.2;
  letter-spacing: 2px;
  text-shadow: 0 4px 12px rgba(255, 0, 0, 0.25);
}

/* LIVE state */
.nerdplus-container #liveCountdown strong {
  font-size: 3.4rem;
  color: #ffffff;
  background: linear-gradient(90deg, #ff0000, #d50000);
  padding: 12px 28px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.35);
  display: inline-block;
  animation: pulseLive 1.5s infinite ease-in-out;
}

@keyframes pulseLive {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .nerdplus-container #liveCountdown {
    font-size: 2.2rem;
  }

  .nerdplus-container #liveCountdown strong {
    font-size: 2.4rem;
  }
}

/* ----------------------------
   LIVE LAYOUT (mobile first)
   ---------------------------- */

/* Default stacked layout */
.live-layout {
  display: block;
}

/* ✅ MOBILE: p comes first, then video, then banner */
@media (max-width: 768px) {
  .live-layout {
    display: flex;
    flex-direction: column;
  }

  .live-layout p {
    order: 1;
  }

  .live-layout .modal-video {
    order: 2;
  }

  .live-banner {
    order: 3;
    margin-top: 25px;
    margin-bottom: 70px;
    width: calc(100% + 20px);  /* add 10px on each side */
    max-width: none;
    height: auto;
    display: block;
    margin-left: -10px;  /* pull left */
  }
}

/* ✅ DESKTOP: p spans across both columns, video left, banner right */
@media (min-width: 769px) {
  .live-layout {
    display: grid;
    grid-template-columns: 600px 600px;
    gap: 28px;
    max-width: calc(600px + 600px + 28px);
    margin: 0 auto;
    align-items: start;
  }

  /* Paragraph spans full width across both columns */
  .live-layout p {
    grid-column: 1 / -1;
    text-align: center;
    margin: 0 auto 18px;
    max-width: 900px;
    padding: 0;
  }

  /* Video left column */
  .live-layout .modal-video {
    max-width: 600px;
    margin: 0;
  }

  /* Banner right column */
  .live-banner {
    max-width: 670px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    cursor: pointer;
  }
}
