
html {
    background-image: url("/assets/back-for-book-5cdca9b5.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
  }
  
  html::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: -1;
  }
  
  /* ── General ─────────────────────────────────────── */
  
  main {
    max-width: 1280px;
    margin: 0 auto;
    margin-top: 40px;
    padding-left: 50px;
    padding-right: 50px;
  }
  
  /* ── Book card ─────────────────────────────────────── */
  .book-card {
    width: 100px;
    height: 148px;
    box-shadow: -2px 3px 8px rgba(0,0,0,0.28), inset -3px 0 6px rgba(0,0,0,0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  
  .book-card:hover {
    transform: translateY(-6px);
    box-shadow: -2px 10px 20px rgba(0,0,0,0.3), inset -3px 0 6px rgba(0,0,0,0.12);
  }
  
  /* ── Shelf surface & plank ─────────────────────────── */
  .shelf-surface {
    background: linear-gradient(180deg, #f9f0e3 0%, #f0e0c8 100%);
    border: 1px solid #d4b896;
    border-radius: 8px;
    min-height: 168px;
  }
  
  .shelf-surface--small {
    min-height: 128px;
    background: linear-gradient(180deg, #f3ede6 0%, #e8dcd0 100%);
  }
  
  .shelf-plank {
    height: 16px;
    background: linear-gradient(180deg, #a0714f 0%, #7d5232 100%);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  
  /* -- Typography -- */
  
  h1.heading-h1 {
    font-size: 3rem;
  }
  h2.heading-h2 {
    font-size: 2.5rem;
  }
  h3.heading-h3 {
    font-size: 2rem !important;
  }
  p {
    font-size: 1rem;
    color: #253D2C;
  }
  
  /* ── Books row ─────────────────────────────────────── */
  .books-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
  
    .book-card {
      width: 100%;
      height: auto;
    }
  }
  .button {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 25px;
    padding-right: 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    min-width: 200px;
    transition: 500ms;
    white-space: nowrap;
    cursor: pointer;
  }
  .button-primary {
    background-color: #2E6F40;
    color: #ffffff;
    border: 1px solid #2E6F40;
  }
  .button-primary:hover {
    background-color: #68BA7F;
    color: #ffffff;
  }
  .button-secondary {
    background-color: #CFFFDC;
    color: #253D2C;
    border: 1px solid #CFFFDC;
  }
  .button-secondary:hover {
    background-color: #68BA7F;
    color: #253D2C;
  }
  
  
  /* -- Forms -- */

  form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .form-backgroung {
    padding: 2rem 3rem;
    background-color: #e3fbe9;
    border: 1px solid #2E6F40;
    border-radius: 20px;
  }
  input:not([type="submit"]), textarea, select {
    height: 40px;
    padding-left: 16px;
    padding-right: 16px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    border: 1px solid #2E6F40;
    background: #ffffff;
    width: 100%;
  }
  textarea {
    height: 120px;
  }
  
  /* -- User -- */
  
  .user-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 20px 40px;
    background: #e3fbe9;
    border-radius: 60px;
    border: 1px solid #2E6F40;
    margin-bottom: 30px;
    margin-top: 30px;
  }
  
  .avatar {
    max-width: 120px;
    height: auto;
    border-radius: 50%;
    overflow: hidden;
  }
  
  .icon {
    width: 48px;
    height: 48px;
    background-image: url("/app/assets/images/books.svg");
    background-size: contain;
  }
  
  .header-item {
    font-size: 20px;
    font-weight: 500;
    color: #253D2C;
  }

/* ── Site header ───────────────────────────────────── */

.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(46, 111, 64, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(46, 111, 64, 0.08);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 50px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo__img {
  transition: transform 0.2s ease;
}

.header-logo:hover .header-logo__img {
  transform: scale(1.08);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.header-nav .header-item a {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #253D2C;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.header-nav .header-item a:hover {
  background: #e3fbe9;
  color: #2E6F40;
}

/* ── User avatar ───────────────────────────────────── */

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2E6F40, #68BA7F);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
}

.user-avatar--lg {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

/* ── User dropdown menu ─────────────────────────────── */

.profile-wrapper {
    position: relative;
    display: inline-block;
  }
  
  .profile-wrapper:hover .profile-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
  
  .profile-menu {
    position: absolute;
    right: 0;
    top: 100%; 
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    background: #ffffff;
    padding-top: 20px;
    z-index: 3;
    width: 100%;

  }
  
  .profile-menu a {
    display: block;
    padding: 10px 20px;
    color: #3b2a1a;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s ease;
  }
  .profile-menu a:hover {
    background: #CFFFDC;
  }
  