/* ControlCard — Tarjeta de edición de libro */

.cardEdit {
  --cc-bg:           var(--pico-card-background-color, #27272a);
  --cc-primary:      var(--pico-primary-background, #6d28d9);
  --cc-primary-dim:  color-mix(in srgb, var(--pico-primary-background, #4c1d95) 65%, black 35%);
  --cc-color:        var(--pico-color, #d9d9d9);
  --cc-btn-bg:       var(--pico-card-sectioning-background-color, #18181b);
  --cc-border:       var(--pico-muted-border-color, #434653);

  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  width: 10rem;
  background-color: var(--cc-bg);
  border: 1px solid var(--cc-border);
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.2s ease;
}

.cardEdit:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

/* ── Header: portada + botones laterales ── */
.cardEdit .headerLibroCard {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: space-around;
}

.cardEdit .image_container {
  overflow: hidden;
  position: relative;
  z-index: 5;
  width: 78%;
  height: 9rem;
  background-color: var(--cc-primary-dim);
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.cardEdit .image_container .book-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  cursor: pointer;
  position: relative;
}

.cardEdit .portada-book-thumb-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: blur(12px) brightness(0.78);
  transform: scale(1.08);
}

.cardEdit .portada-book-thumb {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.cardEdit .header-lateral-derecha {
  position: relative;
  z-index: 5;
  height: 9rem;
  background-color: transparent;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  gap: 0.15rem;
}

/* ── Texto ── */
.cardEdit .TituloLibroCard {
  overflow: hidden;
  width: 100%;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cc-color);
  text-transform: capitalize;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin: 0;
}

.cardEdit .InfoLibroCard {
  font-size: 0.68rem;
  color: var(--pico-muted-color, #aaa);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  margin: 0;
}

.cardEdit .cc-separator {
  height: 1px;
  background-color: var(--pico-muted-border-color, #434653);
  border: none;
  border-radius: 1px;
  margin: 0;
}

.cardEdit .InfoLibroTexto {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 0.5rem;
}

/* ── Botonera ── */
.cardEdit .botonera .book-library-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.cardEdit .botonera .book-library-flag.is-off {
  opacity: 0.45;
}

.cardEdit .botonera .book-library-flag svg {
  width: 16px;
  height: 16px;
}

.cardEdit .botonera {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding-inline-start: 0;
  padding-left: 0.5rem;
  justify-content: space-around;
  flex-wrap: nowrap;
  width: 100%;
}

.cardEdit .botonera .state-select {
  font-size: 0.62rem;
  height: 1.35rem;
  padding: 0;
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
}

/* Botón de rating dentro de la card — más compacto */
.cardEdit .action-rating .rating-stars {
  font-size: 0.6rem;
  letter-spacing: 0;
  padding: 0.1rem 0.15rem;
}

/* Indicador de formatos (epub/pdf/etc.) */
.cc-formats {
  font-size: 0.72rem;
  color: var(--pico-muted-color, #aaa);
  white-space: nowrap;
}

/* ── CheckBox (action-read) escalado al tamaño icon-btn ── */
.cardEdit .contenedor-check {
  display: flex;
  gap: 0;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0;
}
.cardEdit .contenedor-check .checkmark {
  position: relative;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0;
  font-size: 1rem;
}
.cardEdit .contenedor-check input:checked ~ .checkmark {
  background-color: rgb(255, 84, 0);
}

/* ── Heart (action-fav) ── */
.cardEdit .ui-like {
  --icon-size: 1.3rem;
  --icon-circle-size: 1.3rem;
  cursor: pointer;
}

/* ── RemoveBtn (action-delete-book) escalado al tamaño icon-btn ── */
.cardEdit .bin-button {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  border-width: 2px;
  gap: 1px;
  padding: 0;
}
.cardEdit .bin-top    { width: 60%; height: auto; }
.cardEdit .bin-bottom { width: 52%; height: auto; }
