/* --- Projects --- */

.lc-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.lc-project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  overflow: hidden;
}

.lc-project-card__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.lc-project-card__logo {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  flex: 0 0 72px;
  box-shadow: var(--lc-shadow), var(--lc-inner-light);
  background: var(--lc-elevated);
}

.lc-project-card__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lc-project-card__logo-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--lc-font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg,
      var(--lc-primary),
      var(--lc-primary-soft));
  color: #fff;
}

.lc-project-card__heading h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.lc-project-card__title {
  color: var(--lc-on-surface);
  text-decoration: none;
}

.lc-project-card__intro {
  margin: 0;
  color: var(--lc-meta);
  font-size: 0.92rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lc-chips--stack {
  margin-bottom: 0;
}

.lc-project-platforms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lc-platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.7rem 0.34rem 0.62rem;
  border-radius: 999px;
  font-family: var(--lc-font-mono);
  font-size: 0.76rem;
  color: var(--lc-on-surface);
  background: var(--lc-chip-bg);
  border: 1px solid var(--lc-input-border);
  box-shadow: var(--lc-inner-light);
}

.lc-platform-chip__icon {
  display: inline-flex;
  width: 0.95rem;
  height: 0.95rem;
}

.lc-platform-chip__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lc-platform-chip__label {
  line-height: 1;
}

.lc-platform-chip--android {
  color: #2b7a41;
}

.lc-platform-chip--ios,
.lc-platform-chip--macos {
  color: #5d6372;
}

.lc-platform-chip--web {
  color: #3650c7;
}

.lc-platform-chip--linux {
  color: #7a5a17;
}

.lc-platform-chip--windows {
  color: #2b67b8;
}

.lc-project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: auto;
}

.lc-project-card__coverlink {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.lc-project-card__coverlink:focus-visible {
  outline: 2px solid var(--lc-focus-ring);
  outline-offset: 2px;
}

.lc-project-card:hover {
  box-shadow:
    0 16px 40px rgba(54, 80, 199, 0.14),
    var(--lc-inner-light);
}

.lc-project-single {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.lc-project-single__head {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}

.lc-project-single__logo-wrap {
  flex: 0 0 112px;
}

.lc-project-single__logo,
.lc-project-single__logo-fallback {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 22px;
  box-shadow: var(--lc-shadow), var(--lc-inner-light);
  background: var(--lc-elevated);
}

.lc-project-single__logo {
  object-fit: contain;
}

.lc-project-single__logo-fallback {
  display: grid;
  place-items: center;
  font-family: var(--lc-font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(120deg,
      var(--lc-primary),
      var(--lc-primary-soft));
}

.lc-project-single__heading {
  flex: 1 1 360px;
  min-width: 0;
}

.lc-project-single__heading h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}

.lc-project-single__intro {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--lc-meta);
}

.lc-project-single__actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.lc-project-single__section+.lc-project-single__section {
  padding-top: 18px;
  border-top: 1px solid var(--lc-border-divider);
}

.lc-project-single__label {
  margin: 0 0 12px;
  font-family: var(--lc-font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lc-meta);
}

.lc-project-status {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-family: var(--lc-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.lc-project-status--corner {
  min-width: 132px;
  justify-content: center;
  padding: 0.3rem 0.65rem;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  border-radius: 0;
  box-shadow: var(--lc-inner-light);
}

.lc-project-card__corner,
.lc-project-single__corner {
  position: absolute;
  top: 14px;
  right: -36px;
  z-index: 3;
  transform: rotate(36deg);
  transform-origin: center;
  pointer-events: none;
}

.lc-project-status--running {
  color: #0f7a55;
  background: rgba(58, 191, 125, 0.18);
  border-color: rgba(58, 191, 125, 0.3);
}

.lc-project-status--paused {
  color: #9b6a07;
  background: rgba(240, 185, 67, 0.2);
  border-color: rgba(240, 185, 67, 0.35);
}

.lc-project-status--developing {
  color: #3650c7;
  background: rgba(82, 106, 226, 0.18);
  border-color: rgba(82, 106, 226, 0.3);
}

.lc-project-gallery {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 12px;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.lc-project-gallery__item {
  display: block;
  flex: none;
  height: clamp(320px, 52vw, 560px);
  width: auto;
  min-width: 0;
  max-width: 90vw;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--lc-shadow), var(--lc-inner-light);
  scroll-snap-align: start;
}

.lc-project-gallery__item img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.06);
}

.lc-project-videos {
  display: grid;
  gap: 14px;
}

.lc-project-videos__item {
  padding: 10px;
  border-radius: 18px;
  background: var(--lc-elevated);
  border: 1px solid var(--lc-input-border);
  box-shadow: var(--lc-inner-light);
  overflow: hidden;
}

.lc-project-videos__player {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.lc-project-videos__player .wp-video {
  width: 100% !important;
  max-width: 100% !important;
}

.lc-project-videos__player .wp-video-shortcode {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.lc-project-videos__player .wp-video .mejs-container,
.lc-project-videos__player .wp-video .mejs-overlay,
.lc-project-videos__player .wp-video .mejs-mediaelement {
  max-width: 100% !important;
  width: 100% !important;
}

.lc-project-videos__player iframe,
.lc-project-videos__player video {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: clamp(220px, 46vw, 620px);
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.lc-project-videos__player .wp-video-shortcode,
.lc-project-videos__player .mejs-container {
  aspect-ratio: 16 / 9;
  height: auto !important;
}

/* Mixed feed (home / archive / search): align with article list divider rows */
.lc-feed .lc-project-card.lc-glass {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-radius: 0;
  border-bottom: 1px solid var(--lc-border-divider);
  padding: 12px 0;
  transition: background-color 0.2s ease;
}

.lc-feed .lc-project-card.lc-glass:last-child {
  border-bottom: none;
}

.lc-feed .lc-project-card:hover {
  box-shadow: none;
  transform: none;
  background: var(--lc-list-row-hover);
}

.lc-feed .lc-project-card {
  overflow: visible;
}

.lc-feed .lc-project-card__logo {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 14px;
  box-shadow: var(--lc-inner-light);
}

.lc-feed .lc-project-card__head {
  align-items: center;
  gap: 12px;
}

.lc-feed .lc-project-card__heading h2 {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

.lc-feed .lc-project-card__intro {
  font-size: 0.8125rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

