/* =============================================
   CAMPUS - Homepage CSS
   ============================================= */

/* ─── HERO ───────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  text-align: center;
  border-bottom: 1px solid rgba(29, 185, 84, 0.08);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero-glow-1 {
  width: 500px; height: 500px;
  background: rgba(29, 185, 84, 0.08);
  top: -100px; left: -100px;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: rgba(0, 100, 255, 0.05);
  bottom: -80px; right: -80px;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(29, 185, 84, 0.1);
  border: 1px solid rgba(29, 185, 84, 0.3);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.8px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-gradient {
  background: linear-gradient(135deg, #1db954, #4ade80, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.65;
}

/* ─── SEARCH BAR ─────────────────────────────── */
/* Desktop: show text, hide icon */
.search-btn-icon { display: none; }
.search-btn-text { display: inline; }
.search-bar-wrap {
  max-width: 660px;
  margin: 0 auto 44px;
  position: relative;
}

.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(29, 185, 84, 0.35);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar:focus-within {
  border-color: var(--green);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 3px rgba(29,185,84,0.12);
}

.search-icon {
  padding: 0 16px;
  font-size: 18px;
  opacity: 0.5;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  padding: 18px 0;
}

.search-input::placeholder { color: var(--text-dim); }

.search-bar .btn {
  margin: 8px 8px 8px 0;
  border-radius: 10px;
  flex-shrink: 0;
}

/* ─── HERO STATS ─────────────────────────────── */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  width: 100%;
  overflow: hidden;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 28px;
  min-width: 80px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-stat-icon { font-size: 20px; }

.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--green);
  font-family: var(--mono);
  min-width: 60px;
  text-align: center;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── BROWSE SECTION ─────────────────────────── */
.browse-section { padding: 44px 0 80px; }

/* ─── FILTER ROW ─────────────────────────────── */
.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-divider {
  width: 1px; height: 28px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.sort-label {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ─── CATEGORY ROW ───────────────────────────── */
.category-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 24px;
  scrollbar-width: none;
}
.category-row::-webkit-scrollbar { display: none; }

/* ─── RESULTS META ───────────────────────────── */
.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}

.results-count {
  font-size: 14px;
  color: var(--text-muted);
}

.view-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
}
.view-hint.locked {
  background: rgba(255,165,0,0.1);
  border: 1px solid rgba(255,165,0,0.25);
  color: var(--orange);
}
.view-hint.unlocked {
  background: rgba(29,185,84,0.1);
  border: 1px solid rgba(29,185,84,0.25);
  color: var(--green);
}

/* ─── SKELETON LOADERS ───────────────────────── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.skeleton-card {
  height: 200px;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite linear;
  border: 1px solid var(--border);
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 60px 0 50px; }
  .hero-sub { font-size: 16px; }
  .hero-stat { padding: 0 20px; }
  .hero-stat-num { font-size: 22px; }
  .filter-row { gap: 8px; }
  .sort-wrap { margin-left: 0; }

  /* Search bar full width on mobile */
  .search-bar-wrap { margin: 0 0 36px; }
  .search-bar { border-radius: 12px; }
  .search-input { font-size: 15px; padding: 16px 0; }
  .search-icon  { padding: 0 12px; font-size: 16px; }

  /* Button: hide text, show SVG icon only */
  .search-bar .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 48px;
    min-width: 48px;
    height: 40px;
    margin: 8px 8px 8px 0;
    border-radius: 10px;
  }
  .search-btn-text { display: none; }
  .search-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
  }
}

@media (max-width: 480px) {
  /* Stats — all 3 side by side, no dividers, tighter padding */
  .hero-stat-divider { display: none; }
  .hero-stats { gap: 8px; justify-content: space-around; padding: 0 8px; }
  .hero-stat { padding: 0 10px; min-width: 0; flex: 1; }
  .hero-stat-num { font-size: 20px; min-width: unset; }
  .hero-stat-icon { font-size: 16px; }
  .hero-stat-label { font-size: 10px; }

  /* Stack CTA buttons vertically */
  #hero-cta { flex-direction: column; align-items: center; }
  #hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* Filter chips scroll horizontally */
  .filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-divider { display: none; }
}

@media (max-width: 360px) {
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 14px; }
  .hero-stat-num { font-size: 18px; }
}
