/* Apps gallery */
.apps-intro {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.7;
}

.app-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 23rem));
  gap: 1.5rem;
  align-items: start;
  margin: 0.5rem 0 2rem;
}

.app-card {
  overflow: hidden;
  border: 1px solid rgb(128 128 128 / 18%);
  border-radius: 1.25rem;
  background: var(--card-bg);
  box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 8%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgb(238 171 148 / 55%);
  box-shadow: 0 1.25rem 3rem rgb(0 0 0 / 14%);
}

.app-card-link,
.app-card-link:hover {
  display: block;
  color: inherit;
  text-decoration: none;
}

.app-card-link:focus-visible {
  outline: 3px solid var(--link-color);
  outline-offset: -3px;
  border-radius: inherit;
}

.app-card-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1200 / 630;
  background: #f8f4ec;
  background-image: var(--app-cover);
  background-position: center;
  background-size: cover;
  transition: transform 300ms ease;
}

.app-status {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 999px;
  color: #122149;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 0.35rem 1rem rgb(17 30 68 / 12%);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.app-card-body {
  padding: 1.25rem;
}

.app-card-heading {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.app-card-icon {
  display: block;
  flex: 0 0 auto;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.1rem;
  background-image: var(--app-icon);
  background-position: center;
  background-size: cover;
  box-shadow: 0 0.55rem 1.4rem rgb(17 30 68 / 18%);
}

.app-card-heading h2 {
  margin: 0 0 0.15rem;
  color: var(--heading-color);
  font-size: 1.45rem;
  line-height: 1.2;
}

.app-tagline {
  margin: 0;
  color: var(--text-color);
  font-size: 0.92rem;
  line-height: 1.4;
}

.app-description {
  margin: 1.15rem 0 1rem;
  color: var(--text-color);
  line-height: 1.6;
}

.app-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.app-platforms li {
  padding: 0.3rem 0.65rem;
  border: 1px solid rgb(128 128 128 / 20%);
  border-radius: 999px;
  color: var(--text-color);
  background: var(--main-bg);
  font-size: 0.78rem;
  font-weight: 600;
}

.app-card-cta {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  color: var(--link-color);
  font-size: 0.9rem;
  font-weight: 700;
}

.app-card-cta .fa-arrow-up-right-from-square {
  margin-left: auto;
  font-size: 0.72rem;
}

/* Newest app in the sidebar */
.newest-app-wrapper {
  width: 100%;
  padding: 0 1.5rem;
  margin-top: -0.6rem;
  margin-bottom: 1.25rem;
}

.newest-app-label {
  margin: 0 0 0.55rem 0.75rem;
  color: var(--sidebar-muted-color);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

#sidebar .newest-app-link {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid var(--sidebar-border-color);
  border-radius: 0.9rem;
  background: rgb(255 255 255 / 2%);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

#sidebar .newest-app-link:hover {
  transform: translateY(-2px);
  border-color: rgb(238 171 148 / 38%);
  color: var(--sidebar-active-color);
  background: var(--sidebar-hover-bg);
}

#sidebar .newest-app-link:focus-visible {
  outline: 2px solid var(--sidebar-active-color);
  outline-offset: 2px;
}

.newest-app-icon {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.72rem;
  box-shadow: 0 0.35rem 0.9rem rgb(0 0 0 / 18%);
}

.newest-app-copy {
  min-width: 0;
}

.newest-app-copy strong,
.newest-app-copy small {
  display: block;
}

.newest-app-copy strong {
  color: var(--sidebar-active-color);
  font-size: 0.9rem;
  line-height: 1.25;
}

.newest-app-copy small {
  overflow: hidden;
  margin-top: 0.1rem;
  color: var(--sidebar-muted-color);
  font-size: 0.7rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.newest-app-arrow {
  margin-left: auto;
  color: var(--sidebar-muted-color);
  font-size: 0.7rem;
}

@media (min-width: 1650px) {
  .newest-app-wrapper {
    padding-right: 2.75rem;
    padding-left: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-card,
  .app-card-visual,
  #sidebar .newest-app-link {
    transition: none;
  }
}
