@import url("/assets/shared-f8650b14.css");
@import url("/assets/public_carts-ba65ac23.css");
@import url("/assets/public_products-dd865e45.css");
@import url("/assets/desktop-b9ffcfd7.css");

html {
  margin: 0 2rem;
}

html,
body {
  background-color: var(--color-surface);
  color: var(--color-text);
  font-family: "PT Sans", sans-serif;
  font-style: normal;
  font-weight: 400;
  height: 100%;
  min-height: 100dvh;
  min-height: 100vh;
}

h1,
h2,
h3 {
  /*font-family: "Trade Winds", system-ui;*/
  font-weight: 400;
  font-style: normal;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

.input {
  color: var(--color-text-inverted);
}

#main {
  display: flex;
  align-items: flex-start;
}

#view {
  font-size: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 100px;
  padding-bottom: 20rem;
  width: 100%;
  flex: 1;
  min-width: 0;
  z-index: 10;
  position: relative;
  view-transition-name: main-content;
}

.back-link,
.public-button {
  -webkit-transition: all 300ms;
  background-color: var(--color-text);
  border-color: var(--color-text);
  border-radius: 0.5rem;
  border: 1px var(--color-text-inverted) solid;
  color: var(--color-text-inverted);
  cursor: pointer;
  display: flex;
  padding: 0.5rem;
  transition: all 300ms;
  width: fit-content;
}

.back-link:hover {
  background-color: var(--color-surface-raised);
  color: var(--color-text);
}

.back-link {
  margin: 3rem auto;
  grid-column: span 2;
}

/* Homepage */

#view > #logo {
  width: min(80%, 800px);
  height: auto;
  margin-inline: auto;
  display: block;
}

.links-container {
  display: grid;
  gap: 1rem;
  height: fit-content;
  text-align: center;
}

/* LoginForm */

.admin-login-form {
  border-color: var(--color-border);
  border-radius: 1rem;
  border: 1px var(--color-border) solid;
  margin: 3rem auto;

  form {
    height: 100%;

    .form-inputs-container {
      align-content: center;
      height: 80%;
      margin: 0 auto;
      width: 80%;

      .input-container {
        color: var(--color-text-inverted);
        display: block;
        font-size: 2rem;
        grid-row-gap: 0.5rem;
        margin: 1rem auto;

        .input {
          width: -webkit-fill-available;
        }
      }
    }
    .form-buttons-container {
      text-align: center;
    }
  }
}

/* STATIC_PAGES */

.page-title {
  font-size: 2rem;
  margin: 0 auto;
  text-transform: uppercase;
  width: fit-content;
}

.static-page-container {
  display: grid;
  align-items: center;
  gap: 1rem;
}

.page-body {
  p {
    margin: 1rem 0.5rem;
  }
  ul {
    margin: 1rem 0.5rem 1rem 2rem;
    list-style: disc;
  }
  h3 {
    text-decoration: underline;
  }
}
.page-body.f-1 {
  font-size: 1.5rem;
}

#contact-button {
  margin: 2rem auto auto auto;
}

.links {
  display: grid;
  gap: 1rem;
  margin: 3rem auto 0 auto;
  text-align: center;
  width: fit-content;

  a {
    -webkit-transition: all 300ms;
    background-color: var(--color-text);
    border-color: var(--color-text);
    border-radius: 0.5rem;
    border: 1px var(--color-text-inverted) solid;
    color: var(--color-text-inverted);
    cursor: pointer;
    display: grid;
    grid-template-columns: 3rem 1fr;
    padding: 0.5rem;
    transition: all 300ms;
    width: 12rem;

    svg {
      align-self: center;
    }
  }
}

#band {
  margin: 2rem auto;
}

/* ALBUMS */

.albums-index {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  line-height: 3rem;
  margin-top: 3rem;

  .album-item {
    transition: box-shadow 200ms ease;
    border-radius: 0.5rem;
    padding: 1rem;

    &:hover {
      box-shadow: 0 4px 20px rgba(255, 255, 255, 0.08);
    }
  }

  .album-link {
    display: block;
    text-decoration: none;
    color: inherit;
  }

  .main-picture img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    border-radius: 0.5rem;
  }
}

/* CATEGORIES */

.products-container {
  display: grid;
  gap: 3rem;
  line-height: 3rem;
  margin-top: 3rem;

  .product-item {
    transition: box-shadow 200ms ease;
    border-radius: 0.5rem;
    padding: 1rem;

    &:hover {
      box-shadow: 0 4px 20px rgba(255, 255, 255, 0.08);
    }
  }

  .product-link {
    display: grid;
  }
}

/* NAVIGATION */

#navbar {
  align-items: center;
  background-color: var(--color-surface);
  color: var(--color-text);
  display: grid;
  grid-template-columns: auto 1fr;
  height: 90px;
  left: 0;
  position: fixed;
  text-align: center;
  top: 0;
  width: 100%;
  z-index: 1000;
  view-transition-name: navbar;

  .logo-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;

    #logo {
      height: 70%;
      width: 5rem;
    }
  }

}

#cart-wrapper {
  margin-left: auto;
  padding-right: 1.5rem;
  position: relative;
  display: flex;
  align-items: center;

  #cart-button {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
  }

  svg {
    height: 3rem;
    width: 3rem;
  }

  #cart-counter {
    background-color: var(--color-text);
    color: var(--color-text-inverted);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    min-width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.4rem;
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    pointer-events: none;
  }
}

/* ORDERS */

#checkout {
  .public-orders-news-consent-form,
  .preorder-message {
    margin: 3rem auto;
    text-align: center;
  }
}

#comment-thanks,
#comment {
  text-align: center;
  margin: 3rem auto;

  .leave-comment {
    margin: 3rem auto 1rem auto;
  }
}
#comment-thanks {
  font-size: 3rem;
}

#success {
  #message {
    text-align: center;

    .icon {
      font-size: 3rem;
    }
  }

  .email-sent {
    text-align: center;
  }
}

/* UI */

.facebook,
#bandcamp,
#instagram,
#spotify {
  height: 2rem;
}

/* USERS */


/* ERRORS */

.public-errors-address-error,
.public-errors-country-error,
.public-errors-cart-error,
.public-errors-error500,
.public-errors-error404 {
  text-align: center;
}

/* ALBUMS */

#public-albums-collection {
  display: grid;
  gap: 2rem;

  .public-album {
    transition: box-shadow 200ms ease;
    border-radius: 0.5rem;
    padding: 1rem;

    &:hover {
      box-shadow: 0 4px 20px rgba(255, 255, 255, 0.08);
    }

    .title {
      font-size: 3rem;
      text-align: center;
    }
  }
}

.album-show {
  .accordion-section {
    font-size: 2rem;
    margin: 1rem;
    padding: 1rem 0;

    .collapsible-header {
      border-bottom: 1px solid var(--color-border-strong);
      margin-bottom: 2rem;
    }
  }
  .public-albums-making-of {
    .container {
      display: grid;
      gap: 2rem;
    }
    .public-image {
      display: grid;
      gap: 1rem;
    }
  }
  .share-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    width: fit-content;
    margin-left: auto;
  }
  .public-albums-products {
    .container {
      display: grid;
      gap: 2rem;
    }
    .product-show {
      border-bottom: 1px solid var(--color-border-strong);

      .product-title {
        display: none;
      }
    }
  }
}
