/* TOC
*   - Components
*   - Post
*   - Calories
*   - Checkins
*   - Sleep
*   - Flights
*/
/* --------------- Components --------------- */
.card-stats__wrapper {
  display: flex;
  flex-direction: row;
  gap: var(--gap);
  flex-wrap: wrap;
  align-items: center;
}
.card-stats__number {
  font-size: 18px;
  font-weight: 500;
}
.card-stats__label {
  font-size: 15px;
  color: var(--paragraph-alt);
}
/* --------------- Checkins --------------- */
.checkins__coins-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checkins__coins-header, .checkins__coin-item, .checkins__coins-total {
  display: flex;
  align-items: center;
  gap: var(--gap);
}
.checkins__coins-title {
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 0;
}
.checkins__coins-total {
  gap: 3px;
  font-weight: 500;
}
.checkins__coin-icon, .checkins__coins-coin {
  min-width: 30px;
  width: 30px;
}
.checkins__coin-icon {
  margin-top: 3px;
}
.checkins__coin-points, .checkins__coins-total {
  margin-left: auto;
}
/* --------------- Sleep --------------- */
.type-sleep rect {
  transition: 0.3s;
}
.type-sleep rect:hover {
  opacity: 0.8;
}
/* --------------- Flights --------------- */
.flight-path {
  display: flex;
  margin-bottom: var(--gap);
}
.flight-card {
  flex-grow: 1;
  width: 40%;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.4em;
}
.airport {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.airport .name {
  font-weight: bold;
}
.code {
  color: var(--white);
  background: var(--primary);
  padding: 0.3rem 0.6rem;
  border-radius: 0.4em;
  margin-right: 5px;
  width: fit-content;
  font-size: 0.8rem;
}
.location {
  font-size: 0.9rem;
}
.airline-logo img {
  max-width: 120px;
}
.arrow {
  display: flex;
  justify-content: center;
}
.arrow-right {
  width: 80px;
  position: relative;
}
.arrow-right:after, .arrow-right:before {
  content: "";
  display: block;
  position: absolute;
  transition: all 0.5s ease-in-out;
}
.arrow-right:before {
  top: 50%;
  right: 1em;
  width: 1em;
  height: 1em;
  transform-origin: 50% 50%;
  transform: translate(0, -0.5em) rotate(45deg);
  box-shadow: inset -0.2em 0.2em 0 0 #e74c3c;
  border-radius: 0 0.15em 0 0;
}
.arrow-right:after {
  top: 50%;
  right: 1em;
  width: calc(100% - 30px);
  height: 0.2em;
  transform: translate(0, -0.1em);
  background-color: #e74c3c;
}
.arrow-down {
  display: none;
}
@media (max-width: 544px) {
  .flight-path {
    flex-direction: column;
    gap: var(--gap);
  }
  .flight-card {
    width: 100%;
  }
  .arrow-right {
    display: none;
  }
  .arrow-down {
    display: block;
    fill: var(--primary);
    max-width: 20px;
  }
}
