@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  /* https://kilianvalkhof.com/2022/css-html/your-css-reset-needs-text-size-adjust-probably/ */
  html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }

  body,
  h1,
  h2,
  h3,
  h4,
  p,
  figure,
  blockquote,
  dl,
  dd {
    margin: 0;
  }

  /* https://www.scottohara.me/blog/2019/01/12/lists-and-safari.html */
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  body {
    min-block-size: 100vh;
    line-height: 1.6;
  }

  h1,
  h2,
  h3,
  button,
  input,
  label {
    line-height: 1.1;
    font-size: 1.6em;
  }

  h1,
  h2,
  h3,
  h4 {
    text-wrap: balance;
    font-optical-sizing: auto;
    font-style: normal;
  }

  p,
  li {
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 1.6em;
  }

  img,
  picture {
    max-inline-size: 100%;
    display: block;
  }
}

@layer base {
  :root {
    --black: #121212;
    --white: #fff;
    --primary: #3e4939;
    --light-primary: #c6c2b6;
    --light-gray: #ececec;
    --light: #fcfbfb;
    --dark-gray: #1e2025;

    --border-radius-1: 0.5rem;
    --border-radius-2: 1.25rem;
    --border-radius-3: 2rem;
    --border-radius-4: 3rem;
  }

  @view-transition {
    navigation: auto;
  }

  @media (prefers-reduced-motion: no-preference) {
    html {
      scroll-behavior: smooth;
    }
  }

  html {
    scroll-padding: 2rem;
    overflow-x: hidden;
  }

  body {
    font-family: "Antic Didone", serif;
    font-size: 10px;
    color: var(--black);
    background-color: var(--light);
    position: relative;
    line-height: normal;
    width: 100%;
    overflow-x: hidden;
  }

  h1 {
    font-size: 120px;
    font-weight: 700;
  }

  h2 {
    font-size: 2rem;
    font-weight: 700;
  }

  p {
    font-family: "Nunito", sans-serif;
    font-size: 18px;
    font-weight: 200;
  }

  a {
    color: var(--black);
    text-decoration: none;
  }

  .btn {
    font-weight: 700;
    color: var(--white);
    background-color: var(--primary);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 4rem;
    line-height: 24px;
    font-size: 1.8em;
    border: none;
    transition: all 0.2s ease-out;
    width: fit-content;
    min-width: 240px;

    &:hover {
      transform: scale(1.1);
    }
  }
}

@layer layout {
  .wrapper {
    --wrapper-max-width: 1200px;
    --wrapper-padding: 1rem;

    max-width: var(--wrapper-max-width);
    margin-inline: auto;
    padding-inline: var(--wrapper-padding);

    /* helps to match the Figma file */
    box-sizing: border-box;
    width: 100%;
  }

  .wrapper[data-width="narrow"] {
    --wrapper-max-width: 745px;
  }

  .wrapper[data-width="narrowXS"] {
    --wrapper-max-width: 400px;
  }

  .wrapper[data-width="medium"] {
    --wrapper-max-width: 960px;
  }

  .wrapper[data-width="wide"] {
    --wrapper-max-width: 1440px;
  }

  .section {
    padding-block: 4rem;

    @media (max-width: 767px) {
      padding-block: 2.25rem;
    }
  }

  .modal-grid {
    display: grid;
    place-items: center;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    height: 100%;

    @media screen and (max-width: 767px) {
      grid-template-columns: 1fr;
    }
  }
}

