/* ============================================================
   REGUTECH GALLERY — Frontend Styles (TRANSPARENT VERSION)
   ============================================================ */

.rgt-gallery-section {
  background: transparent; /* ZMIENIONE - było #0d0f12 */
  padding: 80px 24px 120px;
  position: relative;
}

.rgt-gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,201,255,0.3), transparent);
}

.rgt-gallery-container {
  max-width: 1320px;
  margin: 0 auto;
}

/* ─── FILTERS ──────────────────────────────────────── */
.rgt-gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 64px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.rgt-filter-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 28px;
  background: transparent;
  border: 2px solid #2a2f38;
  border-radius: 2px;
  color: #8b9299;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.rgt-filter-btn:hover {
  border-color: #00c9ff;
  color: #00c9ff;
}

.rgt-filter-btn.active {
  background: #00c9ff;
  border-color: #00c9ff;
  color: #0d0f12;
}

/* MOBILE - przyciski pełna szerokość */
@media (max-width: 768px) {
  .rgt-gallery-filters {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 48px;
    padding: 0 16px;
  }
  
  .rgt-filter-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* TABLET - 2 kolumny */
@media (min-width: 769px) and (max-width: 1024px) {
  .rgt-gallery-filters {
    gap: 10px;
  }
  
  .rgt-filter-btn {
    padding: 11px 20px;
    font-size: 11px;
  }
}

/* ─── CATEGORY DESCRIPTION ───────────────────────── */
.rgt-category-description {
  background: rgba(13, 15, 18, 0.25); 
  backdrop-filter: blur(10px); 
  -webkit-backdrop-filter: blur(10px); 
  border: 1px solid rgba(42, 47, 56, 0.6); 
  border-radius: 4px;
  margin-bottom: 48px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
}

.rgt-category-description-content {
  padding: 48px;
  color: #c5ccd4;
  font-family: 'Barlow', sans-serif;
  line-height: 1.8;
}

.rgt-category-description-content h1,
.rgt-category-description-content h2,
.rgt-category-description-content h3 {
  font-family: 'Bebas Neue', sans-serif;
  color: #f4f6f8;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.rgt-category-description-content h1 {
  font-size: 48px;
  line-height: 1.1;
}

.rgt-category-description-content h2 {
  font-size: 32px;
  line-height: 1.2;
  margin-top: 40px;
}

.rgt-category-description-content h3 {
  font-size: 24px;
  line-height: 1.3;
  margin-top: 32px;
}

.rgt-category-description-content p {
  margin-bottom: 20px;
  font-size: 16px;
}

.rgt-category-description-content ul,
.rgt-category-description-content ol {
  margin: 24px 0;
  padding-left: 24px;
  list-style: none;
}

.rgt-category-description-content li {
  margin-bottom: 12px;
  padding-left: 12px;
  position: relative;
}

.rgt-category-description-content ul li::before {
  content: '→';
  position: absolute;
  left: -12px;
  color: #00c9ff;
  font-weight: 700;
}

.rgt-category-description-content strong {
  color: #f4f6f8;
  font-weight: 600;
}

.rgt-category-description-content .highlight {
  color: #00c9ff;
  font-weight: 600;
}

.rgt-category-description-content .detail-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  align-items: baseline;
}

.rgt-category-description-content .detail-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00c9ff;
  min-width: 140px;
  line-height: 1.6;
}

.rgt-category-description-content .detail-value {
  color: #f4f6f8;
  flex: 1;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .rgt-category-description-content {
    padding: 32px 24px;
  }
  
  .rgt-category-description-content h1 {
    font-size: 36px;
  }
  
  .rgt-category-description-content h2 {
    font-size: 28px;
  }
  
  .rgt-category-description-content .detail-row {
    flex-direction: column;
    gap: 4px;
  }
  
  .rgt-category-description-content .detail-label {
    min-width: auto;
  }
}

/* ─── GRID ─────────────────────────────────────────── */
.rgt-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.rgt-gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #2a2f38;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent; /* ZMIENIONE - było #161920 */
}

.rgt-gallery-item:hover {
  border-color: #00c9ff;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,201,255,0.15);
}

.rgt-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.rgt-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,15,18,0.95) 0%, rgba(13,15,18,0.6) 40%, transparent 70%);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.rgt-gallery-category {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00c9ff;
  margin-bottom: 8px;
}

.rgt-gallery-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: #f4f6f8;
  line-height: 1.2;
}

.rgt-gallery-subtitle {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: #c5ccd4;
  margin-top: 4px;
  font-weight: 300;
}

/* ─── LIGHTBOX MODAL ───────────────────────────────── */
.rgt-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,15,18,0.95);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: rgtFadeIn 0.3s ease;
}

.rgt-lightbox.active {
  display: flex;
}

@keyframes rgtFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.rgt-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  animation: rgtZoomIn 0.3s ease;
}

@keyframes rgtZoomIn {
  from {
    transform: scale(0.9);
  }
  to {
    transform: scale(1);
  }
}

.rgt-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.rgt-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 48px;
  height: 48px;
  background: rgba(0,201,255,0.1);
  border: 1px solid rgba(0,201,255,0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.rgt-lightbox-close:hover {
  background: rgba(0,201,255,0.2);
  border-color: #00c9ff;
}

.rgt-lightbox-close svg {
  width: 24px;
  height: 24px;
  stroke: #00c9ff;
  stroke-width: 2;
}

.rgt-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0,201,255,0.1);
  border: 1px solid rgba(0,201,255,0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.rgt-lightbox-nav:hover {
  background: rgba(0,201,255,0.2);
  border-color: #00c9ff;
}

.rgt-lightbox-prev {
  left: -64px;
}

.rgt-lightbox-next {
  right: -64px;
}

.rgt-lightbox-nav svg {
  width: 24px;
  height: 24px;
  stroke: #00c9ff;
  stroke-width: 2;
  fill: none;
}

.rgt-lightbox-info {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  text-align: center;
}

.rgt-lightbox-category {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00c9ff;
  margin-bottom: 8px;
}

.rgt-lightbox-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  color: #f4f6f8;
}

/* ─── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 768px) {
  .rgt-gallery-section {
    padding: 60px 16px 80px;
  }
  
  .rgt-gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .rgt-lightbox {
    padding: 20px;
  }
  
  .rgt-lightbox-nav {
    display: none;
  }
  
  .rgt-lightbox-close {
    top: -50px;
  }
}

/* VIDEO SUPPORT */
.rgt-gallery-item.is-video {
  position: relative;
}

.rgt-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  color: #00c9ff;
  opacity: 0.95;
  pointer-events: none;
  z-index: 2;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 201, 255, 0.4))
          drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
}

.rgt-play-icon svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.rgt-play-icon::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(0, 201, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(8px);
  z-index: -1;
}

.rgt-play-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.rgt-gallery-item.is-video:hover .rgt-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.15);
  filter: drop-shadow(0 6px 16px rgba(0, 201, 255, 0.6))
          drop-shadow(0 12px 32px rgba(0, 0, 0, 0.8));
}

.rgt-lightbox-video-container {
  width: 90vw;
  max-width: 1280px;
  aspect-ratio: 16/9;
}

.rgt-lightbox-video {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.rgt-lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}

/* FOOTER FIX */
.rgt-gallery-section {
  min-height: calc(100vh - 200px);
}