/* ============================================
   PORTFOLIO.CSS
   ============================================ */

/* ---- FILTER BAR ---- */
.filter-bar {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 0;
  position: sticky;
  top: 68px;
  z-index: 50;
}

.filter-bar__inner {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.filter-bar__inner::-webkit-scrollbar { display: none; }

.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ---- PORTFOLIO GRID ---- */
.portfolio-section { padding-top: 72px; }

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

/* ---- PROJECT CARD ---- */
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-card.hidden { display: none; }

/* VISUAL / MOCKUP */
.project-card__visual {
  position: relative;
  height: 240px;
  overflow: hidden;
  cursor: pointer;
}

.project-card__mockup {
  position: absolute;
  inset: 16px 16px 0;
  background: #fff;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transform: perspective(600px) rotateX(4deg);
  transform-origin: bottom center;
}

.mockup-bar {
  height: 28px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  flex-shrink: 0;
}
.mockup-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
}
.mockup-bar span:nth-child(1) { background: #ff6058; }
.mockup-bar span:nth-child(2) { background: #ffbd2e; }
.mockup-bar span:nth-child(3) { background: #28c940; }

.mockup-url {
  margin-left: 8px;
  flex: 1;
  background: #fff;
  border-radius: 4px;
  height: 16px;
  font-size: 9px;
  color: #888;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-family: monospace;
}

.mockup-hero {
  height: 80px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.mockup-headline {
  height: 10px;
  background: rgba(255,255,255,0.7);
  border-radius: 4px;
  width: 70%;
}
.mockup-sub {
  height: 6px;
  background: rgba(255,255,255,0.4);
  border-radius: 4px;
  width: 50%;
}
.mockup-btn {
  height: 14px;
  width: 60px;
  background: var(--accent);
  border-radius: 4px;
  margin-top: 4px;
}

.mockup-body {
  padding: 10px 14px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mockup-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.mockup-block {
  height: 7px;
  background: #e0e0e0;
  border-radius: 3px;
  flex-shrink: 0;
}
.w15 { width: 15%; }
.w20 { width: 20%; }
.w30 { width: 30%; }
.w35 { width: 35%; }
.w40 { width: 40%; }
.w45 { width: 45%; }
.w50 { width: 50%; }
.w55 { width: 55%; }
.w60 { width: 60%; }
.w65 { width: 65%; }
.w70 { width: 70%; }
.w75 { width: 75%; }
.w80 { width: 80%; }
.w85 { width: 85%; }
.w90 { width: 90%; }

/* OVERLAY */
.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.project-card:hover .project-card__overlay { opacity: 1; }
.project-card__view {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 10px 20px;
  border-radius: var(--radius);
}

/* INFO SECTION */
.project-card__info {
  padding: 24px 24px 28px;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.project-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  background: rgba(255,92,0,0.08);
  border: 1px solid rgba(255,92,0,0.2);
  padding: 3px 10px;
  border-radius: 999px;
}

.project-card__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-card__desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-card__results {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.project-result__num {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
}
.project-result__label {
  display: block;
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
  margin-top: 2px;
  line-height: 1.4;
}

/* ---- EMPTY STATE ---- */
.portfolio-empty {
  text-align: center;
  padding: 80px 24px;
}
.portfolio-empty__icon { font-size: 48px; margin-bottom: 16px; }
.portfolio-empty h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.portfolio-empty p { color: var(--gray-600); font-size: 15px; }
.portfolio-empty a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ---- PORTFOLIO NOTE ---- */
.portfolio-note-section { padding: 48px 0; }
.portfolio-note {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 760px;
}
.portfolio-note__icon { font-size: 28px; flex-shrink: 0; margin-top: 4px; }
.portfolio-note h3 { font-size: 17px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.portfolio-note p { font-size: 14px; color: var(--gray-400); line-height: 1.7; }

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

@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .project-card__visual { height: 200px; }
}
