// light 300; semi-regular 400; regular 500; semi-bold 600; bold 700;

$standard-vertical-spacing-between-sections: 1.5rem;
$stories-height: 6rem;
$card-radius: 1rem;

@mixin removeScrollbar {
  &::-webkit-scrollbar {
    width: 0px;
    height: 0px;
  }
}

ion-content {
  --background: var(--brand-cream-shade1);
}

h5 {
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0 0 $standard-vertical-spacing-between-sections 0;
}

.stories {
  list-style: none;
  width: calc(100% + 2rem);
  overflow-x: auto;
  overflow-y: hidden;
  height: $stories-height;
  white-space: nowrap;
  margin: $standard-vertical-spacing-between-sections 0;
  @include removeScrollbar;

  li {
    display: inline-block;
    margin: 0rem 0.5rem;
    height: 100%;

    img {
      border: 0.2rem solid var(--brand-red);
      width: $stories-height;
      height: $stories-height;
      border-radius: 50%;
      overflow: hidden;
      object-fit: cover;
      display: block;
      object-position: center;
    }
  }
}

.card {
  border-radius: $card-radius;
  overflow: hidden;
  background-color: white;
  margin: $standard-vertical-spacing-between-sections 0;

  h5, p {
    margin-bottom: 1rem;
  }

  p {
    font-size: 1.2rem;    
  }

  button {    
    padding: 0.7rem;
    width: auto;
    border-radius: 3rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;    

    ion-icon {      
      margin-right: 0.3rem;
      font-size: 2.4rem;
    }
  }
}

.action-card {
  padding: $standard-vertical-spacing-between-sections;
  display: grid;
  grid-template-columns: 0.6fr 0.4fr;
  background-image: url('../../assets/sample-images/pattern.png');
  background-repeat: repeat;
  background-size: 70%;
  box-shadow: 0px 0px 1rem var(--brand-orange-shade2);
  align-items: center;

  button {
    color: white;
    background-color: var(--brand-orange-shade1);
  }

  figure {
    display: block;

    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }
}

.image-action-card {
  box-shadow: 0px 0px 1rem var(--brand-red);
  background-color: var(--brand-red);

  figure {
    height: 20rem;
    display: block;
    
    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top;
      border-radius: $card-radius;
    }
  }

  .action-items {
    padding: 0.5rem;
  }

  button {
    margin: 0 auto;
    background-color: var(--brand-red);
    color: white;
  }
}

header {
  display: grid;
  grid-template-columns: 0.7fr 0.3fr;
}

.card-collections {
  header {
    h5 {
      margin: 0;
    }
    a {
      text-align: right;
      font-size: 1.2rem;
      background-color: transparent;
      color: var(--brand-orange-shade1);
      font-weight: 600;
    }
  }
}

.horizontal-card-list {
  list-style: none;
  width: calc(100% + 2rem);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: $standard-vertical-spacing-between-sections;
  margin: $standard-vertical-spacing-between-sections 0;
  margin-left: -$standard-vertical-spacing-between-sections;
  @include removeScrollbar;

  li {
    display: inline-block;
    margin-right: 2rem;
    position: relative;

    &::before {
      content: '';
      width: 90%;
      height: 100%;
      left: 5%;
      position: absolute;
      top: -1rem;
      background-color: var(--brand-red);
      opacity: 0.1;
      border-radius: $card-radius;
    }

    &::after {
      content: '';
      width: 100%;
      height: 100%;
      left: 0;
      position: absolute;
      top: 0rem;
      background-color: var(--brand-red);
      opacity: 0.2;
      border-radius: $card-radius;
      z-index: 1;
    }
  }

  figure {
    position: relative;
    z-index: 0;
    width: 15rem;
    height: 20rem;

    img {
      border-radius: $card-radius;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }
  }
}