/* app-info.css */
@import url("./fonts.css");
@import url("./variables.css");

.app-info-section {
  display: flex;
  font-family: var(--font-stack);
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 20px;
  padding: 15px;
  position: relative;
  box-shadow: 0 2px 2px -2px #ccc;
}

.app-info {
  display: flex;
  flex-direction: column;
}

.app-details {
  display: flex;
}

.app-icon-container {
  border-radius: 14px;
  margin-right: 15px;
}

.app-icon {
  width: 108px;
  height: 108px;
}

.share-icon {
  position: absolute;
  width: 17px;
  height: 22px;
  right: 25px;
  top: 40%;
  transition: transform 0.3s ease;
}

.share-icon:hover {
  transform: scale(1.2);
}

.app-title {
  font-family: var(--font-semi-bold);
  font-size: 20px;
  font-weight: bold;
}

.app-subtitle {
  padding-top: 5px;
  font-size: 13px;
  color: var(--secondary-color);
  margin: 5px 0;
}

.btn-get {
  width: 66px;
  height: 26px;
  margin-right: 5px;
  background-color: #007bff;
  color: #fff;
  font-family: var(--font-semi-bold);
  font-size: 14px;
  border: none;
  border-radius: 14px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.3s, color 0.3s;
}

.btn-get:hover {
  background-color: var(--secondary-color);
  color: #007bff;
}

.button-with-subtitle {
  display: flex;
  align-items: end;
}

.in-app-purchases {
  display: inline-block;
  font-size: 8px;
  color: var(--secondary-color);
  margin-top: 8px;
}

.rating-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.rating-stars {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 5px;
}

.half-star {
  position: relative;
  overflow: hidden;
}

.half-star::after {
  content: "★";
  position: absolute;
  left: 1%;
  overflow: hidden;
  direction: ltr;
  color: var(--primary-color);
  width: 49%;
}

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

.rating-value {
  margin: 0 8px;
}

.rating-count {
  font-size: 11px;
  color: var(--secondary-color);
}

.rating-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.rating-score {
  font-family: var(--font-semi-bold);
}

.age-rating-container {
  display: flex;
  justify-content: center;
  align-items: end;
  color: var(--primary-color);
  margin-right: 10px;
  flex-direction: column;
}

.age-rating {
  font-family: var(--font-semi-bold);
  margin-bottom: 5px;
  font-size: 20px;
}

.age {
  font-size: 11px;
  color: var(--secondary-color);
}

@media screen and (min-width: 992px) {
  .app-info-section {
    padding: 32px 32px 16px;
    margin-bottom: 50px;
  }

  .app-icon-container {
    margin-right: 35px;
  }

  .app-icon {
    width: 190px;
    height: 190px;
  }

  .share-icon {
    top: 30%;
  }

  .app-subtitle {
    font-size: 17px;
  }

  .rating-info {
    margin-left: 60px;
    margin-top: 20px;
  }

  .age-rating-container {
    margin-right: 25px;
  }

  .btn-get {
    font-size: 16px;
  }
}
