@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: #aa00a4;
}

/* ── NAVBAR ─────────────────────────────────────────── */
.navbar {
  background: linear-gradient(180deg, #e221c7 0%, #961884 100%);
  padding: 10px 20px;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.navbar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

/* ── LOGO ────────────────────────────────────────────── */
.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(255, 180, 255, 0.6));
}

/* ── RIGHT SIDE ───────────────────────────────────────── */
.navbar-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tagline {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  white-space: nowrap;
}

/* ── SEARCH BAR ───────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-input {
  height: 35px;
  width: 220px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  outline: none;
  backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.6);
}

.search-btn {
  height: 35px;
  padding: 0 14px;
  background: #f060c0;
  border: 1px solid transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.search-btn:active {
  transform: scale(0.97);
}

/* ── SUBNAV ─────────────────────────────────────────── */
.subnav {
  background-color: #fc5beb;
  padding: 0 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.subnav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  width: max-content;
}

.subnav-list li a {
  display: block;
  padding: 9px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: background 0.15s;
}

.subnav-list li a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.subnav-gold {
  background-color: #f5c400 !important;
  color: #000 !important;
  border-radius: 2px;
}

.subnav-gold:hover {
  background-color: #ffd700 !important;
}

/* ── STATS BANNER ────────────────────────────────────── */
.stats-banner {
  margin-top: 2rem;
  padding: 12px 18px 24px;
}

.stats-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.stats-count {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ── THUMBNAIL GRID ──────────────────────────────────── */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px; /* Increased gap */
  max-width: 75rem;
  margin: 2rem auto 0 auto;
}

.thumb-card {
  display: block;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s, border-color 0.2s;
}

.thumb-card:hover {
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.4);
}

.thumb-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistent rows */
  object-fit: cover;
  display: block;
}

/* ── LOAD MORE ───────────────────────────────────────── */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  padding-bottom: 4rem;
}

.load-more-btn {
  height: 48px; /* Slightly taller for more presence */
  padding: 0 40px;
  background: #f060c0;
  border: 1px solid transparent;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px; /* Matches modern UI */
  transition: background 0.2s, transform 0.1s;
}

.load-more-btn:hover {
  background: #fc5beb;
}

.load-more-btn:active {
  transform: scale(0.96);
}

sds {
  font-weight: 900;
}

/* ── MOBILE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 14px;
  }

  .navbar-inner {
    gap: 12px;
  }

  .logo-img {
    height: 50px;
  }

  .navbar-right {
    gap: 6px;
  }

  .tagline {
    font-size: 11px;
    white-space: normal;
  }

  .search-bar {
    width: 100%;
  }

  .search-input {
    width: 100%;
    flex: 1 1 auto;
  }

  .subnav-list li a {
    padding: 9px 10px;
    font-size: 13px;
  }

  .thumb-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .thumb-card img {
    height: 140px;
  }

  .load-more-btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 420px) {
  .thumb-grid {
    grid-template-columns: 1fr;
  }

  .thumb-card img {
    height: 200px;
  }
}