@layer components {
  /* Navigation  */
  .site_header {
    display: flex;
    justify-content: space-between;
    padding: 1.25rem 2.5rem;
    align-items: center;
    position: relative;
    z-index: 999;
    background: var(--light);

    @media screen and (max-width: 650px) {
      padding: 1rem;
    }

    .logo_header {
      max-width: 180px;
      width: 100%;

      @media screen and (min-width: 768px) and (max-width: 1199px) {
        max-width: 180px;
      }

      @media screen and (max-width: 767px) {
        max-width: 140px;
      }
    }

    .site_navigation {
      grid-column: 3;
      justify-self: end;

      @media screen and (max-width: 767px) {
        position: fixed;
        inset: 0;
        background: var(--dark-gray);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 90%;
        z-index: 2;
        right: 0;
        left: auto;
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* Add for iOS smooth scrolling */
        -webkit-transform: translateX(100%);
        /* Ensure compatibility with older iOS */

        &.active {
          transform: translateX(0);
          -webkit-transform: translateX(0);
          /* For iOS compatibility */
        }
      }

      ul {
        display: flex;
        gap: 1.25rem;

        a {
          text-decoration: none;
          font-weight: 700;
          color: var(--light-primary);

          @media screen and (max-width: 767px) {
            font-size: 20px;
          }
        }

        @media screen and (max-width: 767px) {
          flex-direction: column;
          gap: 1.5rem;
          padding: 2rem 0;
        }
      }
    }

    .header-right {
      grid-column: 3;
      position: relative;
      display: flex;
      gap: 0.75rem;
      align-items: center;

      .dropdown-trigger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        padding: 5px;
        cursor: pointer;
      }

      .dropdown-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        background: var(--black);
        width: 20%;
        padding: 5rem 2rem;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 9;

        &.active {
          right: 0;
        }

        ul {
          display: flex;
          flex-direction: column;
          gap: 1.25rem;

          li a {
            display: block;
            padding: 0.5rem;
            font-size: 1.125rem;
            font-weight: 500;
            color: var(--light-primary);
            transition: color 0.2s;

            &:hover {
              color: var(--light-primary);
            }
          }
        }

        @media screen and (max-width: 840px) {
          width: 80%;
        }
      }

      .unsubLink {
        font-size: 0.875rem;
        font-weight: 500;

        @media screen and (max-width: 767px) {
          font-size: 0.75rem;
        }
      }

      @media screen and (max-width: 767px) {
        gap: 0.3rem;
      }
    }

    .desktop-nav {
      display: flex;
      gap: 1.25rem;

      @media screen and (max-width: 767px) {
        display: none;
      }

      a {
        text-decoration: none;
        font-weight: 700;
      }
    }

    .hamburger {
      display: none;
      flex-direction: column;
      gap: 6px;
      cursor: pointer;
      padding: 5px;
      background: none;
      border: none;
      z-index: 10;

      span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: var(--primary);
        transition: 0.3s ease-in-out;
      }

      &.active {
        position: fixed;
        right: 30px;

        span:first-child {
          transform: translateY(9px) rotate(45deg);
        }

        span:nth-child(2) {
          opacity: 0;
        }

        span:last-child {
          transform: translateY(-9px) rotate(-45deg);
        }
      }

      &[aria-expanded="true"] {
        position: fixed;
        right: 30px;

        span:first-child {
          transform: translateY(9px) rotate(45deg);
        }

        span:nth-child(2) {
          opacity: 0;
        }

        span:last-child {
          transform: translateY(-5px) rotate(-45deg);
        }
      }

      @media screen and (max-width: 767px) {
        display: flex;
        align-items: flex-end;
      }
    }

    @media screen and (min-width: 768px) {
      .mobile-nav {
        display: none;
      }
    }
  }

  /* Hero Section */

  .page_hero {
    position: relative;
    padding-block-start: 8rem;
    padding-block-end: 8rem;
    text-align: center;
    overflow: hidden;
    min-height: 640px;

    @media screen and (max-width: 1199px) {
      padding-block-start: 3rem;
      padding-block-end: 0;
      min-height: auto;
    }

    .hero-bck {
      position: absolute;
      right: 10%;
      bottom: 0;
      height: auto;
      max-height: 100%;
      width: auto;
      max-width: 100%;
      z-index: 0;
      overflow: hidden;

      @media screen and (min-width: 1200px) and (max-width: 1439px) {
        right: 5%;
      }

      @media screen and (max-width: 1199px) {
        margin-top: 20px;
        height: fit-content;
        position: relative;
        right: inherit;
        transform: translateX(-50%);
        left: 50%;
        width: 75%;
      }

      @media screen and (max-width: 767px) {
        width: 90%;
      }
    }

    .hero-full-bck {
      position: absolute;
      top: 50%;
      left: 50%;
      min-height: 100%;
      width: auto;
      transform: translate(-50%, -50%);
      z-index: 0;
      min-width: fit-content;
    }
  }

  .hero-content {
    width: 70%;
    max-width: 720px;
    text-align: left;
    position: relative;
    z-index: 1;

    @media screen and (max-width: 1199px) {
      width: 100%;
      text-align: center;
      margin: 0 auto;
    }

    span {
      font-size: 2.4em;
    }

    h1 {
      font-size: 120px;
      margin: 10px 0 30px;

      @media screen and (max-width: 1199px) {
        font-size: 3.6em;
      }

      @media screen and (max-width: 767px) {
        font-size: 2.8em;
      }
    }

    p {
      font-size: 1.8em;
      line-height: 1.5em;
      margin: 0 0 30px;
    }

    .btn {
      margin: 0;
    }
  }

  .section-block {
    padding: 150px 0;

    .text-right {
      text-align: left;
      padding: 100px 20px;
      margin: 0 auto;
      flex-direction: column;
      gap: 50px;
    }

    @media (max-width: 767px) {
      padding: 0;

      .wrapper {
        flex-direction: column;
      }

      .img-left {
        width: 100%;
      }
    }
  }
}

