/* All Projects + Project Details pages -------------------------------- */
/* Companion stylesheet for src/pages/AllProjects.jsx and                */
/* src/pages/ProjectDetails.jsx. Reuses the template's existing CSS       */
/* custom properties (colors, radii, easing) so it blends into light/dark */
/* mode without touching main.css.                                       */

/* ---------- All Projects: row list ---------- */

.work-list {
  display: flex;
  flex-direction: column;
}

.work-list__item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--stroke-elements);
  color: inherit;
  text-decoration: none;
  transition: opacity var(--_animspeed-medium) ease-in-out;
}

.work-list__item:last-child {
  border-bottom: 1px solid var(--stroke-elements);
}

.work-list__index {
  flex: none;
  font: normal 600 1.4rem/1 var(--_font-default);
  color: var(--t-disabled);
  width: 2.6rem;
}

.work-list__media {
  flex: none;
  width: 8rem;
  height: 8rem;
  border-radius: var(--_radius-m);
  overflow: hidden;
  background-color: var(--base-tint);
}

.work-list__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--_animspeed-slow) var(--_animbezier);
}

.work-list__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.work-list__title {
  font: normal 700 1.8rem/1.3 var(--_font-default);
  color: var(--t-bright);
}

.work-list__tags {
  gap: 0.6rem;
}

.work-list__action {
  flex: none;
  display: none;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
}

.no-touch .work-list__item:hover .work-list__image {
  transform: scale(1.06);
}

.no-touch .work-list__item:hover .work-list__title {
  color: var(--t-accent);
}

@media only screen and (min-width: 768px) {
  .work-list__media {
    width: 11rem;
    height: 11rem;
  }

  .work-list__title {
    font-size: 2.2rem;
  }

  .work-list__action {
    display: inline-flex;
  }
}

@media only screen and (min-width: 1400px) {
  .work-list__media {
    width: 14rem;
    height: 14rem;
  }
}

/* ---------- Project Details ---------- */

.project-details__back {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
  font-size: 1.5rem;
}

.project-details__hero {
  width: 100%;
  border-radius: var(--_radius-xl);
  overflow: hidden;
  background-color: var(--base-tint);
}

.project-details__image {
  width: 100%;
  height: auto;
  display: block;
}

.project-details__descr .about-descr__text {
  margin-bottom: 2.4rem;
}

.project-details__links {
  gap: 1.2rem;
  margin-top: 1rem;
}

.project-details__meta {
  margin-top: 3rem;
}

@media only screen and (min-width: 1200px) {
  .project-details__meta {
    margin-top: 0;
  }
}

.project-details__nav {
  gap: 2rem;
  padding-top: 3rem;
  border-top: 1px solid var(--stroke-elements);
}

.project-details__nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--t-bright);
  font: normal 700 1.8rem/1.3 var(--_font-default);
  text-decoration: none;
  transition: color var(--_animspeed-medium) ease-in-out;
}

.project-details__nav-link .top {
  font: normal 500 1.3rem/1 var(--_font-default);
  color: var(--t-disabled);
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.project-details__nav-link--next {
  text-align: right;
  align-items: flex-end;
}

[dir="rtl"] .project-details__nav-link--next {
  text-align: left;
  align-items: flex-start;
}

.no-touch .project-details__nav-link:hover {
  color: var(--t-accent);
}

/* Key Features / Technical Details lists (Project Details "Details" block).
   Typography intentionally matches the site's default paragraph style so the
   lists read exactly like the surrounding .about-descr__text copy. */
.project-details__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-details__list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
  font: normal 400 2rem/1.4 var(--_font-default);
  color: var(--t-medium);
}

[dir="rtl"] .project-details__list li {
  padding-left: 0;
  padding-right: 2rem;
}

.project-details__list li:last-child {
  margin-bottom: 0;
}

.project-details__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background-color: var(--t-accent);
}

[dir="rtl"] .project-details__list li::before {
  left: auto;
  right: 0;
}

/* "Key Features" / "Technical Details" sub-headings inside the Details block.
   Matches the spacing rhythm of .section-h3 one level down. */
.project-details__subtitle {
  margin-bottom: 2rem;
}
