/* gallery.css - ERPNext Screenshots and App Showcase */

.gallery-hero {
  padding: 4.5rem 1.5rem 2.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
}

.gallery-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.25rem;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 9999px;
  color: #f472b6;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.gallery-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.gallery-subtitle {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 760px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* Category Filter Tabs */
.gallery-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.filter-tab {
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover, .filter-tab.active {
  background: #ec4899;
  border-color: #ec4899;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* Gallery Grid */
.gallery-container {
  max-width: 1280px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.gallery-item {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(6px);
}

.gallery-item:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.6);
}

.gallery-thumb-box {
  position: relative;
  height: 220px;
  background: #0f172a;
  overflow: hidden;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-zoom-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(236, 72, 153, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.gallery-info {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.gallery-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: #f472b6;
  font-weight: 600;
}