.seccion-full-img {
  padding: 150px 0;

  .backgroun-flowers {
    background: url(../images/premium/background-flowers.png) center no-repeat;
    background-size: cover;
    height: 100%;
    width: 100%;
    padding: 100px 0;
  }

  h2 {
    text-align: center;
    font-size: 100px;
  }

  img {
    padding-bottom: 50px;
  }

  .btn {
    display: block;
    margin: 0 auto;
  }

  @media (max-width: 767px) {
    h2 {
      font-size: 50px;
    }
  }
}
.credit_cards {
  img {
    margin-right: 10px;
    background-color: var(--light-primary);
  }
}
/* Latest Updates */

.latestUpdate {
  h2 {
    font-size: 3rem;
    font-weight: 600;
    display: flex;
    align-items: center;

    strong {
      font-size: 96px;
      font-weight: 900;
      margin-left: 10px;
    }
  }
  @media (max-width: 767px) {
    h2 {
      font-weight: 600;
      display: block;
      align-items: center;
    }
  }
}

/* Hero Payment  */

.hero_payment {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  /* Price Cards Payment  */

  .price_cards {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding: 40px 0 60px;

    h1 {
      font-size: 24px;
      font-weight: 600;
      margin-bottom: 0px;
      text-transform: uppercase;
    }

    .pricing-toggle {
      display: flex;
      justify-content: center;
      width: 100%;
      overflow: hidden;

      .pricing-option {
        background-color: var(--primary);
        padding: 30px 50px;
        text-align: center;
        cursor: pointer;
        transition: background-color 0.3s, color 0.3s;
        border-radius: 7px;

        .price {
          font-size: 24px;
          font-weight: bold;
          margin: 0;
        }

        .duration {
          font-size: 20px;
          font-weight: 500;
          margin: 8px 0;
        }

        .details {
          font-size: 14px;
        }

        &:first-child {
          margin-right: 5px;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          background-color: var(--light-primary);
        }
        &.active {
          background-color: var(--primary);
          color: var(--white);
        }
      }

      @media (max-width: 767px) {
        flex-direction: column;
        gap: 4px;

        .pricing-option {
          width: 100%;
          padding: 20px;
          margin: 0;
          border-radius: 7px;
        }
      }
    }
  }

  .headpart {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background-color: var(--light-primary);
    padding: 60px 0;

    h1 {
      font-size: 1.5rem;
      font-weight: 500;
      margin-bottom: 30px;
      text-align: center;
    }

    .flex-container-col {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
    }

    .checkbox-group {
      margin-bottom: 15px;
      position: relative;
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;

      .checkbox-group input[type="checkbox"] {
        margin-top: 5px;
      }

      label {
        font-size: 14px;
        line-height: 1.5;
        display: block;
        margin-left: 10px;
        position: relative;
      }
    }

    .btn {
      padding: 18px;
      font-size: 30px;
      font-weight: 700;
      line-height: 30px;
      margin: 30px auto;
      display: block;
      width: 100%;
      max-width: 360px;

      &:disabled {
        border: none;
        cursor: not-allowed;
        box-shadow: none;
        opacity: 0.4;

        &:hover {
          transform: none;
        }
      }
    }
  }
}

/* Swiper  */

.swiper {
  width: 100%;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
  padding-left: 50px;
  @media (max-width: 767px) {
    padding-left: 0;
  }
}

.swiper-slide {
  position: relative;
  width: auto !important;
  /* Override Swiper's default width calculation */
  flex-shrink: 0;
  border-radius: var(--border-radius-2);
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  max-width: 160px;
  min-width: 160px;
  height: 220px;
  object-fit: cover;
  filter: brightness(0.5);
  transition: all 0.3s ease-out;

  &:hover {
    transform: scale(1.1);
    filter: brightness(1);
  }
}

.slide-number {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -50px;
  font-size: 120px;
  font-weight: 900;
  color: var(--dark-gray);
  z-index: -1;
}

/* Home Apps */

