/* ============================================================
   GRIT — Explore Page (full redesign)
   explore.css
   ============================================================ */

.explore-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px 100px;
}

/* =============================================
   HERO HEADER
   ============================================= */
.explore-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 32px 0 28px;
  padding: 48px 52px;
  min-height: 200px;
  display: flex;
  align-items: center;
}

.explore-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(124,124,255,0.15) 0%, rgba(199,125,255,0.08) 50%, transparent 100%),
    linear-gradient(to right, rgba(5,6,15,0.95) 40%, rgba(5,6,15,0.5) 100%);
  z-index: 0;
}
.explore-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,124,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,124,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.explore-hero-bg::after {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,124,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.explore-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.explore-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: rgba(93,202,165,0.1);
  border: 1px solid rgba(93,202,165,0.22);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.explore-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0%,100% { box-shadow: 0 0 5px rgba(93,202,165,0.6); }
  50%      { box-shadow: 0 0 14px rgba(93,202,165,1); }
}

.explore-hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}
.explore-hero-accent {
  background: linear-gradient(135deg, #7c7cff, #c77dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.explore-hero-sub {
  font-size: 15px;
  color: rgba(180,185,220,0.65);
  max-width: 400px;
  line-height: 1.65;
}

.explore-hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 20px 32px;
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}
.explore-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ehs-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.ehs-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.explore-hero-stat-div {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
}

/* =============================================
   FEATURED POST
   ============================================= */
.explore-featured { margin-bottom: 28px; }

.featured-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.featured-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(244,196,48,0.3), transparent);
}

.featured-card {
  position: relative;
  display: block;
  height: 320px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(244,196,48,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(244,196,48,0.25);
}

.featured-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}
.featured-card:hover .featured-thumb { transform: scale(1.04); }

.featured-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 28px;
  background:
    linear-gradient(to top, rgba(5,6,15,0.96) 0%, rgba(5,6,15,0.4) 50%, transparent 100%),
    linear-gradient(to right, rgba(5,6,15,0.5) 0%, transparent 60%);
}

.featured-top { display: flex; align-items: center; gap: 10px; }
.featured-game {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 5px 14px;
  border-radius: 99px;
  background: rgba(199,125,255,0.18);
  color: var(--violet);
  border: 1px solid rgba(199,125,255,0.28);
}
.featured-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid;
}
.featured-type.guide { background: rgba(93,202,165,0.14); color: var(--teal); border-color: rgba(93,202,165,0.28); }
.featured-type.build { background: rgba(124,124,255,0.14); color: #a89bff; border-color: rgba(124,124,255,0.28); }

.featured-bottom {}
.featured-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  max-width: 680px;
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

/* =============================================
   FILTER BAR
   ============================================= */
.explore-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* Type pills */
.filter-pill-group {
  display: flex;
  gap: 4px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 99px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.filter-pill:hover { border-color: var(--border-lit); color: var(--text); background: rgba(255,255,255,0.04); }
.filter-pill.active {
  background: var(--purple-dim);
  border-color: var(--purple);
  color: var(--purple);
  font-weight: 600;
}

.filter-bar-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

/* Sort + game selects */
.filter-sort-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.filter-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 28px 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7194' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  transition: border-color 0.18s;
}
.filter-select:focus { border-color: var(--purple); }
.filter-select option { background: #0d0f1c; color: var(--text); }

/* Search */
.filter-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  margin-left: auto;
  transition: border-color 0.18s;
  min-width: 200px;
}
.filter-search-wrap:focus-within { border-color: var(--purple); }
.filter-search-wrap svg { color: var(--text-muted); flex-shrink: 0; }
.filter-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  min-width: 0;
}
.filter-search-input::placeholder { color: var(--text-hint); }
.search-clear {
  background: none;
  border: none;
  color: var(--text-hint);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
  flex-shrink: 0;
}
.search-clear:hover { color: var(--text); }

/* Results bar */
.explore-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.results-clear {
  background: none;
  border: none;
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s;
}
.results-clear:hover { color: var(--violet); }

