/* =============================================
   Gallery Page — Styles
   ============================================= */

/* Filter Buttons */
.gallery-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--off-white);
  border: 2px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(212,5,17,0.04);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 20px;
}

.gallery-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
}

.gallery-card {
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px) scale(1.01);
}

.gallery-card-wide {
  grid-column: span 2;
}

.gallery-card-tall {
  grid-row: span 2;
}

/* Gallery Visual — Gradient backgrounds with emoji overlays */
.gallery-visual {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-visual {
  transform: scale(1.06);
}

/* Background gradients for each item type */
.gv-packing-1  { background: linear-gradient(135deg, #1A1A2E 0%, #D40511 100%); }
.gv-packing-2  { background: linear-gradient(135deg, #0F3460 0%, #D40511 80%); }
.gv-packing-3  { background: linear-gradient(135deg, #16213E 0%, #A0040D 100%); }
.gv-loading-1  { background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%); }
.gv-loading-2  { background: linear-gradient(135deg, #1A1A2E 0%, #3B5BDB 100%); }
.gv-loading-3  { background: linear-gradient(135deg, #2D1B69 0%, #7048E8 100%); }
.gv-transport-1{ background: linear-gradient(135deg, #1A1A2E 0%, #FFCC00 100%); }
.gv-transport-2{ background: linear-gradient(135deg, #7C3AED 0%, #DB2777 100%); }
.gv-transport-3{ background: linear-gradient(135deg, #0F3460 0%, #1CB0A8 100%); }
.gv-storage-1  { background: linear-gradient(135deg, #064E3B 0%, #1B4332 100%); }
.gv-storage-2  { background: linear-gradient(135deg, #1A1A2E 0%, #7C3AED 100%); }
.gv-team-1     { background: linear-gradient(135deg, #D40511 0%, #FF6B35 100%); }
.gv-team-2     { background: linear-gradient(135deg, #0F3460 0%, #D40511 80%); }

/* Emoji Icon Overlay */
.gallery-icon-overlay {
  font-size: 5rem;
  opacity: 0.25;
  position: absolute;
  bottom: 20px;
  right: 20px;
  transition: var(--transition-slow);
  line-height: 1;
}

.gallery-card:hover .gallery-icon-overlay {
  opacity: 0.5;
  transform: scale(1.2) rotate(-10deg);
  font-size: 6rem;
}

/* Decorative moving dots grid */
.gallery-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Text Overlay on Hover */
.gallery-text-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-card:hover .gallery-text-overlay {
  opacity: 1;
}

.go-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.go-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
}

/* Gallery Info Bar */
.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.15);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-card:hover .gallery-info {
  opacity: 1;
  transform: translateY(0);
}

.gallery-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(212,5,17,0.8);
  color: var(--white);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.gallery-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }
}

@media (max-width: 768px) {
  .gallery-filters { gap: 8px; }
  .filter-btn { padding: 8px 16px; font-size: 0.8rem; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .gallery-card-wide { grid-column: span 1; }
  .gallery-card-tall { grid-row: span 1; }
}