.homeApps {
  padding: 4.125rem 3.125rem;
  margin-bottom: 3.125rem;
  border-radius: var(--border-radius-2);

  @media (max-width: 767px) {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .homeApps_text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
    text-align: left;

    @media (max-width: 767px) {
      align-items: center;
      text-align: center;
      gap: 1rem;
    }

    h3 {
      text-transform: capitalize;
      font-size: 1.875rem;

      @media (max-width: 576px) {
        font-size: 1.5rem;
      }
    }

    .btn {
      padding: 0.5rem 1.25rem;
      font-size: 1rem;
      color: var(--primary);

      &:hover,
      &:focus-visible {
        transform: scale(1.05);
        color: var(--white);
      }
    }
  }

  .homeApps__container {
    padding: 1rem;
    border-radius: var(--border-radius-2);
    gap: 0.625rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;

    &::-webkit-scrollbar {
      display: none;
    }

    @media (max-width: 767px) {
      width: 100%;
      justify-content: flex-start;
    }
  }

  .homeApps__item {
    width: 120px;
    height: 120px;
    flex-shrink: 0;

    @media (max-width: 576px) {
      width: 100px;
      height: 100px;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: var(--border-radius-2);
    }
  }
}

/* Cards on login page  */

.areas-section {
  @media screen and (max-width: 767px) {
    flex-direction: column;
  }
}

.card {
  padding: 2rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 300px;
  margin: auto;

  h3 {
    font-size: 2em;
    color: var(--black);
    padding: 1rem 0;

    @media screen and (min-width: 768px) and (max-width: 1199px) {
      width: 100%;
    }

    @media screen and (max-width: 767px) {
      width: 80%;
    }
  }

  p {
    color: var(--black);
    font-size: 1rem;
  }

  .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 48%, rgba(0, 0, 0, 0) 100%);
    border-radius: var(--border-radius-2);
  }

  .card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

.cards_new_games {
  flex-wrap: wrap;

  .card_new_games {
    transition: transform 0.3s ease-in-out;
    cursor: pointer;

    h4 {
      margin-top: 0.625rem;
    }

    &:hover,
    &:focus-visible {
      transform: scale(1.05);
    }
  }
}

.section-img {
  justify-content: space-between;

  @media screen and (max-width: 767px) {
    flex-direction: column;
  }

  .card-img {
    margin-bottom: 10px;
  }
}

/* Category Page */

.category_hero {
  padding: 7.125rem 2rem;
  background-size: cover;
  color: var(--white);
  text-align: center;
  border-radius: var(--border-radius-2);

  h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
  }

  p {
    font-size: 1.125rem;
  }
}

/* Fix for category cards layout */

.category-items-container,
.category-items-more {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;

  @media screen and (max-width: 767px) {
    flex-direction: row;
  }
}

.category_card {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 200px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;

  img.cardsImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease-in-out;
    filter: brightness(0.5) grayscale(0.5);
  }
}

