/* 🌍 HARSHGURUJI — EXPLORE.CSS */

/* Global Variables (using existing ones if possible, adding specifics) */
:root {
  --explore-bg: var(--bg-dark, #0d0d12);
  --explore-card-bg: rgba(255, 255, 255, 0.03);
  --explore-card-border: rgba(255, 255, 255, 0.08);
  --explore-card-hover: rgba(255, 255, 255, 0.15);
  --explore-text-primary: #ffffff;
  --explore-text-secondary: #a0a0a0;
  --explore-accent: #ff3366;
  --explore-accent-hover: #ff1a53;
  --explore-chip-bg: rgba(255, 255, 255, 0.05);
  --explore-chip-active: var(--explore-accent);
}

body.explore-page {
  background-color: var(--explore-bg);
  color: var(--explore-text-primary);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* Hero Section */
.explore-hero {
  padding: 120px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.explore-hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 51, 102, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.explore-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.explore-hero p {
  font-size: 1.1rem;
  color: var(--explore-text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Global Search */
.explore-search-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}

.explore-search-input {
  width: 100%;
  padding: 18px 24px 18px 50px;
  border-radius: 50px;
  border: 1px solid var(--explore-card-border);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.explore-search-input:focus {
  outline: none;
  border-color: var(--explore-accent);
  box-shadow: 0 0 0 4px rgba(255, 51, 102, 0.1);
}

.explore-search-icon {
  position: absolute;
  left: 20px;
  color: var(--explore-text-secondary);
  font-size: 1.2rem;
}

.explore-search-clear {
  position: absolute;
  right: 20px;
  background: none;
  border: none;
  color: var(--explore-text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  display: none;
}

.explore-search-clear:hover {
  color: #fff;
}

/* Category Chips */
.explore-categories {
  padding: 20px 0;
  border-bottom: 1px solid var(--explore-card-border);
  margin-bottom: 40px;
}

.explore-chips-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 20px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  max-width: 1200px;
  margin: 0 auto;
}

.explore-chips-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.explore-chip {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--explore-chip-bg);
  color: var(--explore-text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.explore-chip:hover {
  background: rgba(255, 255, 255, 0.1);
}

.explore-chip.active {
  background: var(--explore-chip-active);
  color: #fff;
}

/* Section Styling */
.explore-section {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.explore-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.explore-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Grid System */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

@media (min-width: 600px) {
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .explore-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .explore-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Card Design */
.explore-card {
  background: var(--explore-card-bg);
  border: 1px solid var(--explore-card-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.explore-card:hover {
  transform: translateY(-5px);
  border-color: var(--explore-card-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #ddd;
  font-weight: 600;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.05);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--explore-text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-meta {
  font-size: 0.8rem;
  color: #888;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.card-action {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--explore-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.explore-card:hover .card-action {
  gap: 10px;
}

/* Skeletons */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeletonLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.explore-card.skeleton-card {
  pointer-events: none;
}

.skeleton-icon { width: 60px; height: 60px; border-radius: 12px; margin-bottom: 16px; }
.skeleton-title { height: 24px; width: 80%; margin-bottom: 12px; }
.skeleton-desc { height: 14px; width: 100%; margin-bottom: 8px; }
.skeleton-desc.short { width: 60%; margin-bottom: 24px; }
.skeleton-btn { height: 20px; width: 100px; }

/* Empty / Error States */
.explore-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--explore-card-bg);
  border-radius: 16px;
  border: 1px dashed var(--explore-card-border);
}

.explore-empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.explore-empty-state p {
  color: var(--explore-text-secondary);
  margin-bottom: 20px;
}

.btn-retry {
  padding: 10px 24px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--explore-card-border);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-retry:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Section Hidden logic for search */
.explore-section.hidden {
  display: none !important;
}
