/* ============================================================
   Landing Page of the Day — Custom overrides
   (webflow.css provides the base design system)
   ============================================================ */

/* Custom inline styles from Webflow HTML source */


.menu_icon {
  z-index: 9999;
  position: relative;
  width: 12px;
  height: 10px;
  cursor: pointer;
  display: none;
  flex-shrink: 0;
}

.menu_icon div,
.menu_icon::before,
.menu_icon::after {
  left: 0;
  position: absolute;
  height: 11%;
  width: 100%;
  transition: all 0.3s ease 0s;
  background-color: #000;
  border-radius: 6px;
}

.menu_icon::before,
.menu_icon::after {
  content: "";
}

.menu_icon::before {
  top: 0;
}

.menu_icon::after {
  bottom: 0;
}

.menu_icon div {
  top: 50%;
  transform: scale(1) translate(0px, -50%);
}

.menu_icon._active div {
  transform: scale(0) translate(0px, -50%);
}

.menu_icon._active::before {
  top: 50%;
  transform: rotate(-45deg) translate(0px, -50%);
}

.menu_icon._active::after {
  bottom: 50%;
  transform: rotate(45deg) translate(0px, 50%);
}

@media (max-width: 991px) {
  .header_menu {
    position: fixed;
    top: 0;
    right: 0;
    background-color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 130px 20px 20px 20px;
    transition: all 0.3s ease 0s;
    overflow: auto;
    z-index: 5;
    justify-content: start;
    transform: translate(-100%, 0px);
  }

  .header_menu._active {
    transform: translate(0, 0px);
    z-index: 1000;
  }

  .menu_icon {
    display: block;
  }
}

/* Infinite scroll handles visibility via JS now */

/* Hero screenshot: scrollable within the fixed-height container */
.hero_block-image-full {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
}
.hero_block-img-full {
  object-fit: unset !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* Winner card screenshots: crop to hero section only */
.winners_list-item-image {
  display: block !important;
  height: 200px !important;
  max-height: 200px !important;
  overflow: hidden !important;
  position: relative;
}
.winners_list-item-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Winner card hover state */
.winners_list-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.winners_list-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.winners_list-item:hover .winners_list-item-img {
  opacity: 0.92;
}

/* Winner card date badge — centered with spacing */
.winners_list-item-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  margin-top: 8px;
}

