/* Gallery Page Specific Styles */

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--primary-hover);
}

.breadcrumb span {
  color: var(--text-light);
}

/* Hero Section */
.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Gallery Controls */
.gallery-controls {
  margin-bottom: 3rem;
  text-align: center;
}

.controls-header {
  margin-bottom: 2rem;
}

.controls-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.controls-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.category-filters button {
  background: var(--secondary-bg);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  font-size: 0.9rem;
}

.category-filters button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--card);
}

.category-filters button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Puzzle Gallery */
.puzzle-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.gallery-support {
  margin-top: 2rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.gallery-support--tint {
  background: linear-gradient(135deg, #f8fbff 0%, #f8fafc 100%);
}

.gallery-support__header {
  max-width: 760px;
  margin-bottom: 1.75rem;
}

.gallery-support__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gallery-support__header h2 {
  margin: 0 0 0.8rem;
  color: var(--text);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.gallery-support__header p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.gallery-support__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-support__card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.gallery-support__card h3 {
  margin: 0 0 0.65rem;
  color: var(--text);
  font-size: 1.05rem;
}

.gallery-support__card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.96rem;
}

.gallery-support__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.puzzle-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.puzzle-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.puzzle-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.puzzle-card .category-badge {
  align-self: flex-start;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 102, 204, 0.2);
}

.puzzle-card p {
  margin: 0 0 1.5rem;
  flex-grow: 1;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.puzzle-card .start-link {
  align-self: flex-start;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  transition: all 0.2s ease;
  background: transparent;
}

.puzzle-card .start-link:hover {
  background: var(--primary);
  color: white;
}

/* Responsive Design for Gallery */
@media (max-width: 768px) {
  .hero-stats {
    gap: 2rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .puzzle-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-support__links {
    flex-direction: column;
    align-items: stretch;
  }

  .category-filters {
    gap: 0.5rem;
  }

  .category-filters button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}