.category_card:hover img.cardsImage {
  transform: scale(1.05);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.category_card:hover .video-overlay {
  opacity: 1;
}

.card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cardsTitle {
  position: absolute;
  bottom: 20px;
  left: 15px;
  font-size: 1rem;
  font-weight: 600;
  z-index: 2;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.text-cards-apps {
  padding-left: 80px;
  @media screen and (max-width: 767px) {
    padding-left: 0;
  }
}
/* Transition styles for See More/Less functionality */
.category-items-more {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.category-items-more.show {
  max-height: 100%;
  /* Large enough to contain all items */
  opacity: 1;
  display: flex !important;
}

/* Button transition effects */
.see-more-btn,
.see-less-btn {
  transition: all 0.3s ease;
  background: var(--primary);
  width: 60px; /* mismo ancho y alto */
  height: 60px;
  border-radius: 50%;
}

.see-more-btn:hover,
.see-less-btn:hover {
  transform: translateY(-3px);
}

/* Item appear animation */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-items-more.show a {
  animation: fadeInUp 0.4s ease-out forwards;
}

.category-items-more.show a:nth-child(1) {
  animation-delay: 0.05s;
}

.category-items-more.show a:nth-child(2) {
  animation-delay: 0.1s;
}

.category-items-more.show a:nth-child(3) {
  animation-delay: 0.15s;
}

.category-items-more.show a:nth-child(4) {
  animation-delay: 0.2s;
}

.category-items-more.show a:nth-child(5) {
  animation-delay: 0.25s;
}

.category-items-more.show a:nth-child(6) {
  animation-delay: 0.3s;
}

.category-items-more.show a:nth-child(7) {
  animation-delay: 0.35s;
}

.category-items-more.show a:nth-child(8) {
  animation-delay: 0.4s;
}

.category-items-more.show a:nth-child(9) {
  animation-delay: 0.45s;
}

.category-items-more.show a:nth-child(10) {
  animation-delay: 0.5s;
}

/* Also add animations to the initial items */
.category-items-container a {
  animation: fadeInUp 0.4s ease-out forwards;
}

.category-items-container a:nth-child(1) {
  animation-delay: 0.05s;
}

.category-items-container a:nth-child(2) {
  animation-delay: 0.1s;
}

.category-items-container a:nth-child(3) {
  animation-delay: 0.15s;
}

.category-items-container a:nth-child(4) {
  animation-delay: 0.2s;
}

.category-items-container a:nth-child(5) {
  animation-delay: 0.25s;
}

.category-items-container a:nth-child(6) {
  animation-delay: 0.3s;
}

/* Category Cards */

.category_card {
  width: 150px;
  height: 200px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease-in-out;
  margin: 0;

  &:hover {
    transform: translateY(-4px);

    img.cardsImage {
      filter: brightness(1) grayscale(0);
    }
  }

  img.cardsImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease-in-out;
    filter: brightness(0.5) grayscale(0.5);
  }
}

.category_card:hover img.cardsImage {
  transform: scale(1.05);
}

.cardsTitle {
  position: absolute;
  width: 80%;
  bottom: 20px;
  left: 15px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  z-index: 2;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#app-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
  gap: 1rem;
  padding-bottom: 2rem;
  justify-items: center;
}

/* Categorie Pills  */

.features-bar {
  margin: 20px 0;
  flex-wrap: wrap;
}

.labels {
  .item-label {
    display: inline-block;
    padding: 5px 10px;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-family: "Nunito", sans-serif;
    border-radius: 5px;
    max-height: fit-content;
    overflow: hidden;
    white-space: nowrap;
    /* Don't forget this one */
    text-overflow: ellipsis;
  }
}

.rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rating > img {
  width: 15px;
}

.rating > span {
  font-size: 1.5em;
}

.categories {
  position: relative;
  overflow-x: auto;
}

form.categories-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  transition: transform 0.3s ease-in-out;
  width: max-content;
  padding: 0 0 10px 0;
  margin: 0 auto;

  .category-pill {
    padding: 0.5rem 1rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    border-radius: var(--border-radius-3);
    background-color: #232323;
    color: var(--white);
    font-size: 0.875rem;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;

    img {
      width: 20px;
      height: 20px;
      filter: brightness(10) contrast(5);
    }

    &.active {
      background-color: var(--primary);
      color: var(--white);
    }
  }
}

/* Search Page  */

#filter-content {
  position: absolute;
  inset: 0;
  background: var(--black);
  padding: 160px 20px;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  /* Adjust columns dynamically */
  gap: 40px 20px;
  /* Keeps consistent spacing between items */
  justify-content: start;
  /* Align items to the start */
  justify-items: center;
  align-content: start;
  /* Align the grid's content to the top */
  z-index: 2;

  p {
    color: var(--white);
  }
}

.film-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
  max-width: 180px;
  max-height: min-content;
}

.film-item img {
  height: 250px;
  width: 100%;
  max-width: 180px;
}

.film-item a {
  color: var(--white);
}

.film-item h3 {
  font-size: 14px;
  margin-top: 10px;
  text-align: left;
}

/* Scrollbar  */

/* width */
::-webkit-scrollbar {
  width: 15px;
  height: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px rgba(128, 128, 128, 0.329);
  border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #2c2c2c;
  border-radius: 10px;
}

/* Section Picker */

.section_picker {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  max-width: 100%;

  @media screen and (max-width: 767px) {
    flex-direction: column;
  }

  button {
    padding: 30px;
    background: var(--light-primary);
    color: var(--primary);
    width: 100%;
    transition: 0.2s;
    cursor: pointer;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    transition: all 0.2s ease-out;
    border-radius: var(--border-radius-2);

    &:hover {
      transform: scale(1.05);
      background: var(--primary);
      color: var(--white) !important;

      .cta-frame {
        color: var(--white);
      }
    }

    .cta-title {
      font-size: 36px;
      font-weight: 600;
    }

    p {
      font-size: 18px;
    }

    .cta-frame {
      width: 100%;
      max-width: 360px;
      padding: 18px;
      font-size: 24px;
      font-weight: 600;
      margin: 0 auto;
      color: var(--black);
      background: var(--light-primary);
      filter: brightness(0.85);
      transition: all 0.2s ease-out;
    }

    &.clicked {
      color: var(--white);
      background: var(--primary);
      cursor: default;
      transform: none !important;

      .cta-frame {
        color: var(--primary);
      }
    }
  }
}

