/* === Front-end card styling pentru PDF Sections === */

/* Card container */
.pdfsection-card {
  padding: 24px;
  border-radius: 16px;
  background: var(--pdfsections-bg, #ffffff);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
  position: relative;
  overflow: hidden;
}

/* Gradient subtil peste card (se mișcă un pic la hover) */
.pdfsection-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 0 0,
    rgba(99, 102, 241, 0.14),
    transparent 55%
  );
  opacity: 0.35;
  mix-blend-mode: soft-light;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.pdfsection-card:hover {
  box-shadow: 0 22px 65px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.pdfsection-card:hover::before {
  transform: translate3d(6px, 4px, 0);
  opacity: 0.5;
}

/* Header cu bara de accent */
.pdfsection-card-header {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Bara de accent – lățime fixă, se lărgește cu scaleX la hover */
.pdfsection-card-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;

  /* lățime de bază */
  width: 45%;
  max-width: 360px;

  background: linear-gradient(
    90deg,
    var(--pdfsections-accent, #e11d48) 0%,
    var(--pdfsections-accent, #e11d48) 40%,
    transparent 100%
  );

  transform-origin: left center;
  transform: scaleX(1);             /* stare normală */
  opacity: 0.9;

  transition:
    transform 0.5s ease,
    opacity 0.2s ease;
}

.pdfsection-card:hover .pdfsection-card-header::after,
.pdfsection-card:focus-within .pdfsection-card-header::after {
  transform: scaleX(1.3);           /* PE HOVER devine mai lată */
  opacity: 1;
}


.pdfsection-card-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Title & meta */
.pdfsection-card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pdfsection-card-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(15, 23, 42, 0.65);
}

/* Listă documente */
.pdfsection-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pdfsection-item {
  padding: 10px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.pdfsection-item:first-child {
  border-top: none;
}

/* Link + icon */
.pdfsection-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
}

.pdfsection-link:hover {
  text-decoration: underline;
}

.pdfsection-desc {
  margin: 4px 0 0 28px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.78);
}

/* Icon PDF mic, monocrom */
.pdfsection-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.25);
  position: relative;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.5);
}

.pdfsection-icon::after {
  content: "PDF";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #111827;
}
/* === Admin repeater styling === */

.pdfsections-items {
  margin-top: 10px;
}

.pdfsections-item {
  border: 1px solid #dddddd;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 6px;
  background: #ffffff;
}

.pdfsections-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.pdfsections-item-title {
  font-weight: 600;
}

/* În editor (Gutenberg) – dashed ca să vezi că e preview */
.pdfsection-card-editor {
  border-style: dashed;
}
