/* ============================================================
   PROJECT PAGE STYLES — IBlockTechs
   ------------------------------------------------------------
   Shared layout & components for /portfolio/<project>/ pages.
   Each project may override --accent and --accent-light.
   Class names use a `project-` prefix where they would
   otherwise collide with sitewide components.
   ============================================================ */

:root {
  --accent:       var(--color-accent);
  --accent-light: var(--color-accent-soft);
}

/* ============================================ PROJECT HERO ============================================ */
.project-hero {
  padding: calc(var(--space-32) + 60px) var(--space-6) var(--space-28);
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--alpha-line);
  position: relative;
  overflow: hidden;
}
.project-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-gradient,
    radial-gradient(ellipse at 80% 0%, rgba(82, 102, 235, 0.14) 0%, transparent 60%));
  pointer-events: none;
}
.project-hero__container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  position: relative;
}

.project-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
}
.project-hero__breadcrumb-link {
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}
.project-hero__breadcrumb-link:hover { color: var(--color-text); }
.project-hero__breadcrumb-sep      { color: var(--color-text-faint); }
.project-hero__breadcrumb-current  { color: var(--color-text); }

.project-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.project-hero__tag {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--accent);
}
.project-hero__year {
  font-size: var(--text-caption);
  color: var(--color-text-faint);
}

.project-hero__logo-wrap {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}
.project-hero__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-hero__logo-placeholder {
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
}

.project-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: var(--font-weight-light);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.project-hero__phonetic {
  font-size: var(--text-body-sm);
  color: var(--color-text-faint);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}
