@import url(./styles/reset.css);
@import url(./styles/base.css);
@import url(./styles/fonts.css);
@import url(./styles/lists.css);
@import url(./styles/sections.css);
@import url(./styles/text.css);
@import url(./styles/card.css);
@import url(./styles/media.css);

#fullpage {
  display: none;
  position: absolute;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: contain;
  background-repeat: no-repeat no-repeat;
  background-position: center center;
  background-color: black;

  .close-button {
    position: absolute;
    top: 25px;
    right: 25px;
    background-color: var(--blue);
    border-radius: 50%;
    filter: drop-shadow(0px 24px 48px #e6ebf566);
    cursor: pointer;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;

    &:hover {
      opacity: 0.8;
    }
  }
}

.header-container {
  display: flex;
  margin: 0 auto;

  .header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;

    h1 {
      text-align: left;
      margin: 0 0 16px 0;
    }

    .header-subtitle {
      text-align: left;
    }
  }

  .robot-image {
    height: 222px;
    width: 222px;
  }
}

.robot-max-section-container {
  .header {
    text-align: center;
  }

  .info-container {
    margin: 40px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 32px;
    grid-auto-flow: row;
    grid-template-areas:
      ". ."
      ". .";

    .card {
      display: flex;
      align-items: flex-start;
      flex-direction: column;
      justify-content: flex-start;
      padding: 20px;

      .info-card-header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 16px;
        margin-bottom: 16px;
      }

      ul > li {
        padding-left: 12px;

        &::before {
          padding-top: 2px;
          content: url("../assets/icons/circle-check.svg");
        }
      }
    }
  }

  .card-content-rules {
    color: var(--text-gray);
  }
}

.mobile-menu-section {
  display: none;

  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;

    h4 {
      padding-bottom: 16px;
    }

    p {
      padding-bottom: 4px;
    }

    .dropdown {
      position: relative;
      display: inline-block;
      font-family: Arial, sans-serif;
    }

    .dropdown-btn {
      border-radius: 4px;
      background-color: var(--gray-bg);
      padding: 14px 50px 14px 16px;
      border: none;
      cursor: pointer;
      width: 100%;
      box-sizing: border-box;
      text-overflow: ellipsis;
      white-space: nowrap;
      display: block;
      overflow: hidden;
    }

    .dropdown-icon {
      position: absolute;
      top: 0;
      right: 0;
      margin: 11px 16px;

      &.show {
        transform: rotate(180deg);
      }
    }

    .dropdown-content {
      display: none;
      position: absolute;
      background-color: var(--gray-bg);
      box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
      z-index: 1;
      border-radius: 4px;

      &.show {
        display: block;
      }
    }

    .dropdown-content a {
      color: black;
      padding: 12px 16px;
      text-decoration: none;
      display: block;
    }

    .dropdown-content a:hover {
      background-color: #f1f1f1;
    }
  }
}

.menu-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 32px;
  max-width: 1216px;

  .menu {
    position: sticky;
    top: 48px;
    min-width: 280px;
    width: 280px;

    display: flex;
    flex-direction: column;
    gap: 20px;

    h4 {
      padding-bottom: 4px;
    }

    .menu-anchor {
      display: flex;
      flex-direction: column;
      gap: 4px;

      a {
        margin-right: 36px;
        display: block;
      }
    }
  }

  .menu-content-container {
    display: flex;
    flex-direction: column;
    width: 100%;

    .menu-item {
      width: 100%;
      padding: 42px 0;

      .menu-item-container {
        max-width: 904px;
        margin: 0 0 0 auto;
        display: flex;
        flex-direction: column;
        gap: 32px;
        align-items: flex-start;

        h2 {
          margin-bottom: 0;
        }

        .switcher-block {
          display: flex;
          flex-direction: column;
          gap: 24px;
          width: 100%;

          .buttons-block {
            display: flex;

            .switcher-button {
              cursor: pointer;
              padding: 8px 16px;
              font-size: 14px;
              color: var(--button-primary);
              border-radius: 8px;

              &.active {
                background-color: var(--secobdary-bg);
                color: var(--text-gray) !important;
              }

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

          .card {
            display: none;

            &.visible {
              display: block;
            }

            .max-outside-action {
              width: max-content;
              height: max-content;
              padding: 8px 12px;
              border-radius: 4px 20px 20px 20px;
              background: linear-gradient(
                305.05deg,
                #1d5deb -37.02%,
                #1349be 51.26%
              );
              color: var(--text-white);
            }
          }
        }
      }

      .dictionary > .card > .case-cards {
        gap: 16px;

        .case-content:last-child > .dictionary-buttons {
          margin-bottom: 35%;
        }

        .case-content-block > .case-content {
          display: flex;
          align-items: center;
          gap: 8px;

          .max-like-dislike {
            display: flex;
            flex-direction: column;
            height: 100%;
            justify-content: space-between;

            .case-type {
              margin: 20px 0 0 8px;
            }

            img {
              width: 132px;
              height: 132px;
              margin-bottom: 32px;
            }
          }

          .dictionary-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;

            div {
              display: flex;
              align-items: center;
              height: 32px;
              background-color: var(--border);
              border-radius: 12px;
              padding: 0 12px;

              span {
                padding-bottom: 3px;
              }
            }
          }
        }
      }

      .gpt-version {
        .case-cards.case-cards-images {
          .case-cards-flex {
            gap: 32px;

            .case-content > .image {
              margin-bottom: 12px;

              &:last-child {
                margin-bottom: 0;
              }
            }
          }
        }
      }
    }

    .first-menu-item {
      padding-top: 0;
    }

    .last-menu-item {
      padding-bottom: 0;
    }
  }
}

.feedback-block {
  .container {
    .feedback {
      display: flex;
      gap: 24px;

      .feedback-content {
        display: flex;
        flex-direction: column;
        gap: 8px;
      }
    }
  }
}