/* Latest Articles  */

.latest_articles {
  background: var(--light-primary);
  background-attachment: fixed;
  background-size: cover;

  .text-articles {
    font-size: 18px;
    max-width: 600px;
    margin: auto;
    padding-bottom: 30px;
  }

  .btn {
    display: block;
    width: fit-content;
    margin: 1rem auto 0;
    padding: 0.75rem 2rem;
  }

  .d-flex {
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 0;
  }

  .article_card {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    overflow: hidden;
    background-color: var(--primary);
    cursor: pointer;
    padding-bottom: 20px;

    &:hover {
      transform: translateY(-5px);
    }

    picture {
      width: 100%;
      height: 200px;
      overflow: hidden;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;

        &:hover {
          transform: scale(1.05);
        }
      }
    }

    .article-content {
      padding: 0 1rem;

      h5 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
        color: var(--white);
      }

      .excerp p {
        font-size: 0.875rem;
        color: var(--white);
        line-height: 1.6;
      }
    }
  }
}

/* Support pages  */

.contact__info {
  display: flex;
  flex-direction: column;
  width: 60%;

  h2,
  h3 {
    font-size: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 0;
  }

  p,
  ul li {
    margin-bottom: 1rem;
  }

  a {
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1rem;
  }

  @media screen and (max-width: 767px) {
    width: 100%;
    margin-top: 0;
    gap: 0.5rem;

    &label {
      font-size: 0.75rem;
    }
  }
}

.title-section {
  padding-block: 2rem 0;

  h1 {
    font-size: 80px;
  }

  @media screen and (max-width: 767px) {
    h1 {
      font-size: 50px;
    }
  }
}

.title-section-terms {
  background: url(../images/background-terms.png) center no-repeat;
  background-size: cover;
  height: 100%;
  width: 100%;

  h1 {
    font-size: 50px;
    color: var(--light);
    padding: 100px 0;
  }
}

.form-group {
  display: flex;
  flex-direction: column;

  p {
    font-size: 0.875rem;
    text-align: center;
  }

  a {
    color: var(--primary);
  }

  label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  input,
  textarea {
    padding: 1rem;
    border: none;
    background: var(--black);
    font-size: 1rem;
    color: var(--white);
  }

  @media screen and (max-width: 767px) {
    margin-top: 0;
    gap: 0.5rem;
    padding: 1.5rem 0rem;
    width: 100%;

    &label {
      font-size: 0.75rem;
    }
  }
}

/* Single Items  */
.single-item,
.single-movie {
  h1 {
    font-size: 30px;
    line-height: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left;
  }

  h2 {
    font-size: 19px;
    line-height: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
  }

  .img-radial {
    width: 100%;
    max-width: 240px;
    height: 100%;
    max-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: var(--border-radius-2);
    overflow: hidden;

    img {
      width: auto;
      min-height: 240px;
      min-width: 100%;
      border-radius: var(--border-radius-2);
      object-fit: cover;
      filter: brightness(0.7) grayscale(0.5);
    }
  }

  .single-item-info {
    width: 50%;

    p,
    ul li,
    ol li {
      line-height: 24px;
      margin: 20px 0 !important;
      background: none !important;
      font-size: 16px !important;
      color: var(--primary) !important;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      background: none !important;
      color: var(--white) !important;
    }

    video {
      width: 100%;
      height: auto;
      object-fit: cover;
    }

    @media screen and (max-width: 767px) {
      width: 100%;
      padding: 1.5rem 0;
    }
  }
}

.single-movie .single-item-info {
  width: 100%;
}

/* Footer  */

.site_footer {
  padding-block: 3.125rem;

  a {
    color: var(--primary);
    text-decoration: none;

    &:hover,
    &:focus-visible {
      color: var(--primary);
    }
  }

  p {
    font-size: 15px;
    line-height: 18px;
    text-align: center;
    margin-bottom: 1rem;
  }

  .logos img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }

  @media screen and (max-width: 767px) {
    ul {
      flex-direction: column;
      gap: 1.25rem;
    }

    .copyrights {
      font-size: 0.875rem;
    }
  }
}