.project-hero__tagline {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: var(--font-weight-light);
  color: var(--color-text);
  margin-bottom: var(--space-6);
  letter-spacing: -0.01em;
}
.project-hero__tagline em {
  font-style: italic;
  color: var(--accent-light);
}
.project-hero__description {
  font-size: var(--text-subheading);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: var(--space-10);
}
.project-hero__cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ============================================ SECTION HEADER ============================================ */
.project-section-header {
  margin-bottom: var(--space-14);
  max-width: 760px;
}
.project-section-header__label {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-5);
}
.project-section-header__title {
  font-family: var(--font-display);
  font-size: var(--text-heading-lg);
  font-weight: var(--font-weight-light);
  line-height: var(--leading-heading-lg);
  letter-spacing: var(--tracking-heading-lg);
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.project-section-header__title em {
  font-style: italic;
  color: var(--accent-light);
}
.project-section-header__desc {
  font-size: var(--text-subheading);
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ============================================ PROBLEM GRID ============================================ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--alpha-line);
  border: 1px solid var(--alpha-line);
}
.problem-card {
  background-color: var(--color-surface-1);
  padding: var(--space-10) var(--space-8);
  transition: background-color var(--transition-base);
}
.problem-card:hover { background-color: var(--color-surface-3); }
.problem-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  margin-bottom: var(--space-6);
}
.problem-card__title {
  font-family: var(--font-display);
  font-size: var(--text-heading-sm);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.problem-card__desc {
  font-size: var(--text-body);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================ PROJECT PROCESS LIST ============================================ */
/* Renamed from .process-list to avoid collision with the homepage version */
.project-process-list {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background-color: var(--alpha-line);
  border: 1px solid var(--alpha-line);
}
.project-process-list__item {
  display: flex;
  gap: var(--space-8);
  padding: var(--space-10) var(--space-8);
  background-color: var(--color-bg);
  transition: background-color var(--transition-base);
}
.project-process-list__item:hover { background-color: var(--color-surface-3); }
.project-process-list__number {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: var(--font-weight-light);
  color: color-mix(in srgb, var(--accent) 35%, transparent);
  flex-shrink: 0;
  min-width: 48px;
}
.project-process-list__title {
  font-family: var(--font-display);
  font-size: var(--text-heading-sm);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.project-process-list__description {
  font-size: var(--text-body);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================ PROJECT FEATURE LIST ============================================ */
/* Renamed from .feature-list to avoid collision with the homepage version */
.project-feature-list {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background-color: var(--alpha-line);
  border: 1px solid var(--alpha-line);
}
.project-feature-list__item {
  display: flex;
  gap: var(--space-8);
  padding: var(--space-8);
  background-color: var(--color-surface-1);
  transition: background-color var(--transition-base);
}
.project-feature-list__item:hover { background-color: var(--color-surface-3); }
.project-feature-list__num {
  font-family: var(--font-display);
  font-size: var(--text-heading-sm);
  font-weight: var(--font-weight-light);
  color: color-mix(in srgb, var(--accent) 30%, transparent);
  flex-shrink: 0;
  min-width: 40px;
}
.project-feature-list__title {
  font-family: var(--font-display);
  font-size: var(--text-subheading);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.project-feature-list__title em {
  font-style: italic;
  color: var(--accent-light);
}
.project-feature-list__description {
  font-size: var(--text-body);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.project-feature-list__body { flex: 1; }

/* ============================================ MARKET GRID ============================================ */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--alpha-line);
  border: 1px solid var(--alpha-line);
}
.market-card {
  background-color: var(--color-bg);
  padding: var(--space-14) var(--space-8);
  text-align: center;
}
.market-card--primary { background-color: var(--color-surface-3); }
.market-card__scope {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.market-card__number {
  font-family: var(--font-display);
  font-size: var(--text-heading-lg);
  font-weight: var(--font-weight-light);
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.market-card__label {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================ BUSINESS MODEL GRID ============================================ */
.biz-model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--alpha-line);
  border: 1px solid var(--alpha-line);
}
.biz-model-card {
  background-color: var(--color-surface-1);
  padding: var(--space-10) var(--space-6);
  transition: background-color var(--transition-base);
}
.biz-model-card:hover { background-color: var(--color-surface-3); }
.biz-model-card__rate {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: var(--font-weight-light);
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-4);
}
.biz-model-card__title {
  font-family: var(--font-display);
  font-size: var(--text-subheading);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.biz-model-card__desc {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ============================================ ROADMAP GRID ============================================ */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--alpha-line);
  border: 1px solid var(--alpha-line);
}
.roadmap-card {
  background-color: var(--color-surface-1);
  padding: var(--space-8);
  position: relative;
}
.roadmap-card--done { background-color: var(--color-surface-3); }
.roadmap-card--active {
  background-color: color-mix(in srgb, var(--accent) 8%, transparent);
  border-left: 1px solid var(--accent);
}
.roadmap-card__phase {
  font-family: var(--font-display);
  font-size: var(--text-heading-sm);
  font-weight: var(--font-weight-light);
  color: var(--color-text);
  margin-bottom: 4px;
}
.roadmap-card__period {
  font-size: var(--text-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-6);
}
.roadmap-card__items {
  list-style: none;
  margin: 0 0 var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.roadmap-card__items li {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-4);
  position: relative;
}
.roadmap-card__items li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-text-faint);
}
.roadmap-card__badge {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
}
.roadmap-card__badge--active { color: var(--accent); }

/* ============================================ STACK GRID ============================================ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--alpha-line);
  border: 1px solid var(--alpha-line);
}
.stack-item {
  background-color: var(--color-surface-1);
  padding: var(--space-8);
  transition: background-color var(--transition-base);
}
.stack-item:hover { background-color: var(--color-surface-3); }
.stack-item__tag {
  display: inline-block;
  font-size: var(--text-caption);
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  background-color: var(--accent);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}
.stack-item__desc {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================ RESPONSIVE ============================================ */
@media (max-width: 1024px) {
  .biz-model-grid,
  .roadmap-grid       { grid-template-columns: repeat(2, 1fr); }
  .market-grid,
  .stack-grid         { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .project-hero {
    padding: calc(var(--space-20) + 60px) var(--space-4) var(--space-20);
  }
  .project-hero__title { font-size: 48px; }
  .problem-grid,
  .market-grid,
  .biz-model-grid,
  .roadmap-grid,
  .stack-grid          { grid-template-columns: 1fr; }
  .project-process-list__item,
  .project-feature-list__item {
    flex-direction: column;
    gap: var(--space-3);
  }
  .project-hero__cta { flex-direction: column; }
  .project-hero__cta .btn {
    width: 100%;
    justify-content: center;
  }
}
