/* =========================
   DICCIONARIO (LIMPIO)
   ========================= */

/* Header - usando Bootstrap utilities */
#div_capcalera_dic.dic-header{
  background: #e3e3e3;
  border: 1px solid #d0d0d0;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

#div_capcalera_dic .dic-header__img{
  width: 78px;
  height: auto;
  flex-shrink: 0;
}

#div_capcalera_dic .dic-header__title{
  flex: 1;
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  color: #5b6a77;
  font-family: "Dancing Script", "Lobster", cursive;
}

/* Layout base (3 columnas) */
.wrap.dic-layout{
  display: grid;
  grid-template-columns: 62px 1fr 62px;
  gap: 16px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 10px;
  margin: 0 auto;
}

/* Laterales (iniciales) - Bootstrap utilities */
.dic-side{
  display: flex;
  justify-content: center;
}

.dic-initials{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dic-initials li a{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid #bdbdbd;
  color: #4a4a4a;
  text-decoration: none;
  font-weight: 700;
  background: #fff;
  font-size: 14px;
  transition: all 0.2s ease;
}

.dic-initials li.is-active a{
  background: #5b97ff;
  border-color: #5b97ff;
  color: #fff;
}

.dic-initials li a:hover{
  border-color: #0d6efd;
  color: #0d6efd;
  transform: scale(1.1);
}

/* Centro (base) */
.dic-center{
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

/* Home: imagen centrada */
.dic-home{
  text-align: center;
  opacity: 0.95;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.dic-home img{
  max-width: 420px;
  height: auto;
  display: block;
}

/* Letras: listado de palabras en 2 columnas */
#ul_paraules.dic-words{
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 2;
  column-gap: 70px;
}

#ul_paraules.dic-words li{
  break-inside: avoid;
  padding: 8px 0;
  text-align: center;
}

.dic-word-link{
  color: #000;
  text-decoration: none;
  transition: border-bottom 0.2s ease;
}

.dic-word-link:hover{
  border-bottom: 2px solid #000;
  padding-bottom: 2px;
}

/* Show (definición): NO centrado, compacto */
.dic-layout--show{
  grid-template-columns: 56px 1fr 56px;
  gap: 14px;
  padding: 12px 10px;
}

.dic-layout--show .dic-center{
  display: block;
  min-height: auto;
  padding: 4px 8px;
}

.dic-layout--show .dic-center h1{
  font-family: "Dancing Script", "Lobster", cursive;
  font-size: 34px;
  margin: 0 0 8px 0;
  line-height: 1.05;
}

.dic-layout--show .dic-center .descripcio{
  font-size: 15px;
  line-height: 1.45;
  color: #4b5563;
  margin-bottom: 14px;
}

/* Secciones internas más compactas */
.dic-layout--show .sinonims h5,
.dic-layout--show .altres_idiomes h5{
  font-size: 16px;
  margin-bottom: 8px;
}

.dic-layout--show .altres_idiomes{
  margin-top: 14px !important;
  padding-top: 14px !important;
}

.dic-layout--show .info-auditoria{
  margin-top: 12px !important;
  padding-top: 12px !important;
  font-size: 12px;
}

/* Si en show aún estás renderizando cards, que no parezcan cards */
.dic-layout--show .altres_idiomes .card{
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* ===== HOME: imagen central ===== */
.dic-layout--home .dic-center{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.dic-layout--home .dic-home{
  text-align: center;
  opacity: 0.95;
}

.dic-layout--home .dic-home img{
  max-width: 280px;   /* ajusta si la quieres más grande */
  height: auto;
}