/* Mobile improvements */
@media (max-width: 767px) {
  /* Prev/Next arrows: enlarge tap targets */
  .hero_block-content-prev,
  .hero_block-content-next {
    padding: 14px;
    margin: -14px;
  }

  /* Hero nav: Return To Today link needs bigger tap target */
  .hero_block-content-cta-wrap a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Winner card external link arrow: bigger tap target */
  .winners_list-item-link {
    padding: 12px;
    margin: -12px;
  }

  /* Winner card name link */
  .winners_list-item-head-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Hero head links */
  .hero_block-head-url-link,
  .hero_block-head-link {
    min-height: 44px;
    display: inline-flex !important;
    align-items: center;
  }

  /* "Why" info item: stack label + text vertically so text isn't cramped */
  .hero_block-content-info-item.last {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px;
  }
  .hero_block-content-info-item.last .hero_block-content-info-text-wrap,
  .hero_block-content-info-item.last .body-regular {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* All stat rows: ensure label and value don't cramp */
  .hero_block-content-info-item {
    flex-wrap: wrap;
    gap: 4px;
  }

  /* Footer buttons: stack full-width on mobile */
  .footer_menu {
    flex-direction: column !important;
    width: 100%;
  }
  .footer_menu .header_cta {
    width: 100% !important;
    text-align: center;
    justify-content: center;
  }

  /* Winner cards: crop hero on mobile */
  .winners_list-item-image {
    height: 180px;
  }

  /* Winner detail page: stack CTA buttons vertically */
  .inner-page__cta-wrap {
    flex-direction: column;
    gap: 8px;
  }
  .inner-page__cta-wrap a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Winner detail page: share buttons larger */
  .inner-page__share-link {
    width: 44px;
    height: 44px;
  }

  /* Winner detail CTA block: tighter padding */
  .winner-cta {
    padding: 24px 16px;
  }
  .winner-cta__btn {
    width: 100%;
    justify-content: center;
  }
}

/* Hero carousel nav bar cleanup */
.hero_block-content-head {
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.hero_block-content-prev-wrap {
  flex-wrap: nowrap !important;
  align-items: center !important;
}

/* Next button (mirrors Previous) */
.hero_block-content-next {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  transition: opacity 0.2s;
}
.hero_block-content-next:hover { opacity: 0.7; }

.hero-form_input:focus {
  border-color: #1A1A1A;
}

.footer_copyright-text-wrap:hover .body-regular.gray-3 {
  color: #C34BFB;
}

.footer_copyright-text-wrap:hover .footer_copyright-img-2 {
  opacity: 1;
}

.cta-default_overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  animation: shine 2.5s infinite;
  pointer-events: none;
}

@keyframes shine {
  0% { left: -75%; }
  100% { left: 125%; }
}

.cta-default_icon-wrap {
  position: relative;
  overflow: hidden;
}

.cta-default_icon {
  position: absolute;
  left: 10px;
  top: 10px;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.top-arrow {
  z-index: 2;
}

.bottom-arrow {
  transform: translateY(100%);
  opacity: 0;
  z-index: 1;
}

.cta-main:hover .top-arrow {
  transform: translateY(-100%);
  opacity: 0;
}

.cta-main:hover .bottom-arrow {
  transform: translateY(0);
  opacity: 1;
}

.cta_flashing-text-icon.cta_flashing-text-green {
  animation: subtle-pulse-green 2.4s ease-in-out infinite;
}

@keyframes subtle-pulse-green {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(2, 94, 2, 0.6);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 4px rgba(2, 94, 2, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(2, 94, 2, 0);
  }
}

.cta_flashing-text-icon {
  animation: subtle-pulse 2.4s ease-in-out infinite;
}

@keyframes subtle-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(139, 25, 243, 0.6);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 4px rgba(139, 25, 243, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(139, 25, 243, 0);
  }
}

/* Winner detail: two-column layout (details left, screenshot right) */
.winner-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 32px;
}
.winner-detail__info {
  position: sticky;
  top: 80px;
}
.winner-detail__screenshot {
  border-radius: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  max-height: 80vh;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.winner-detail__screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 991px) {
  .winner-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .winner-detail__info {
    position: static;
  }
  .winner-detail__screenshot {
    max-height: 500px;
    order: -1; /* screenshot first on mobile */
  }
}

@media (max-width: 479px) {
  .winner-detail__screenshot {
    max-height: 400px;
  }
}

