/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #fcfcfd;
  color: #1e293b;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { display: block; max-width: 100%; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
}
.nav-logo-icon { width: 28px; height: 28px; }
.nav-divider {
  width: 1px;
  height: 20px;
  background: #e5e7eb;
}
.nav-page {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
}
.nav-powered {
  font-size: 13px;
  color: #64748b;
  transition: color 0.15s;
}
.nav-powered:hover { color: #f97316; }
.nav-powered strong { color: #f97316; font-weight: 600; }

/* ===== Hero ===== */
.hero {
  border-bottom: 1px solid #e5e7eb;
  padding: 56px 24px 48px;
  text-align: center;
}
.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #7c3aed;
  background: #ede8ff;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 12px;
}
.hero-sub {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 20px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  color: #64748b;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-stat strong {
  color: #0f172a;
  font-weight: 700;
}

/* ===== Filters ===== */
.filters-section {
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 24px;
  background: #fff;
}
.filters-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #475569;
  transition: all 0.15s;
}
.pill:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.pill.active {
  background: #f97316;
  color: #fff;
  border-color: #f97316;
}
.filter-dropdowns {
  display: flex;
  gap: 12px;
  align-items: center;
}
.filter-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-label {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}
.filter-select {
  padding: 7px 32px 7px 12px;
  font-size: 13px;
  font-family: inherit;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  color: #1e293b;
  cursor: pointer;
  transition: border-color 0.15s;
}
.filter-select:hover { border-color: #cbd5e1; }
.filter-select:focus { outline: none; border-color: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,0.1); }
.filter-count {
  margin-top: 12px;
  font-size: 13px;
  color: #94a3b8;
}

/* ===== Gallery (CSS Columns Masonry) ===== */
.gallery-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.masonry {
  column-count: 3;
  column-gap: 20px;
}
.gallery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 80px 24px;
  color: #94a3b8;
  font-size: 15px;
}

/* ===== Card ===== */
.card {
  break-inside: avoid;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.card-img-wrap {
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}
.card-img {
  width: 100%;
  display: block;
  transition: transform 0.3s;
}
.card:hover .card-img {
  transform: scale(1.04);
}
.card-source-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.card-source-badge.youtube {
  background: rgba(255,0,0,0.85);
  color: #fff;
}
.card-source-badge.reddit {
  background: rgba(255,69,0,0.85);
  color: #fff;
}
.card-source-badge.instagram {
  background: rgba(131,58,180,0.85);
  color: #fff;
}
.card-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 14px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s;
}
.card:hover .card-overlay {
  opacity: 1;
}
.card-overlay-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}
.card-body {
  padding: 12px 14px 14px;
}
.card-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.card-bot-tag {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  background: #f1f5f9;
  color: #475569;
  border-radius: 6px;
}
.card-season {
  font-size: 11px;
  color: #94a3b8;
  margin-left: auto;
}

/* ===== Lightbox ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-card {
  background: #fff;
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  position: relative;
  transform: translateY(12px);
  transition: transform 0.25s;
}
.lightbox-overlay.open .lightbox-card {
  transform: translateY(0);
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  color: #475569;
  transition: background 0.15s;
}
.lightbox-close:hover { background: #fff; color: #0f172a; }
.lightbox-img-wrap {
  background: #f1f5f9;
}
.lightbox-img-wrap img {
  width: 100%;
  display: block;
}
.lightbox-info {
  padding: 24px;
}
.lightbox-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.4;
}
.lightbox-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.lightbox-bots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.lightbox-bot-tag {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  background: #ede8ff;
  color: #7c3aed;
  border-radius: 6px;
}
.lightbox-season {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}
.lightbox-date {
  font-size: 13px;
  color: #94a3b8;
}
.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
.lightbox-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.lightbox-source-badge.youtube { background: #fef2f2; color: #dc2626; }
.lightbox-source-badge.reddit { background: #fff7ed; color: #ea580c; }
.lightbox-source-badge.instagram { background: #faf5ff; color: #9333ea; }
.lightbox-link {
  font-size: 13px;
  font-weight: 500;
  color: #f97316;
  transition: color 0.15s;
}
.lightbox-link:hover { color: #ea580c; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid #e5e7eb;
  padding: 40px 24px;
  text-align: center;
}
.footer-inner {
  max-width: 640px;
  margin: 0 auto;
}
.footer p {
  font-size: 14px;
  color: #64748b;
}
.footer strong { color: #f97316; }
.footer-sub {
  margin-top: 6px;
  font-size: 12px;
  color: #94a3b8;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .masonry { column-count: 2; }
  .hero-title { font-size: 28px; }
}
@media (max-width: 600px) {
  .masonry { column-count: 1; }
  .hero-title { font-size: 24px; }
  .hero { padding: 40px 20px 36px; }
  .filter-row { flex-direction: column; align-items: flex-start; }
  .filter-dropdowns { width: 100%; }
  .nav-powered { display: none; }
}
