/* Exact Book of the Day component treatment from sample.html.
   Loaded after main.css to prevent dashboard rules from changing it. */
.book-of-day-section {
  width: 100%;
}

.book-of-day-section .section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.book-of-day-section .section-link {
  cursor: pointer;
}

.book-of-day-section .botd-card {
  position: relative;
  width: 100%;
  min-height: 132px;
  margin: 0 0 14px;
  padding: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  background: var(--card-bg);
  box-shadow: var(--shadow-md);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transform: none;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}

.book-of-day-section .botd-card:hover {
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  transform: none;
}

.book-of-day-section .botd-card:active {
  transform: scale(.98);
}

.book-of-day-section .botd-card:focus-visible {
  outline: 3px solid rgba(86,50,195,.28);
  outline-offset: 3px;
}

.book-of-day-section .botd-card::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(127,114,75,.08) 0%,transparent 70%);
  pointer-events: none;
}

.book-of-day-section .botd-cover {
  position: relative;
  width: 70px;
  min-width: 70px;
  height: 98px;
  padding: 0;
  overflow: hidden;
  display: block;
  align-self: center;
  border-radius: var(--radius-sm);
  background: var(--section-bg);
  box-shadow: var(--shadow-md);
}

.book-of-day-section .botd-cover img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-of-day-section .botd-cover::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 45px;
  background: linear-gradient(to top,rgba(0,0,0,.18),transparent);
  pointer-events: none;
}

.book-of-day-section .botd-info {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: block;
  color: var(--text-primary);
}

.book-of-day-section .botd-label {
  width: max-content;
  max-width: 100%;
  margin: 0 0 6px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-full);
  color: var(--accent-tertiary);
  background: var(--quote-bg);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.book-of-day-section .botd-label svg {
  width: 10px;
  min-width: 10px;
  height: 10px;
  color: currentColor;
}

.book-of-day-section .botd-title {
  width: 100%;
  margin: 0 0 2px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.2px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.book-of-day-section .botd-author {
  width: 100%;
  margin: 0 0 8px;
  display: block;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-of-day-section .botd-meta {
  width: 100%;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.book-of-day-section .botd-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.book-of-day-section .botd-meta svg {
  width: 11px;
  min-width: 11px;
  height: 11px;
  color: var(--accent-tertiary);
}

.book-of-day-section .botd-cta {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.book-of-day-section .botd-cta svg {
  width: 13px;
  min-width: 13px;
  height: 13px;
  color: currentColor;
}

[dir="rtl"] .book-of-day-section .botd-card {
  text-align: right;
}

[dir="rtl"] .book-of-day-section .botd-card::before {
  right: auto;
  left: -30px;
}

[dir="rtl"] .book-of-day-section .botd-cta svg {
  transform: rotate(180deg);
}

@media (max-width: 360px) {
  .book-of-day-section .botd-card {
    min-height: 124px;
    padding: 14px;
    gap: 12px;
  }

  .book-of-day-section .botd-cover {
    width: 65px;
    min-width: 65px;
    height: 91px;
  }

  .book-of-day-section .botd-title {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-of-day-section .botd-card {
    transition: none;
  }
}