/* Inner pages (winner detail, form, legal) */
.inner-page { padding: 60px 0 80px; }
.inner-page__back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; color: #787878; transition: color 0.2s; }
.inner-page__back:hover { color: #1a1a1a; }
.inner-page__title { font-size: 2rem; font-weight: 600; margin-bottom: 24px; }
/* Legacy screenshot class kept for backwards compat */
.inner-page__screenshot { border-radius: 12px; overflow: hidden; border: 1px solid #e8e8e8; margin-bottom: 32px; }
.inner-page__screenshot img { width: 100%; height: auto; }
.inner-page__stats { display: flex; flex-direction: column; margin-bottom: 32px; }
.inner-page__stat { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid #e8e8e8; }
.inner-page__stat:last-child { border-bottom: none; }
.inner-page__stat-label { color: #787878; }
.inner-page__stat-value { font-weight: 500; }
.inner-page__why { padding: 24px; background: #fafafa; border-radius: 12px; margin-bottom: 32px; }
.inner-page__why-label { color: #787878; margin-bottom: 8px; }
.inner-page__cta-wrap { display: flex; gap: 12px; margin-bottom: 40px; }
.inner-page__nav { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid #e8e8e8; }
.inner-page__nav a { color: #787878; transition: color 0.2s; }
.inner-page__nav a:hover { color: #1a1a1a; }

.form-page { max-width: 600px; margin: 0 auto; }
.form-page__title { font-size: 2rem; font-weight: 600; margin-bottom: 8px; }
.form-page__desc { color: #787878; margin-bottom: 32px; }
.form-page__form { display: flex; flex-direction: column; gap: 20px; }
.form-page__field { display: flex; flex-direction: column; gap: 6px; }
.form-page__label { font-size: 0.8125rem; font-weight: 500; }
.form-page__input, .form-page__textarea {
  padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 8px;
  font-size: 0.9375rem; font-family: inherit; transition: border-color 0.2s;
}
.form-page__input:focus, .form-page__textarea:focus { border-color: #1a1a1a; outline: none; }
.form-page__textarea { min-height: 100px; resize: vertical; }
.form-page__submit {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; background: #1a1a1a; color: #fff; border-radius: 100px;
  font-size: 0.875rem; font-weight: 500; border: none; cursor: pointer;
  transition: background 0.2s; align-self: flex-start;
}
.form-page__submit:hover { background: #333; }

.legal-page { max-width: 700px; }
.legal-page h1 { font-size: 2rem; font-weight: 600; margin-bottom: 24px; }
.legal-page h2 { font-size: 1.25rem; font-weight: 600; margin-top: 32px; margin-bottom: 12px; }
.legal-page p { margin-bottom: 16px; color: #555; line-height: 1.7; }
.legal-page ul { margin-bottom: 16px; padding-left: 20px; }
.legal-page li { margin-bottom: 8px; color: #555; line-height: 1.7; }
.legal-page a { color: #1a1a1a; text-decoration: underline; }

/* Newsletter section */
.section_newsletter { padding: 40px 0; }
.newsletter_wrapper {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; padding: 40px 48px; background: #fafafa;
  border-radius: 16px; border: 1px solid #e8e8e8;
}
.newsletter_content { flex: 1; }
.newsletter_content .heading-2 { margin-bottom: 8px; }
.newsletter_content .body-regular { max-width: 400px; }
.newsletter_form { flex-shrink: 0; }
.newsletter_input-wrap { display: flex; gap: 8px; }
.newsletter_input {
  padding: 10px 16px; border: 1px solid #e0e0e0; border-radius: 100px;
  font-size: 0.875rem; font-family: inherit; width: 260px;
  transition: border-color 0.2s;
}
.newsletter_input:focus { border-color: #1a1a1a; outline: none; }
.newsletter_btn {
  padding: 10px 24px; background: #1a1a1a; color: #fff; border: none;
  border-radius: 100px; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.newsletter_btn:hover { background: #333; }

@media (max-width: 767px) {
  .newsletter_wrapper {
    flex-direction: column; gap: 24px; padding: 28px 20px;
    text-align: center;
  }
  .newsletter_content .body-regular { max-width: none; }
  .newsletter_input-wrap { flex-direction: column; width: 100%; }
  .newsletter_input { width: 100%; }
  .newsletter_btn { width: 100%; }
}

/* Winner detail actions row: Visit LP left, Share right */
.inner-page__actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px; padding-top: 8px;
}
.inner-page__share { display: flex; align-items: center; gap: 8px; }
.inner-page__share-label { color: #787878; font-size: 0.8125rem; }
.inner-page__share-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 6px; border: 1px solid #e0e0e0;
  color: #787878; transition: all 0.2s;
}
.inner-page__share-link:hover { border-color: #1a1a1a; color: #1a1a1a; }
button.inner-page__share-link { background: none; cursor: pointer; font: inherit; padding: 0; }

/* Winner page CTA block */
.winner-cta {
  padding: 40px; background: #fafafa; border-radius: 16px;
  border: 1px solid #e8e8e8; text-align: center; margin-bottom: 32px;
}
.winner-cta__title { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.winner-cta__text { color: #787878; margin-bottom: 20px; max-width: 500px; margin-left: auto; margin-right: auto; }
.winner-cta__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; background: #1a1a1a; color: #fff;
  border-radius: 100px; font-size: 0.875rem; font-weight: 500;
  transition: background 0.2s;
}
.winner-cta__btn:hover { background: #333; }

@media (max-width: 767px) {
  .winner-cta { padding: 28px 20px; }
}

/* 404 page */
.page-404 { text-align: center; padding: 120px 0 160px; }
.page-404__title { font-size: 4rem; font-weight: 700; margin-bottom: 16px; }
.page-404__text { color: #787878; margin-bottom: 32px; }
