/**
 * @file
 * Franges de contingut viu de les landings de secció.
 */

/* Portades com a documents (franja de descarregables) — mateix llenguatge
   visual que les cards de la pàgina /planificat/descarregables. */
.seccio-doc-cover-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.25rem;
  background: rgb(var(--neutral-bg, 245 247 250));
  border-bottom: 1px solid rgb(var(--neutral-border, 206 206 206) / 0.5);
}
.seccio-doc-cover {
  display: block;
  width: 68%;
  aspect-ratio: 1 / 1.414;
  background: #fff;
  border: 1px solid rgb(var(--neutral-border, 206 206 206));
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}
.seccio-doc-card:hover .seccio-doc-cover {
  transform: translateY(-8px) scale(1.04) rotate(1.5deg);
  box-shadow: 0 15px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.seccio-doc-cover img,
.seccio-doc-cover canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.seccio-strip-alt {
  background: rgb(var(--neutral-bg));
}

/* Portades PDF renderitzades en client (franja de descarregables) */
.seccio-pdf-canvas {
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.seccio-pdf-canvas.is-ready {
  opacity: 0.92;
}

/* Mapa del hero de Planifica't */
.seccio-hero-map {
  height: 320px;
  background: rgb(var(--neutral-bg));
}
.seccio-map-pin span {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.35);
}

/* Hover dels enllaços 'Veure-ho tot' de les franges */
.strip-cta:hover {
  color: rgb(var(--brand-accent)) !important;
}

/* Hero fosc (Inspira't) */
.seccio-hero--dark {
  background: rgb(var(--brand-primary));
}
.seccio-hero--dark .rm-trigger {
  color: rgb(var(--brand-accent));
}

/* Mapa gran del hero de Planifica't (sense caixa) */
.seccio-hero-map--big {
  height: 420px;
}

/* Banda fosca de vídeos */
.seccio-strip-dark {
  background: rgb(var(--brand-primary));
}
.seccio-strip-dark .strip-cta:hover {
  color: rgb(var(--brand-accent)) !important;
}

/* Franja revista (TripIdees): peça gran + files */
.seccio-mag-main {
  display: flex;
  min-height: 420px;
}
.seccio-mag-thumb {
  width: 8.5rem;
  height: 6rem;
}
.seccio-mag-thumb img {
  width: 100%;
  height: 100%;
}
.seccio-mag-row {
  flex: 1;
}

/* Slider numerat (Imprescindibles) */
.seccio-num-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.seccio-num-track::-webkit-scrollbar {
  display: none;
}
.seccio-num-track > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(75vw, 300px);
}
.seccio-num-card {
  display: flex;
  min-height: 380px;
}
.seccio-num {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  z-index: 1;
  font-family: var(--font-heading), sans-serif;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: rgb(var(--on-primary, var(--brand-accent)));
  opacity: 0.95;
  text-shadow: 0 2px 12px rgb(0 0 0 / 0.35);
  pointer-events: none;
}

/* Pulsació del play (còpia local dels keyframes de la pàgina de vídeos) */
@keyframes videos-pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgb(var(--brand-accent) / 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 16px rgb(var(--brand-accent) / 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgb(var(--brand-accent) / 0); }
}
.videos-play-anim {
  animation: videos-pulse-ring 2.5s infinite;
}

/* Banda navy del bento (Inspira't) */
/* Llapis contextual (només editors): editar la card des de la landing */
.patronat-edit-pencil {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.92);
  color: rgb(var(--brand-primary));
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.25);
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.2s, transform 0.2s;
}
.patronat-edit-pencil:hover {
  opacity: 1;
  transform: scale(1.08);
}
.patronat-edit-pencil .material-icons-outlined {
  font-size: 17px;
}

.seccio-grid-dark {
  background: rgb(var(--brand-primary));
}
.seccio-grid-dark .category-card {
  border: 1px solid rgb(255 255 255 / 0.12);
}
