/* work.css */

.filter-bar {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 14px 0;
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.filters::-webkit-scrollbar { display: none; }

.filter-btn {
  padding: 8px 18px;
  border: 1.5px solid var(--gray-200);
  background: white;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--blue-300);
  color: var(--blue-600);
}

.filter-btn.active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: white;
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-slow);
}

.portfolio-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--blue-200);
  transform: translateY(-6px);
}

.portfolio-card.large {
  grid-column: span 2;
}

.pc-visual {
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-card.large .pc-visual { height: 280px; }

.pc-overlay-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pc-info { padding: 28px; }

.pc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pc-year {
  font-size: 12.5px;
  color: var(--gray-400);
  font-family: var(--font-mono);
}

.pc-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--gray-900);
  line-height: 1.3;
}

.pc-info p {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.pc-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.pc-stack span {
  padding: 3px 10px;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.pc-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.pch i { color: var(--blue-500); font-size: 11px; }

/* Mockup visuals */
.pc-mockup { width: 75%; }

/* Dashboard mockup */
.pc-mockup.dashboard {
  background: rgba(255,255,255,.07);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
}

.pcm-header {
  height: 24px;
  background: rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
}

.pcm-header span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: block;
}

.pcm-body {
  display: flex;
  height: 140px;
  gap: 4px;
  padding: 4px;
}

.pcm-sidebar {
  width: 28%;
  background: rgba(0,0,0,.2);
  border-radius: 4px;
}

.pcm-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pcm-row.tall {
  flex: 1;
  background: rgba(255,255,255,.1);
  border-radius: 4px;
}

.pcm-cards {
  display: flex;
  gap: 4px;
}

.pcm-card {
  flex: 1;
  height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
}

.pcm-kpi-row {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.pcm-kpi {
  flex: 1;
  height: 32px;
  background: rgba(255,255,255,.1);
  border-radius: 4px;
}

.pcm-chart-area {
  flex: 1;
  background: rgba(255,255,255,.05);
  border-radius: 4px;
}

/* Mobile mockup */
.pc-mockup.mobile {
  width: 50px;
  background: rgba(0,0,0,.4);
  border-radius: 16px;
  padding: 6px;
  border: 2px solid rgba(255,255,255,.15);
}

.pcm-mobile-screen {
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  overflow: hidden;
}

.pcm-mobile-status {
  height: 14px;
  background: rgba(0,0,0,.2);
}

.pcm-mobile-body {
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pcm-mobile-card {
  height: 28px;
  background: rgba(255,255,255,.15);
  border-radius: 4px;
}

.pcm-mobile-card.small { height: 20px; }

.pcm-mobile-row {
  height: 8px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
}

.pcm-mobile-row.short { width: 65%; }

/* Editorial mockup */
.pc-mockup.editorial {
  width: 80%;
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}

.pcm-edit-header { background: rgba(0,0,0,.3); }
.pcm-edit-nav { height: 20px; }
.pcm-edit-hero { height: 60px; background: rgba(255,215,0,.1); }

.pcm-edit-content {
  display: flex;
  gap: 4px;
  padding: 6px;
  height: 70px;
}

.pcm-edit-col {
  flex: 1;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
}

.pcm-edit-col.narrow { flex: 0 0 30%; }

/* API mockup */
.pc-mockup.api {
  width: 80%;
  background: rgba(0,0,0,.4);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-mono);
}

.pcm-api-block {
  font-size: 11px;
  color: rgba(255,255,255,.7);
  padding: 4px 8px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  margin-bottom: 4px;
}

.pcm-api-block.green { color: #10b981; background: rgba(16,185,129,.15); }

.pcm-api-json { padding: 6px 4px; }

.pcm-json-line {
  font-size: 10px;
  padding: 2px 0;
}

.pcm-json-line.key { color: #60a5fa; }
.pcm-json-line.val { color: #10b981; }

/* E-commerce mockup */
.pc-mockup.ecom {
  width: 85%;
  background: rgba(255,255,255,.07);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}

.pcm-ecom-nav {
  height: 22px;
  background: rgba(0,0,0,.25);
}

.pcm-ecom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px;
}

.pcm-ecom-product {
  height: 60px;
  background: rgba(255,255,255,.1);
  border-radius: 4px;
}

/* Chat mockup */
.pc-mockup.chat {
  width: 80%;
  background: rgba(0,0,0,.35);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pcm-chat-msg {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 10px;
  max-width: 85%;
}

.pcm-chat-msg.bot {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  align-self: flex-start;
}

.pcm-chat-msg.user {
  background: rgba(99,102,241,.4);
  color: white;
  align-self: flex-end;
  border-radius: 10px 10px 2px 10px;
}

.pcm-chat-input {
  height: 22px;
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  margin-top: 4px;
  border: 1px solid rgba(255,255,255,.1);
}

/* Document mockup */
.pc-mockup.document {
  width: 70%;
}

.pcm-doc {
  background: rgba(255,255,255,.1);
  border-radius: 6px;
  padding: 10px;
}

.pcm-doc-title {
  height: 14px;
  background: rgba(255,255,255,.4);
  border-radius: 3px;
  margin-bottom: 8px;
  width: 70%;
}

.pcm-doc-line {
  height: 6px;
  background: rgba(255,255,255,.2);
  border-radius: 2px;
  margin-bottom: 5px;
}

.pcm-doc-line.short { width: 55%; }

.pcm-doc-divider {
  height: 1px;
  background: rgba(255,255,255,.15);
  margin: 8px 0;
}

/* Stats */
.work-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--blue-950);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.ws-item {
  flex: 1;
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-item span:first-child {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue-300);
  letter-spacing: -0.04em;
  display: block;
}

.ws-item span:last-child {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}

.ws-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,.08);
}

.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-400);
}

.no-results i { font-size: 48px; margin-bottom: 16px; }
.no-results p { font-size: 16px; }

/* Responsive */
@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-card.large { grid-column: span 2; }
}

@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card.large { grid-column: span 1; }
  .work-stats { flex-direction: column; }
  .ws-divider { width: 60px; height: 1px; }
}
