/* ========================================================
   pdf-item.css - One curriculum row. The whole row is a
   link that opens the PDF viewer in a new tab.
   ======================================================== */

.pdf-item {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 18px);
  padding: 14px clamp(8px, 1.5vw, 16px);
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}

.pdf-item__number {
  flex-shrink: 0;
  width: 1.8em;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy-deep);
  text-align: center;
}

.pdf-item__file-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--tint-orange);
  color: var(--color-orange);
}

.pdf-item__file-icon svg {
  width: 22px;
  height: 22px;
}

.pdf-item__file-tag {
  position: absolute;
  right: -6px;
  bottom: -5px;
  padding: 1px 5px;
  border-radius: 6px;
  background: #e5484d;
  color: #fff;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pdf-item__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.pdf-item__name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-text);
}

.pdf-item__part {
  font-size: 0.82rem;
  color: var(--color-text-subtle);
}

.pdf-item__action {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(145deg, var(--color-orange-light), var(--color-orange));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 18px -10px rgba(242, 100, 25, 0.9);
  transition: transform 0.2s var(--ease-out);
}

.pdf-item__action svg {
  width: 17px;
  height: 17px;
}

.pdf-item__external {
  opacity: 0.75;
}

@media (hover: hover) {
  .pdf-item:hover {
    background: #fff6f0;
  }

  .pdf-item:hover .pdf-item__action {
    transform: translateX(2px);
  }
}

@media (max-width: 560px) {
  .pdf-item__file-icon {
    display: none;
  }

  .pdf-item__action {
    padding: 10px 12px;
  }

  .pdf-item__external {
    display: none;
  }
}

/* Smallest phones: the eye icon alone (the row still announces "View PDF") */
@media (max-width: 380px) {
  .pdf-item__action-label {
    display: none;
  }
}
