/* ═══════════════════════════════════════════════════════
   WEBNATE — 5-projects-footer.css
   Controls, Projects, Footer & Responsive
   ═══════════════════════════════════════════════════════ */

/* ─── CONTROLS ─── */
.controls-section {
  position: relative; z-index: 1;
  padding: calc(32px * var(--spacing)) 28px 0;
}
.controls-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}

/* Search */
.search-block { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search-wrap {
  display: flex; align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  gap: 10px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.search-icon { color: var(--text-muted); flex-shrink: 0; }
.search-input {
  flex: 1;
  background: none; border: none; outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.84rem;
  padding: 11px 0;
}
.search-input::placeholder { color: var(--text-muted); }
.search-shortcut {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  flex-shrink: 0;
}
.search-suggestions {
  display: none; /* Completely hidden */
}

/* Sort */
.sort-select {
  padding: 11px 38px 11px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.79rem;
  cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%238888a0' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color var(--transition);
}
.sort-select:focus { outline: none; border-color: var(--accent); }
.sort-select option { background: var(--bg-card); color: var(--text-primary); }

/* View Switcher */
.view-switcher {
  display: flex; gap: 3px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.view-btn {
  width: 36px; height: 36px;
  border: none; border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.view-btn svg { fill: currentColor; }
.view-btn:hover { color: var(--text-primary); background: var(--accent-dim); }
.view-btn.active { background: var(--accent); color: #fff; }

/* Random / Shuffle */
.random-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.random-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ─── CATEGORY CHIPS ─── */
.category-section { position: relative; z-index: 1; padding: calc(22px * var(--spacing)) 28px 0; }
.category-chips { max-width: 1100px; margin: 0 auto; display: flex; gap: 8px; flex-wrap: wrap; }
.cat-chip {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}
.cat-chip:hover { border-color: var(--border-hover); color: var(--text-secondary); }
.cat-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 2px 10px var(--accent-glow); }

/* ─── TAG CLOUD ─── */
.tagcloud-section { position: relative; z-index: 1; padding: calc(14px * var(--spacing)) 28px 0; }
.tagcloud { max-width: 1100px; margin: 0 auto; display: flex; gap: 6px; flex-wrap: wrap; }
.tag-item {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.67rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all var(--transition);
}
.tag-item:hover { border-color: var(--accent-light); color: var(--accent-light); }
.tag-item.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent-light); }

/* ─── FILTER SUMMARY ─── */
.filter-summary {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: calc(14px * var(--spacing)) 28px 0;
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  min-height: 36px;
}
.filter-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  color: var(--accent-light);
  font-size: 0.7rem;
  font-weight: 500;
}
.filter-pill-remove {
  background: none; border: none;
  color: var(--accent-light);
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1; opacity: 0.55;
  transition: opacity var(--transition);
  padding: 0;
}
.filter-pill-remove:hover { opacity: 1; }
.filter-clear { font-size: 0.7rem; color: var(--text-muted); background: none; border: none; cursor: pointer; font-weight: 500; transition: color var(--transition); }
.filter-clear:hover { color: var(--accent); }

/* ─── PROJECT COUNT BAR ─── */
.project-count-bar {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: calc(16px * var(--spacing)) 28px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
#projectCount { font-size: 0.73rem; color: var(--text-muted); font-family: var(--font-mono); }
.category-jumps { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-jump {
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.64rem;
  font-family: var(--font-mono);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
.cat-jump:hover { border-color: var(--accent); color: var(--accent); }

/* ─── PROJECTS MAIN ─── */
.projects-main {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: calc(28px * var(--spacing)) 28px calc(90px * var(--spacing)) 0;
}

/* Grid View */
.projects-view.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: calc(20px * var(--spacing));
}

/* List View */
.projects-view.list-view { display: flex; flex-direction: column; gap: calc(12px * var(--spacing)); }

/* ─── PROJECT CARD ─── */
.project-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
  position: relative;
}
/* Glass shimmer on hover */
.project-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 50%, rgba(255,255,255,0.02) 100%);
  border-radius: var(--radius);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover::after { opacity: 1; }
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
}
.project-card.highlighted {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow), var(--shadow-card-hover);
}
/* Top accent stripe */
.project-card .card-stripe {
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 2;
}
.project-card:hover .card-stripe { opacity: 1; }