/* =============================================
   CARD GRID
   ============================================= */
.explore-v2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ── Card ────────────────────────────────────────────────── */
.v2-card {
  position: relative;
  height: 260px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  display: block;
  animation: cardFadeUp 0.35s ease both;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.v2-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,124,255,0.35);
  box-shadow: 0 20px 56px rgba(0,0,0,0.55), 0 0 0 1px rgba(124,124,255,0.18);
}
@keyframes cardFadeUp {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}

.v2-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.9);
  transition: transform 0.45s ease, filter 0.3s ease;
}
.v2-card:hover img {
  transform: scale(1.07);
  filter: brightness(0.65) saturate(1.1);
}

/* Game emoji bg */
.v2-card-emoji-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v2-card-emoji { font-size: 56px; line-height: 1; opacity: 0.85; display: flex; align-items: center; justify-content: center; }
.v2-card-emoji img { width: 80px; height: 80px; object-fit: contain; opacity: 0.6; }

/* Overlay */
.v2-overlay {
  position: absolute;
  inset: 0;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top,
    rgba(5,6,15,0.96) 0%,
    rgba(5,6,15,0.5)  50%,
    transparent       100%);
}

.v2-overlay .game {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(199,125,255,0.15);
  color: var(--violet);
  border: 1px solid rgba(199,125,255,0.22);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v2-overlay h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 5px;
  line-height: 1.2;
  letter-spacing: 0.2px;
  color: #fff;
}

.author {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  flex-wrap: wrap;
}

.likes    { color: rgba(255,255,255,0.75); display:flex; align-items:center; gap:4px; }
.comments { color: rgba(255,255,255,0.5);  display:flex; align-items:center; gap:4px; font-size:12px; }

.tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tag.guide { background: rgba(93,202,165,0.16); color: var(--teal);  border: 1px solid rgba(93,202,165,0.28); }
.tag.build { background: rgba(124,124,255,0.16); color: #a89bff;     border: 1px solid rgba(124,124,255,0.28); }

/* ── Skeleton ─────────────────────────────────────────────── */
.v2-card.skeleton {
  pointer-events: none;
  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: 400% 100%;
  animation: shimmer 1.5s infinite linear;
  cursor: default;
}
@keyframes shimmer { 0%{background-position:100% 0} 100%{background-position:-100% 0} }

/* ── Empty state ──────────────────────────────────────────── */
.explore-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  gap: 14px;
}
.explore-empty-icon  { font-size: 52px; opacity: 0.45; }
.explore-empty-title { font-family:'Rajdhani',sans-serif; font-size:24px; font-weight:700; color:var(--text); }
.explore-empty-desc  { font-size:14px; color:var(--text-muted); max-width:320px; line-height:1.65; }
.explore-empty-desc a { color:var(--purple); text-decoration:none; }
.explore-empty-desc a:hover { color:var(--violet); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .explore-hero { padding: 32px 28px; }
  .explore-hero-title { font-size: 38px; }
  .explore-hero-stats { padding: 16px 20px; gap: 16px; }
  .ehs-num { font-size: 24px; }
  .featured-title { font-size: 26px; }
}
@media (max-width: 680px) {
  .explore-page { padding: 0 16px 80px; }
  .explore-v2-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .v2-card { height: 200px; }
  .explore-hero { padding: 24px 20px; }
  .explore-hero-title { font-size: 30px; }
  .explore-hero-stats { display: none; }
  .filter-search-wrap { min-width: 140px; margin-left: 0; }
  .explore-filter-bar { gap: 8px; }
}
@media (max-width: 480px) {
  .explore-v2-grid { grid-template-columns: 1fr; }
  .featured-card { height: 220px; }
  .featured-title { font-size: 20px; }
}

/* Following pill — teal accent */
.filter-pill-following.active {
  background: rgba(93,202,165,0.12);
  border-color: rgba(93,202,165,0.35);
  color: var(--teal);
}
