/*
 * Lemon Pig Mini Competitions
 * Version 1.3.0
 */

/* =========================================================
   RESET
========================================================= */

.lpmc-section,
.lpmc-section *,
.lpmc-section *::before,
.lpmc-section *::after {
  box-sizing: border-box;
}

/* =========================================================
   SECTION
========================================================= */

.lpmc-section {
  position: relative;
  border-radius: 20px;
  width: 100%;
  overflow: hidden;
  padding: 72px 24px 82px;
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(71, 119, 220, 0.16) 0%,
      transparent 36%
    ),
    radial-gradient(
      circle at 8% 85%,
      rgba(66, 126, 241, 0.08) 0%,
      transparent 31%
    ),
    linear-gradient(125deg, #09111a 0%, #050a10 54%, #0c151f 100%);
  color: #ffffff;
}

.lpmc-section::before {
  position: absolute;
  top: 70px;
  left: 6%;
  width: 16px;
  height: 27px;
  background: rgba(81, 113, 148, 0.13);
  clip-path: polygon(
    56% 0,
    100% 0,
    69% 38%,
    100% 38%,
    31% 100%,
    47% 56%,
    0 56%
  );
  box-shadow:
    360px 135px 0 rgba(81, 113, 148, 0.1),
    800px -15px 0 rgba(81, 113, 148, 0.11),
    1180px 185px 0 rgba(81, 113, 148, 0.09);
  content: "";
  pointer-events: none;
}

.lpmc-shell {
  position: relative;
  z-index: 2;
  width: min(1380px, 100%);
  margin-inline: auto;
}

/* =========================================================
   HEADER
========================================================= */

.lpmc-header {
  width: min(850px, 100%);
  margin: 0 auto 44px;
  text-align: center;
}

.lpmc-header__badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 15px;
  border: 2px solid #5689ff;
  border-radius: 999px;
  background: #111923;
  color: #75a0ff !important;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lpmc-header__title {
  margin: 18px 0 0 !important;
  color: #ffffff !important;
  font-size: clamp(42px, 6vw, 78px) !important;
  font-weight: 950 !important;
  line-height: 0.92 !important;
  letter-spacing: -0.05em;
  text-align: center !important;
  text-transform: uppercase;
}

.lpmc-header__description {
  margin: 17px auto 0 !important;
  color: rgba(255, 255, 255, 0.76) !important;
  font-size: clamp(16px, 1.7vw, 21px) !important;
  line-height: 1.45;
  text-align: center;
}

/* =========================================================
   GRID
========================================================= */

.lpmc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

/* =========================================================
   CARD
========================================================= */

.lpmc-card {
  min-width: 0;
  height: 100%;
}

.lpmc-card__link {
  position: relative;
  display: flex;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 2px solid #4f83fa;
  border-radius: 17px;
  background: linear-gradient(145deg, #151e29, #0c131b);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.34);
  color: #ffffff !important;
  text-decoration: none !important;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

a.lpmc-card__link:hover,
a.lpmc-card__link:focus {
  border-color: #79a3ff;
  box-shadow: 0 21px 45px rgba(0, 0, 0, 0.44);
  color: #ffffff !important;
  transform: translateY(-5px);
}

/* =========================================================
   CARD MEDIA
========================================================= */

.lpmc-card__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1.45 / 1;
  background: linear-gradient(140deg, #4779dc, #234c9c);
}

.lpmc-card__badge {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  display: none;
}

.lpmc-card__badge--active {
  background: #4f83fa;
  color: #ffffff !important;
}

.lpmc-card__badge--ended {
  background: #616a74;
  color: #ffffff !important;
}

.lpmc-card__image {
  width: 100%;
  height: 100%;
}

.lpmc-card__image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover;
  object-position: center;
  transition:
    transform 280ms ease,
    filter 180ms ease,
    opacity 180ms ease;
}

a.lpmc-card__link:hover .lpmc-card__image img {
  transform: scale(1.045);
}

.lpmc-card__image-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(255, 255, 255, 0.18),
      transparent 45%
    ),
    linear-gradient(135deg, #426fc9, #1b3f83);
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.lpmc-card__price {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  display: flex;
  min-width: 72px;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(19, 27, 36, 0.96),
    rgba(5, 9, 13, 0.97)
  );
  box-shadow: 0 8px 17px rgba(0, 0, 0, 0.38);
  text-align: center;
  display: none;
}

.lpmc-card__price strong {
  display: block;
  color: #ffe137 !important;
  font-size: 28px;
  font-weight: 950;
  line-height: 0.9;
}