/* Modals  */
.otp-modal,
.login-modal,
.unsub-modal,
.sign-up-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow-y: auto;
  padding: 2rem;

  .close {
    position: absolute;
    right: 1.25rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary);

    @media screen and (max-width: 767px) {
      right: 1rem;
      top: 0.5rem;
    }
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 4rem 1rem;

    p {
      font-size: 0.875rem;
      text-align: center;
    }

    a {
      color: var(--primary);
    }

    @media screen and (max-width: 767px) {
      margin-top: 0;
      gap: 0.5rem;
      padding: 3rem 1.5rem;
      max-width: fit-content;

      &label {
        font-size: 0.75rem;
      }
    }
  }

  .checkbox-group {
    label {
      font-size: 0.875rem;
    }

    input[type="checkbox"] {
      accent-color: var(--primary);
      min-height: auto !important;
    }
  }

  .checkbox-group {
    &:first-of-type {
      margin-top: 10px;
    }

    label {
      display: inline;
      font-size: 0.875rem;
    }
  }

  input {
    padding: 0.5rem;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius-2);
  }

  .btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
  }

  @media screen and (max-width: 767px) {
    h2 {
      font-size: 1.5rem;
      text-align: center;
      margin-bottom: 10px;
    }
  }

  @media screen and (max-width: 767px) {
    padding: 0.75rem;
  }

  .modal-content {
    background: var(--light-primary);
    width: 90%;
    overflow: auto;
    max-inline-size: 1200px;
    position: relative;

    @media screen and (max-width: 767px) {
      width: 95%;
      margin-top: 2rem;
    }

    .form-group input {
      background: var(--dark-gray);
      border: none;
      padding: 0.5rem 1rem;
      min-height: 50px;
      color: var(--white);

      &:focus-visible {
        outline: none;
        border: 1px solid var(--gray);
      }

      &::placeholder {
        color: var(--gray);
      }
    }
  }

  .modal-bck {
    background: url(../images/modal-image.jpg) center no-repeat;
    background-size: cover;
    height: 100%;
    width: 100%;

    @media screen and (max-width: 767px) {
      display: none;
    }
  }
}

/* Payment modal  */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #00000099;
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 30px 0;
}

/* Payment Modal Styles */

#paymentModal .modal-content {
  background: var(--light-primary);
  border-radius: 20px;
  padding: var(--border-radius-2);
  max-width: 480px;
  width: 90%;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  height: auto;
  position: relative;

  @media screen and (max-width: 479px) {
    padding: 20px;
    height: 90%;
    overflow-y: scroll;
  }

  h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
  }

  .form-group {
    margin-bottom: 20px;
    gap: 8px;

    @media screen and (max-width: 767px) {
      padding: 0;
    }
  }

  label {
    display: block;
    margin-bottom: 0;
    color: var(--gray);
    font-size: 16px;
    font-weight: 500;
  }

  input {
    width: 100%;
    padding: 8px 15px;
    font-size: 18px;
    transition: border-color 0.3s ease;
    color: var(--black);
    background-color: var(--white);

    &:focus {
      border-color: var(--primary);
      outline: none;
    }
  }

  .d-flex {
    display: flex;
    gap: 15px;

    .form-group {
      flex: 1;
    }
  }

  button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;

    &:hover {
      background: var(--primary);
      transform: translateY(-1px);
      box-shadow: 0 5px 15px rgba(26, 47, 163, 0.2);
    }
  }

  .close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    transition: color 0.3s ease;

    @media screen and (max-width: 479px) {
      right: 10px;
      top: 10px;
    }

    &:hover {
      color: var(--primary);
    }
  }
}

/* Input placeholder styling */
input::placeholder {
  color: #bbb;
}

/* Error state */
input.error {
  border-color: #dc3545;
}

/* Success state */
input.success {
  border-color: #28a745;
}

/* Custom Audio Player Styling */
audio {
  width: 100%;
  height: 50px;
  border-radius: var(--border-radius-3);
}

/* Webkit (Chrome, Safari, newer versions of Opera) */
audio::-webkit-media-controls-panel {
  background-color: var(--light-gray);
  border-radius: var(--border-radius-3);
}

audio::-webkit-media-controls-play-button {
  background-color: var(--primary);
  border-radius: 50%;
  color: var(--white);
}

audio::-webkit-media-controls-play-button:hover {
  background-color: var(--light-primary);
}

audio::-webkit-media-controls-timeline {
  background-color: var(--gray);
  border-radius: 25px;
  margin: 0 10px;
}

audio::-webkit-media-controls-timeline:hover {
  background-color: var(--primary);
}

