/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.app-text-link {
  color: #b45539;
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-color: #e6ad8c;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 150ms ease;
}

.app-text-link:hover {
  color: #934427;
}

.app-text-link:focus-visible {
  border-radius: 0.25rem;
  outline: 2px solid #d96d4b;
  outline-offset: 3px;
}

.books-view-option {
  border-radius: 9999px;
  color: #687066;
  padding: 0.45rem 0.85rem;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.books-view-option:hover {
  color: #26352b;
}

.books-view-option.is-active {
  background: #24382d;
  box-shadow: 0 1px 3px rgb(38 53 43 / 18%);
  color: #fffdf8;
}

.books-table-surface {
  background-color: #e8cfaa;
  background-image:
    linear-gradient(90deg, rgb(104 63 31 / 7%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 248 226 / 20%), transparent 47%, rgb(112 67 33 / 9%)),
    repeating-linear-gradient(3deg, #e2c091 0 1px, #edcf9e 1px 4.5rem, #d9ae79 4.5rem 4.7rem, #eccb99 4.7rem 9.1rem);
  background-size: 12rem 100%, 100% 100%, 100% 100%;
}

.table-album {
  background: linear-gradient(135deg, rgb(255 255 255 / 25%), transparent 35%), var(--book-tone);
  box-shadow: 0 0.75rem 0 #d6c8b0, 0 0.98rem 1.2rem rgb(77 46 19 / 25%), inset 0 1px rgb(255 255 255 / 28%);
  transform: rotate(var(--album-angle, -1deg));
}

.table-album:nth-child(3n + 2) { --album-angle: 1.15deg; }
.table-album:nth-child(3n) { --album-angle: -0.4deg; }

.table-album-cover {
  background: #fffdf6;
  border: 0.5rem solid #fffdf6;
  box-sizing: border-box;
  box-shadow: 0 0.45rem 0.75rem rgb(40 27 15 / 18%), inset 0 0 0 1px rgb(50 35 19 / 12%);
  padding: 0;
}

.table-album-cover img {
  display: block;
}

.books-shelf-surface {
  background:
    linear-gradient(#f6e5c5 0 0) bottom / 100% 1.2rem no-repeat,
    linear-gradient(#9a6539 0 0) bottom / 100% 0.65rem no-repeat,
    linear-gradient(0deg, rgb(61 35 16 / 30%), transparent 2.4rem) bottom / 100% 2.5rem no-repeat,
    linear-gradient(90deg, rgb(255 255 255 / 46%), transparent 12%, transparent 88%, rgb(109 69 35 / 16%)),
    #f0e4cf;
}

.book-spine {
  align-items: center;
  background: linear-gradient(90deg, rgb(0 0 0 / 20%), transparent 11%, transparent 84%, rgb(255 255 255 / 16%)), var(--book-tone);
  box-shadow: 3px 0 5px rgb(42 28 15 / 22%), inset 1px 0 rgb(255 255 255 / 15%);
  color: var(--book-tone-text);
  display: flex;
  flex: 0 0 2.7rem !important;
  height: 17.5rem;
  justify-content: center;
  min-height: 0;
  min-width: 0 !important;
  max-width: 2.7rem !important;
  overflow: hidden;
  padding: 0.75rem 0.35rem;
  position: relative;
  text-align: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.book-spine-title {
  flex: none;
  max-width: none;
  overflow: hidden;
  transform: rotate(-90deg);
  white-space: nowrap;
}

.book-spine::before,
.book-spine::after {
  background: rgb(255 255 255 / 26%);
  content: "";
  height: 1px;
  left: 18%;
  position: absolute;
  right: 18%;
}

.book-spine::before { top: 0.65rem; }
.book-spine::after { bottom: 0.65rem; }

.book-spine:hover {
  filter: brightness(1.08);
  transform: translateY(-0.6rem);
}

@media (max-width: 639px) {
  .book-spine {
    flex-basis: 2.7rem !important;
    height: 14rem;
  }
}
