/* Pixel Agents Catalog — index.html styles */

/* ── Minimal Top Bar ── */
.pa-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.5rem;
  background: rgba(15,23,42,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.pa-topbar-brand { display: flex; align-items: center; gap: 0.75rem; }
.pa-topbar-logo {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pa-topbar-logo i { color: rgba(90,200,250,0.8); }
.pa-topbar-logo:hover { color: rgba(90,200,250,0.9); }
.pa-topbar-byline {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
}
.pa-topbar-byline:hover { color: rgba(255,255,255,0.5); }
.pa-topbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.pa-topbar-link {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.pa-topbar-link:hover { color: rgba(90,200,250,0.8); }
.pa-topbar-icon {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 4px;
}
.pa-topbar-icon:hover { color: rgba(90,200,250,0.8); }
.pa-topbar-login {
  font-size: 0.82rem;
  color: rgba(90,200,250,0.7);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.pa-topbar-login:hover { color: rgba(90,200,250,1); }
.pa-topbar-user {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.pa-user-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}
.pa-topbar-logout {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.75rem;
  margin-left: 0.3rem;
}
.pa-topbar-logout:hover { color: rgba(255,255,255,0.6); }

/* Light theme topbar */
body[data-theme="light"] .pa-topbar {
  background: rgba(255,255,255,0.95);
  border-bottom-color: rgba(0,0,0,0.08);
}
body[data-theme="light"] .pa-topbar-logo { color: #1e293b; }
body[data-theme="light"] .pa-topbar-logo i { color: #3b82f6; }
body[data-theme="light"] .pa-topbar-byline { color: #94a3b8; }
body[data-theme="light"] .pa-topbar-link { color: #64748b; }
body[data-theme="light"] .pa-topbar-link:hover { color: #3b82f6; }
body[data-theme="light"] .pa-topbar-icon { color: #94a3b8; }
body[data-theme="light"] .pa-topbar-icon:hover { color: #3b82f6; }
body[data-theme="light"] .pa-topbar-login { color: #3b82f6; }
body[data-theme="light"] .pa-topbar-user { color: #475569; }
body[data-theme="light"] .pa-topbar-logout { color: #94a3b8; }

/* Fix hero gap for minimal topbar (was 85px for old main nav) */
.pa-topbar ~ .hero-base { margin-top: 0; }

/* Filter bar: horizontal scroll on overflow */
.pa-catalog-filters {
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pa-catalog-filters::-webkit-scrollbar { display: none; }

/* ── Minimal Footer ── */
.pa-footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 2rem;
}
.pa-footer a { color: rgba(255,255,255,0.45); text-decoration: none; }
.pa-footer a:hover { color: rgba(255,255,255,0.7); }
.pa-footer-sep { margin: 0 0.4rem; color: rgba(255,255,255,0.15); }

body[data-theme="light"] .pa-footer { color: #94a3b8; border-top-color: rgba(0,0,0,0.06); }
body[data-theme="light"] .pa-footer a { color: #64748b; }
body[data-theme="light"] .pa-footer a:hover { color: #334155; }
body[data-theme="light"] .pa-footer-sep { color: #e2e8f0; }

.pa-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.65rem 1.25rem;
  background: rgba(90,200,250,0.15);
  border: 1px solid rgba(90,200,250,0.3);
  color: rgba(90,200,250,0.9);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s;
}
.pa-hero-cta:hover {
  background: rgba(90,200,250,0.25);
  border-color: rgba(90,200,250,0.5);
  color: #fff;
}

.pa-catalog-shell {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ── Toolbar ── */
.pa-catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pa-catalog-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pa-filter-btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 99px;
  background: transparent;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s;
}

.pa-filter-btn:hover {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}

.pa-filter-btn.active {
  background: rgba(90,228,255,0.12);
  border-color: rgba(90,228,255,0.3);
  color: #5ae4ff;
}

.pa-catalog-count {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ── Grid ── */
.pa-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* ── Empty State ── */
.pa-catalog-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: rgba(255,255,255,0.35);
}

.pa-catalog-empty i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.4;
}

/* ══════════════════════════════════════
   LIGHT THEME — Catalog
   ══════════════════════════════════════ */
body[data-theme="light"] .pa-hero-cta {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.3);
  color: #3b82f6;
}
body[data-theme="light"] .pa-hero-cta:hover {
  background: rgba(59,130,246,0.15);
  color: #1d4ed8;
}
body[data-theme="light"] .pa-filter-btn {
  border-color: rgba(0,0,0,0.1);
  color: #64748b;
}
body[data-theme="light"] .pa-filter-btn:hover {
  border-color: rgba(0,0,0,0.2);
  color: #334155;
}
body[data-theme="light"] .pa-filter-btn.active {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.3);
  color: #3b82f6;
}
body[data-theme="light"] .pa-catalog-count { color: #94a3b8; }
body[data-theme="light"] .pa-catalog-empty { color: #94a3b8; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .pa-catalog-shell {
    padding: 1.5rem 1rem 3rem;
  }

  .pa-catalog-grid {
    grid-template-columns: 1fr;
  }

  .pa-catalog-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