audio::-webkit-media-controls-volume-slider {
  background-color: var(--gray);
  border-radius: 25px;
  padding: 0 5px;
}

audio::-webkit-media-controls-volume-slider:hover {
  background-color: var(--primary);
}

/* Audio player container - for additional styling */
.audio-player-container {
  background: linear-gradient(135deg, #f5f5f5 0%, var(--light-primary) 40 100%);
  padding: 1.25rem;
  border-radius: var(--border-radius-2);
  box-shadow: 0px 0px 1rem rgba(221, 162, 222, 0.4);
  margin: 1rem 0;
  width: 100%;
}

/* Table  */

.blog table {
  width: 100% !important;
  margin: 20px auto;
  font-size: 0.875rem;

  td {
    padding: 10px 5px;
  }
}

.blog table tr:first-child th,
.blog table tr:first-child td {
  background: var(--primary);
  color: var(--white);
}

/* Legals Pages  */

.legals {
  h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
  }

  p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  ul {
    list-style: disc;
    padding-left: 20px;

    li {
      margin-bottom: 0.5rem;
    }
  }
}

@layer pages {
  .page {
    p {
      margin: 15px 0;
    }

    h1,
    h2 {
      margin-top: 30px;
    }

    .info-frame {
      background: url(../images/card-box-assistance.png) center no-repeat;
      background-size: cover;
      background-size: cover;
      padding: 40px 30px;
      border-radius: 20px;
      gap: 10px;

      h2 {
        color: var(--white);
        margin: 0;
      }

      p {
        margin-bottom: 0;
        color: var(--white);
      }

      span {
        color: var(--white);
      }

      .text-xl {
        font-size: 1.5rem;
        font-weight: 700;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;

        @media screen and (max-width: 991px) {
          font-size: 1.2rem;
        }
      }
    }

    ul,
    ol {
      li {
        margin: 15px;
      }
    }
  }

  .btn.primary {
    padding: 12px 40px;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    transition: 0.25s ease-out;

    &:hover {
      transform: scale(1.1);
    }
  }

  .account_page {
    @media screen and (max-width: 750px) {
      flex-direction: column;
    }
  }
}

@layer utilites {
  .background-dark {
    background-color: var(--dark-gray);
  }

  .background-primary {
    background-color: var(--primary);
  }

  .intro-text {
    max-width: 640px;
    font-size: 1.8em;
    line-height: normal;
  }

  .d-none,
  .hidden {
    display: none !important;
  }

  .d-flex {
    display: flex;
  }

  .flex-column {
    flex-direction: column;
  }

  .d-flex .column {
    flex-basis: 50%;
    flex-grow: 1;
  }

  .justify-center {
    justify-content: center;
  }

  .justify-between {
    justify-content: space-between;
  }

  .align-center {
    align-items: center;
  }

  .text-center {
    text-align: center;
  }

  .text-white {
    color: var(--white);
  }

  .text-black {
    color: var(--black);
  }

  .mt-2 {
    margin-top: 1.5rem;
  }

  .mt-3 {
    margin-top: 2rem;
  }

  .mt-4 {
    margin-top: 2.5rem;
  }

  .mt-5 {
    margin-top: 3rem;
  }

  .mb-2 {
    margin-bottom: 1.5rem;
  }

  .mb-3 {
    margin-bottom: 2rem;
  }

  .mb-4 {
    margin-bottom: 2.5rem;
  }

  .mb-5 {
    margin-bottom: 3rem;
  }

  .col-4 {
    width: 35%;

    @media screen and (min-width: 768px) and (max-width: 1199px) {
      width: 45%;
    }

    @media screen and (max-width: 767px) {
      width: 100%;
    }
  }

  .col-7 {
    width: 60%;

    @media screen and (min-width: 768px) and (max-width: 1199px) {
      width: 50%;
    }

    @media screen and (max-width: 767px) {
      width: 100%;
    }
  }

  .col-6 {
    width: 50%;

    @media screen and (max-width: 767px) {
      width: 100%;
    }
  }

  .gap-2 {
    gap: 0.625rem;
  }

  .gap-3 {
    gap: 1rem;
  }

  .gap-20 {
    gap: 20px;
  }

  .gap-30 {
    gap: 30px;
  }

  .gap-50 {
    gap: 50px;
  }

  @media screen and (max-width: 767px) {
    .mobile-column {
      flex-direction: column;
    }
  }

  .reverse-mobile {
    @media screen and (max-width: 767px) {
      flex-direction: column-reverse;
    }
  }
}