.card-thumb-wrap { overflow: hidden; }
.card-thumb {
  width: 100%; height: 180px;
  object-fit: cover;
  background: var(--bg-input);
  transition: transform 0.55s cubic-bezier(.4,0,.2,1);
}
.project-card:hover .card-thumb { transform: scale(1.05); }
.card-body { padding: calc(18px * var(--spacing)); position: relative; z-index: 1; }
.card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.card-cat {
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* Category colors */
.card-cat[data-category="Games"] {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}
.card-cat[data-category="Tools"] {
  background: linear-gradient(135deg, #06b6d4, #22d3ee);
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}
.card-cat[data-category="Experiments"] {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.card-complexity {
  font-size: 0.63rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-input);
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.card-desc { font-size: 0.77rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 14px; }
.card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 16px; }
.card-tag {
  font-size: 0.61rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
}
.card-actions { display: flex; gap: 8px; }
.card-btn {
  flex: 1;
  padding: 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.card-btn:hover { border-color: var(--accent); color: var(--accent); }
.card-btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.card-btn.primary:hover { box-shadow: 0 4px 14px var(--accent-glow); }

/* ─── LIST VIEW CARD ─── */
.list-view .project-card { display: flex; flex-direction: row; align-items: stretch; }
.list-view .card-thumb-wrap { width: 160px; min-height: 110px; flex-shrink: 0; }
.list-view .card-thumb { width: 100%; height: 100%; }
.list-view .card-body { display: flex; flex-direction: column; justify-content: center; }
.list-view .card-tags { display: none; }
.list-view .card-actions { margin-top: auto; }

/* ─── NO RESULTS ─── */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ─── LOAD MORE BUTTON ─── */
.load-more-btn {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  margin: 20px auto 0;
  border-radius: var(--radius-pill);
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}

.load-more-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  z-index: -1;
}

.load-more-btn:hover::before {
  transform: translateY(0);
}

.load-more-btn:hover {
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
  transform: translateY(-2px);
}

.load-more-btn svg {
  transition: transform 0.3s ease;
}

.load-more-btn:hover svg {
  transform: translateY(3px);
}

/* ─── VIEW LESS BUTTON ─── */
.view-less-btn {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  margin: 20px auto 0;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}

.view-less-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-input);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  z-index: -1;
}

.view-less-btn:hover::before {
  transform: translateY(0);
}

.view-less-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.view-less-btn svg {
  transition: transform 0.3s ease;
}

.view-less-btn:hover svg {
  transform: translateY(-3px);
}

/* ─── FOOTER ─── */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: calc(36px * var(--spacing)) 28px 0;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-left { display: flex; flex-direction: column; gap: 5px; }
.footer-logo {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 7px;
}
.footer-copy { font-size: 0.7rem; color: var(--text-muted); }
.footer-right { display: flex; gap: 10px; align-items: center; }
.footer-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 500;
  transition: all var(--transition);
}
.footer-link:hover { border-color: var(--accent); color: var(--accent); }
.footer-coffee:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.shortcut-hint {
  max-width: 1100px; margin: 22px auto 0;
  padding-bottom: 22px;
  text-align: center;
  font-size: 0.63rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  opacity: 0.6;
}
.shortcut-hint kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 18px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.58rem;
  color: var(--text-secondary);
  padding: 0 5px;
  margin: 0 2px;
}

/* ─── FADE-UP ─── */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(.4,0,.2,1), transform 0.65s cubic-bezier(.4,0,.2,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── SLIDE IN UP ANIMATION (for new cards) ─── */
.slide-in-up {
  animation: slideInUp 0.5s cubic-bezier(.4,0,.2,1) forwards;
  opacity: 0;
  transform: translateY(40px);
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── FADE OUT DOWN ANIMATION (for removing cards) ─── */
@keyframes fadeOutDown {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .bento-large {
    grid-column: span 4;
  }
  
  .bento-stat,
  .bento-graph,
  .bento-marquee,
  .bento-deploy,
  .bento-performance,
  .bento-categories,
  .bento-badge,
  .bento-quality {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .magnetic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .projects-view.grid-view { grid-template-columns: 1fr; }
  .list-view .project-card { flex-direction: column; }
  .list-view .card-thumb-wrap { width: 100%; min-height: 150px; }
  .controls-inner { flex-direction: column; align-items: stretch; }
  .search-block { max-width: 100%; }
  .spotlight-card { flex-direction: column; }
  .spotlight-thumb { width: 100%; height: 130px; }
  .stats-inner { gap: 28px; }
  .stat-card:not(:last-child)::after { display: none; }
  .hero { padding-top: 110px; }
  .topbar-actions .theme-switcher { display: none; }
  .hero-actions { flex-direction: column; }
  .orb { opacity: 0.18; }
  
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  
  .bento-large,
  .bento-stat,
  .bento-graph,
  .bento-marquee,
  .bento-deploy,
  .bento-performance,
  .bento-categories,
  .bento-badge,
  .bento-quality {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .bento-large {
    min-height: 280px;
  }
}

@media (max-width: 520px) {
  .magnetic-grid {
    grid-template-columns: 1fr;
  }
  
  .floating-cards {
    display: none;
  }
  
  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero-title { font-size: 2.8rem; letter-spacing: -1.5px; }
}