@use "../../../../styles/abstracts/variables" as *;
@use "../../../../styles/abstracts/mixins" as *;

.upgrade {
  @include pageBase;

  & {
    width: 100%;
    overflow-x: hidden;
  }

  &--account {
    background: $col-orange;
    color: $col-dark;
    display: inline-block;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all ease-in-out .5s;
    &:hover {
      background: rgb(204, 79, 34);
    }
  }

  &--plans {
    padding-top: 1rem;

    &--header {
      h1 {
        font-weight: 500;
        font-size: .95rem;
        color: $col-white;
      }

      p {
        font-size: 0.85rem;
        color: $col-white;
      }
    }

    &--plans {
      display: flex;
      overflow-x: auto;
      gap: 25px;
      padding-top: 2rem;

      @media only screen and (max-width: 1000px){
        gap: 15px;
      }
    }
  }

  // 🔸 Skeleton Styles
  .plan-card-skeleton {
    background: #1b1b1b;
    border-radius: 8px;
    padding: 1.5rem;
    width: 280px;
    min-height: 260px;
    animation: pulse 1.5s infinite ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-shrink: 0;

    &__header,
    &__subtext,
    &__price,
    &__button {
      background-color: #2a2a2a;
      border-radius: 4px;
    }

    &__header {
      width: 60%;
      height: 20px;
    }

    &__subtext {
      width: 80%;
      height: 14px;
    }

    &__price {
      width: 30%;
      height: 24px;
      margin-top: 1rem;
    }

    &__features {
      list-style: none;
      padding: 0;
      margin: 1rem 0;
      display: flex;
      flex-direction: column;
      gap: 10px;

      li {
        background-color: #2a2a2a;
        height: 12px;
        border-radius: 4px;
        width: 90%;
      }
    }

    &__button {
      width: 50%;
      height: 36px;
      margin-top: auto;
    }
  }

  @keyframes pulse {
    0% {
      background-color: #1b1b1b;
    }
    50% {
      background-color: #2c2c2c;
    }
    100% {
      background-color: #1b1b1b;
    }
  }
}