.lpmc-card__price span {
  display: block;
  margin-top: 6px;
  color: #ffffff !important;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
}

/* =========================================================
   CARD CONTENT
========================================================= */

.lpmc-card__content {
  display: flex;
  min-height: 330px;
  flex: 1;
  align-items: flex-start;
  flex-direction: column;
  padding: 23px 22px 22px;
}

.lpmc-card__product-title {
  margin: 0 0 9px !important;
  color: rgba(255, 255, 255, 0.67) !important;
  font-size: 11px !important;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.lpmc-card__prize-title {
  margin: 0 !important;
  color: #ffe137 !important;
  font-size: clamp(25px, 2.3vw, 38px) !important;
  font-weight: 950 !important;
  line-height: 0.97 !important;
  letter-spacing: -0.035em;
  text-align: left !important;
}

.lpmc-card__description {
  margin: 13px 0 0 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 13px !important;
  line-height: 1.5;
}

.lpmc-card__completed-date {
  margin: 18px 0 0 !important;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1.35;
}

/* =========================================================
   HOMEPAGE VERSION 1 STYLE COUNTDOWN
========================================================= */

.lpmc-card__countdown-wrapper {
  width: 100%;
  margin-top: 18px;
}

.lpmc-card__countdown.lp-lottery-timer__container {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.lpmc-card__countdown .lp-lottery-timer__section {
  display: flex !important;
  min-width: 0 !important;
  min-height: 65px;
  flex: 1 1 0 !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 10px 4px 8px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #f1f1f1 !important;
  box-shadow: none !important;
  text-align: center !important;
}

.lpmc-card__countdown .lp-lottery-timer__number {
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #10161d !important;
  font-family: inherit !important;
  font-size: 24px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: -0.03em !important;
  text-align: center !important;
}

.lpmc-card__countdown .lp-lottery-timer__label {
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #66717d !important;
  font-family: inherit !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0.04em !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

/* =========================================================
   BUTTON
========================================================= */

.lpmc-card__button {
  display: flex;
  width: 100%;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  padding: 11px 18px;
  border-radius: 999px;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.lpmc-card__button--active {
  background: linear-gradient(90deg, #4d74ec, #6997ff);
  box-shadow: 0 9px 19px rgba(64, 104, 225, 0.27);
}

.lpmc-card__button--ended {
  background: linear-gradient(90deg, #4d555e, #646e78);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.78) !important;
}

/* =========================================================
   ENDED STATE
========================================================= */

.lpmc-card--ended .lpmc-card__link {
  border-color: #59616a;
  background: linear-gradient(145deg, #171b20, #101419);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  cursor: default;
}

.lpmc-card--ended .lpmc-card__image img {
  filter: grayscale(1);
  opacity: 0.48;
}

.lpmc-card--ended .lpmc-card__image-placeholder {
  filter: grayscale(1);
  opacity: 0.48;
}

.lpmc-card--ended .lpmc-card__price {
  opacity: 0.55;
  filter: grayscale(1);
}

.lpmc-card--ended .lpmc-card__product-title {
  color: rgba(255, 255, 255, 0.42) !important;
}

.lpmc-card--ended .lpmc-card__prize-title {
  color: #9098a1 !important;
}

.lpmc-card--ended .lpmc-card__description {
  color: rgba(255, 255, 255, 0.46) !important;
}

/* =========================================================
   LARGE TABLET
========================================================= */

@media (max-width: 1050px) {
  .lpmc-section {
    padding: 60px 20px 70px;
  }

  .lpmc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lpmc-card__content {
    min-height: 325px;
  }
}

/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 780px) {
  .lpmc-section {
    padding-inline: 16px;
  }

  .lpmc-grid {
    gap: 16px;
  }

  .lpmc-card__content {
    padding: 20px 18px;
  }

  .lpmc-card__prize-title {
    font-size: clamp(24px, 4.5vw, 34px) !important;
  }

  .lpmc-card__countdown.lp-lottery-timer__container {
    gap: 6px !important;
  }

  .lpmc-card__countdown .lp-lottery-timer__section {
    min-height: 58px;
    padding: 8px 3px 7px !important;
  }

  .lpmc-card__countdown .lp-lottery-timer__number {
    font-size: 20px !important;
  }
}

/* =========================================================
   MOBILE
   Full-width 3:2 competition image
========================================================= */

@media (max-width: 650px) {
  .lpmc-section {
    padding: 42px 13px 52px;
  }

  .lpmc-header {
    margin-bottom: 28px;
  }

  .lpmc-header__badge {
    padding: 6px 13px;
    font-size: 11px;
  }

  .lpmc-header__title {
    margin-top: 14px !important;
    font-size: clamp(35px, 11vw, 52px) !important;
    line-height: 0.94 !important;
  }

  .lpmc-header__description {
    margin-top: 12px !important;
    font-size: 15px !important;
  }

  .lpmc-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Card becomes vertical on mobile */
  .lpmc-card__link {
    display: flex;
    min-height: 0;
    flex-direction: column;

    border-width: 1px;
    border-radius: 12px;
  }

  /* =========================================================
     IMAGE
     Preserve original 3:2 ratio
  ========================================================= */

  .lpmc-card__media {
    position: relative;

    width: 100%;
    height: auto;
    min-height: 0;

    aspect-ratio: 3 / 2;

    overflow: hidden;
  }

  .lpmc-card__image {
    width: 100%;
    height: 100%;
  }

  .lpmc-card__image img {
    display: block;

    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    object-fit: cover;
    object-position: center;
  }

  /* Badge */
  .lpmc-card__badge {
    top: 9px;
    left: 9px;

    padding: 5px 8px;

    font-size: 8px;
  }

  /* Price remains hidden */
  .lpmc-card__price {
    display: none;
  }

  /* =========================================================
     CONTENT
  ========================================================= */

  .lpmc-card__content {
    min-width: 0;
    min-height: 0;

    padding: 18px 16px 16px;
  }

  .lpmc-card__product-title {
    margin-bottom: 6px !important;

    font-size: 9px !important;
  }

  .lpmc-card__prize-title {
    font-size: clamp(22px, 7vw, 30px) !important;
    line-height: 1 !important;
  }

  .lpmc-card__description {
    display: block;

    margin-top: 10px !important;

    font-size: 12px !important;
    line-height: 1.45;
  }

  /* =========================================================
     COUNTDOWN
  ========================================================= */

  .lpmc-card__countdown-wrapper {
    width: 100%;
    margin-top: 14px;
  }

  .lpmc-card__countdown.lp-lottery-timer__container {
    gap: 5px !important;
  }

  .lpmc-card__countdown .lp-lottery-timer__section {
    min-height: 52px;

    padding: 7px 3px 6px !important;

    border-radius: 6px !important;
  }

  .lpmc-card__countdown .lp-lottery-timer__number {
    font-size: 18px !important;
  }

  .lpmc-card__countdown .lp-lottery-timer__label {
    margin-top: 4px !important;

    font-size: 6px !important;
  }

  .lpmc-card__completed-date {
    margin-top: 12px !important;

    font-size: 9px !important;
  }

  /* =========================================================
     BUTTON
  ========================================================= */

  .lpmc-card__button {
    min-height: 42px;

    margin-top: 13px;
    padding: 9px 12px;

    font-size: 11px;
  }
}

/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 390px) {
  .lpmc-section {
    padding-inline: 9px;
  }

  .lpmc-card__media {
    aspect-ratio: 3 / 2;
  }

  .lpmc-card__content {
    padding: 16px 13px 14px;
  }

  .lpmc-card__prize-title {
    font-size: 21px !important;
  }

  .lpmc-card__description {
    font-size: 11px !important;
  }

  .lpmc-card__countdown.lp-lottery-timer__container {
    gap: 4px !important;
  }

  .lpmc-card__countdown .lp-lottery-timer__number {
    font-size: 15px !important;
  }

  .lpmc-card__countdown .lp-lottery-timer__label {
    font-size: 6px !important;
  }

  .lpmc-card__button {
    min-height: 40px;
    font-size: 10px;
  }
}

/* =========================================================
   NARROW MOBILE
========================================================= */

@media (max-width: 340px) {
  .lpmc-card__media {
    aspect-ratio: 3 / 2;
  }

  .lpmc-card__content {
    min-height: 0;
    padding: 15px 12px 13px;
  }

  .lpmc-card__prize-title {
    font-size: 20px !important;
  }

  .lpmc-card__description {
    font-size: 11px !important;
  }

  .lpmc-card__countdown .lp-lottery-timer__number {
    font-size: 14px !important;
  }

  .lpmc-card__countdown .lp-lottery-timer__label {
    font-size: 6px !important;
  }

  .lpmc-card__button {
    min-height: 40px;
    font-size: 10px;
  }
}
