/* ═══════════════════════════════════════
   FITPICK PAGE — Specific styles
═══════════════════════════════════════ */

/* ── BACK BAR (repris de zabbix) ── */
.back-bar {
  position: sticky;
  top: 52px;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}
.back-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  transition: var(--transition);
}
.back-btn:hover { opacity: 0.7; }
.back-breadcrumb {
  font-size: 13px;
  color: var(--text-3);
}
.back-breadcrumb::before {
  content: '/';
  margin-right: 8px;
  opacity: 0.4;
}

/* ── HERO FITPICK ── */
.fp-hero {
  background: linear-gradient(160deg, #f0fff4 0%, #fbfbfd 60%);
}
.fp-hero h1 span { color: #059669; }

.project-hero {
  padding: 80px 40px 60px;
  border-bottom: 1px solid var(--border-light);
}
.project-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}
.project-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.project-chip {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 980px;
}
.fp-chip {
  background: #ecfdf5;
  border-color: rgba(5,150,105,0.3);
  color: #059669;
}
.project-chip.blue {
  background: var(--blue-light);
  border-color: rgba(0,113,227,0.25);
  color: var(--blue);
}
.project-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
}
.project-lead {
  font-size: 1.05rem;
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 540px;
}

/* Award badge */
.fp-award {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 28px;
}
.fp-award-icon { font-size: 1.6rem; flex-shrink: 0; }
.fp-award-title { font-size: 14px; font-weight: 600; color: #92400e; }
.fp-award-sub { font-size: 12px; color: #b45309; margin-top: 2px; }

.project-stats-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.pstat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -1px;
}
.pstat-num span { color: #059669; font-size: 1.2rem; }
.pstat-label { font-size: 12px; color: var(--text-3); margin-top: 4px; font-weight: 500; }

/* Hero placeholder */
.fp-placeholder-hero {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px dashed #6ee7b7;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.fp-placeholder-hero .fp-placeholder-icon { font-size: 3rem; opacity: 0.5; }
.fp-placeholder-hero p { font-size: 13px; color: #6b7280; font-weight: 500; }
.project-hero-caption {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 10px;
}

/* ── PBLOCK ── */
.pblock { padding: 80px 0; }
.pblock-alt { background: var(--bg2); }
.pblock-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.pblock .section-desc { margin-bottom: 40px; }

/* ── CONTEXT ── */
.context-2col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.context-txt p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 16px;
}
.context-txt strong { color: var(--text); font-weight: 600; }
.context-infos {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.info-item:last-child { border-bottom: none; padding-bottom: 0; }
.info-item:first-child { padding-top: 0; }
.info-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-3); }
.info-val { font-size: 14px; font-weight: 500; color: var(--text); }

/* ── ARCHITECTURE ── */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.arch-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.arch-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.arch-card.backend::before  { background: var(--blue); }
.arch-card.frontend::before { background: #059669; }
.arch-card.infra::before    { background: #7c3aed; }
.arch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.arch-card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-3);
  margin-bottom: 12px;
}
.arch-card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.arch-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 14px; color: var(--text); }
.arch-card ul { padding-left: 16px; margin-bottom: 16px; }
.arch-card ul li { font-size: 13px; color: var(--text-3); line-height: 1.7; }
.arch-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feat-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(5,150,105,0.2); }
.feat-icon { font-size: 1.8rem; margin-bottom: 14px; }
.feat-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.feat-card p { font-size: 13px; color: var(--text-3); line-height: 1.65; }

/* ── SCREENSHOTS PLACEHOLDER ── */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.screenshot-placeholder {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}
.screenshot-placeholder:hover { border-color: rgba(5,150,105,0.4); background: #f0fff4; }
.sp-icon { font-size: 2rem; opacity: 0.4; }
.sp-label { font-size: 12px; color: var(--text-3); font-weight: 500; text-align: center; padding: 0 16px; }

/* ── STACK ── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.stack-item {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
}
.stack-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(5,150,105,0.2); }
.stack-icon { font-size: 1.6rem; margin-bottom: 8px; }
.stack-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.stack-type { font-size: 11px; color: var(--text-3); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .project-hero-inner { grid-template-columns: 1fr; }
  .project-hero-visual { order: -1; }
  .context-2col { grid-template-columns: 1fr; }
  .arch-grid { grid-template-columns: 1fr; }
  .back-inner { padding: 10px 20px; }
  .pblock-inner { padding: 0 20px; }
  .project-hero { padding: 60px 20px 40px; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr 1fr; }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
  .project-stats-row { gap: 20px; }
}
