/* ============================================
   CATEGORY PAGE STYLES
   Inherits from ../index.css
   ============================================ */

/* ---------- Gallery Groups ---------- */
.gallery-group {
  margin-bottom: 60px;
}

.gallery-group-header {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-badge {
  background: var(--accent-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---------- Page Header ---------- */
.page-header {
  padding-top: 140px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(108, 60, 225, 0.06);
  filter: blur(80px);
  pointer-events: none;
}

.page-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.page-header .breadcrumb a {
  color: var(--accent);
  font-weight: 500;
  transition: color var(--duration-fast) ease;
}

.page-header .breadcrumb a:hover {
  color: var(--accent-dark);
}

.page-header .breadcrumb .separator {
  font-size: 12px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.page-title .accent-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 32px;
}

.page-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.page-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.page-meta-item .meta-icon {
  font-size: 16px;
}

/* ---------- Back Button ---------- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--duration-normal) var(--ease-out);
  margin-bottom: 40px;
}

.back-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(-4px);
  box-shadow: var(--shadow-md);
}

.back-btn .arrow-left {
  transition: transform var(--duration-fast) var(--ease-out);
}

.back-btn:hover .arrow-left {
  transform: translateX(-4px);
}

/* ---------- Gallery Section ---------- */
.gallery-section {
  padding-bottom: var(--section-padding);
}

/* Masonry-style grid */
.gallery-grid {
  columns: 3;
  column-gap: var(--gap);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Overlay on hover */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26, 26, 26, 0.7) 100%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

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

.gallery-item-overlay p {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

/* Items with info bar below image */
.gallery-item-info {
  padding: 16px 20px;
}

.gallery-item-info h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.gallery-item-info p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Empty State / Placeholder ---------- */
.gallery-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  break-inside: avoid;
  margin-bottom: var(--gap);
}

.gallery-placeholder .placeholder-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.gallery-placeholder p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Bottom CTA ---------- */
.bottom-cta {
  text-align: center;
  padding: 60px 0 0;
}

.bottom-cta p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--duration-fast) ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .gallery-grid {
    columns: 2;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding-top: 110px;
    padding-bottom: 40px;
  }

  .gallery-grid {
    columns: 1;
  }

  .page-meta {
    gap: 16px;
  }
}
