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

.acc__card {
  position: relative;

  flex: 0 0 340px;
  width: 340px;

  display: flex;
  flex-direction: column;

  min-height: 100%;

  padding: 1.8rem;

  border-radius: 24px;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.025) 0%,
      rgba(255, 255, 255, 0.008) 100%
    );

  border: 1px solid rgba(255, 255, 255, 0.06);

  backdrop-filter: blur(20px);

  transition: all 0.35s ease;

  cursor: pointer;

  @media (max-width: 1000px) {
    width: 100%;
    min-width: 100%;
    flex: none;

    padding: 1.4rem;

    min-height: auto;
  }

  &::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
      radial-gradient(
        circle at top right,
        rgba(247, 147, 24, 0.06),
        transparent 45%
      );

    opacity: 0;

    transition: 0.35s ease;

    pointer-events: none;
  }

  &:hover {
    transform: translateX(3px);

    border-color:
      rgba(
        247,
        147,
        24,
        0.18
      );

    box-shadow:
      0 24px 50px rgba(0, 0, 0, 0.35);

    &::before {
      opacity: 1;
    }
  }

  /* =======================================
     CURRENT PLAN
  ======================================= */

  &__current {
    border-color:
      rgba(
        247,
        147,
        24,
        0.22
      );

    background:
      linear-gradient(
        180deg,
        rgba(247, 147, 24, 0.08),
        rgba(247, 147, 24, 0.02)
      );

    box-shadow:
      0 0 0 1px rgba(247, 147, 24, 0.12),
      0 25px 60px rgba(0, 0, 0, 0.35);

    &::before {
      opacity: 1;
    }
  }

  /* =======================================
     BADGE
  ======================================= */

  &__badge {
    position: absolute;

    top: 1rem;
    right: 1rem;

    padding: 0.45rem 0.85rem;

    border-radius: 999px;

    background:
      rgba(
        247,
        147,
        24,
        0.12
      );

    border:
      1px solid
      rgba(
        247,
        147,
        24,
        0.15
      );

    color: #f79318;

    font-size: 0.7rem;

    font-weight: 600;

    letter-spacing: 0.04em;

    z-index: 3;
  }

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

  &__header {
    margin-bottom: 2rem;

    h2 {
      color: #fff;

      font-size: 1.15rem;

      font-weight: 700;

      line-height: 1.3;

      margin-bottom: 0.6rem;
    }

    p {
      color:
        rgba(
          255,
          255,
          255,
          0.58
        );

      font-size: 0.82rem;

      line-height: 1.9;
    }
  }

  /* =======================================
     PRICE
  ======================================= */

  &__price {
    margin-bottom: 1.7rem;

    padding-bottom: 1.5rem;

    border-bottom:
      1px solid
      rgba(
        255,
        255,
        255,
        0.05
      );

    h1 {
      color: #fff;

      font-size: 1.8rem;

      font-weight: 700;

      letter-spacing: -0.03em;

      line-height: 1;
    }

    span {
      display: block;

      margin-top: 0.4rem;

      color:
        rgba(
          255,
          255,
          255,
          0.5
        );

      font-size: 0.78rem;
    }
  }

  /* =======================================
     BUTTONS
  ======================================= */

  &__upgradeBtn,
  &__currentBtn {
    width: 100%;

    min-height: 46px;

    padding: 0.85rem 1rem;

    border-radius: 14px;

    border: none;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    font-size: 0.85rem;

    font-weight: 600;

    line-height: 1;

    margin-bottom: 1.7rem;

    transition: all 0.25s ease;

    flex-shrink: 0;
  }

  &__upgradeBtn {
    background:
      linear-gradient(
        135deg,
        #f79318,
        #ffb454
      );

    color: #111;

    cursor: pointer;

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

      box-shadow:
        0 12px 30px
        rgba(
          247,
          147,
          24,
          0.28
        );
    }
  }

  &__currentBtn {
    background:
      rgba(
        255,
        255,
        255,
        0.04
      );

    border:
      1px solid
      rgba(
        255,
        255,
        255,
        0.06
      );

    color:
      rgba(
        255,
        255,
        255,
        0.7
      );

    cursor: not-allowed;
  }

  /* =======================================
     FEATURES
  ======================================= */

  &__features {
    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 0.85rem;

    padding-bottom: 0.5rem;

    p {
      display: flex;

      align-items: center;

      gap: 0.85rem;

      color:
        rgba(
          255,
          255,
          255,
          0.82
        );

      font-size: 0.82rem;

      line-height: 1.6;
    }

    svg {
      color: #f79318;

      font-size: 1rem;

      flex-shrink: 0;
    }
  }

  /* =======================================
     ADMIN ACTIONS
  ======================================= */

  &__actions {
    display: flex;

    gap: 0.75rem;

    margin-top: auto;

    padding-top: 1.25rem;

    border-top:
      1px solid
      rgba(
        255,
        255,
        255,
        0.05
      );

    flex-shrink: 0;
  }

  &__edit,
  &__delete {
    flex: 1;

    height: 44px;

    border-radius: 12px;

    border: none;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.55rem;

    font-size: 0.8rem;

    font-weight: 600;

    cursor: pointer;

    transition: 0.25s ease;
  }

  &__edit {
    background:
      rgba(
        34,
        197,
        94,
        0.1
      );

    border:
      1px solid
      rgba(
        34,
        197,
        94,
        0.15
      );

    color: #22c55e;

    &:hover {
      background:
        rgba(
          34,
          197,
          94,
          0.18
        );
    }
  }

  &__delete {
    background:
      rgba(
        239,
        68,
        68,
        0.1
      );

    border:
      1px solid
      rgba(
        239,
        68,
        68,
        0.15
      );

    color: #ef4444;

    &:hover {
      background:
        rgba(
          239,
          68,
          68,
          0.18
        );
    }
  }
}