/* Depiction Form Component */
.depiction-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--size-3);
}


.button.filled,
.depiction-form .button.filled,
label.button.filled {
  background: var(--brand-primary) !important;
  color: white !important;
  border: none;
  padding: var(--size-2) var(--size-4);
  border-radius: var(--radius-2);
  font-size: var(--font-size-1);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.button.filled:hover,
.depiction-form .button.filled:hover,
label.button.filled:hover {
  background: var(--brand-primary-hover, var(--brand-primary)) !important;
  color: white !important;
  filter: brightness(0.9);
  text-decoration: none;
}


.link.underline {
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  color: var(--text-1);
}


.depiction-form .link.underline.txt-primary {
  color: #0066cc !important;
}

.depiction-form .link.underline.txt-primary:hover {
  color: #0052a3 !important;
}


/* Book cover styling */
.book-cover--thumbnail {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-2);
}


/* Book cover placeholder styling */
.book-cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--size-2);
  padding: var(--size-6) var(--size-4);
  background: var(--surface-2);
  border: 2px dashed var(--surface-4);
  border-radius: var(--radius-2);
  color: var(--text-3);
  font-size: var(--font-size-1);
  min-height: 240px;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 2/3;
}

/* Dark mode improvements for contrast */
@media (prefers-color-scheme: dark) {
  .book-cover-placeholder {
    background: hsl(210 10% 35%); /* Lighter than --surface-2 for better contrast */
    border-color: hsl(210 10% 45%);
    color: hsl(0 0% 85%); /* Lighter text for 7:1 contrast */
  }
  
  .book-cover-placeholder__icon svg {
    opacity: 0.8; /* More visible in dark mode */
  }
  
  .book-cover-placeholder__text {
    opacity: 0.9; /* More visible in dark mode */
  }
}

.book-cover-placeholder__icon svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.book-cover-placeholder__text {
  font-size: var(--font-size-0);
  opacity: 0.7;
}

/* Integration with book hero */
.book-hero__cover .depiction-form {
  width: 100%;
}

.book-hero__cover .book-cover--thumbnail,
.book-hero__cover .book-cover-placeholder {
  width: 100%;
  max-width: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .book-hero__cover .book-cover--thumbnail,
  .book-hero__cover .book-cover-placeholder {
    max-width: 200px;
    margin: 0 auto;
  }
}