/**
 * HEAVY MACHINERY - Industrial Media Showcase & Accessible Lightbox Styles
 * Light Industrial Theme (#104E46, Neutral surfaces, High-precision borders)
 */

.industrial-showcase-section {
  position: relative;
  z-index: 5;
  isolation: isolate;
  background-color: #F8FAFC;
  padding: 48px 0 60px;
  border-top: 1px solid var(--border-subtle, #E2E8F0);
  border-bottom: 1px solid var(--border-subtle, #E2E8F0);
  clear: both;
  width: 100%;
}

.showcase-sub-block {
  margin-bottom: 36px;
}

.showcase-sub-block:last-child {
  margin-bottom: 0;
}

.showcase-block-header {
  margin-bottom: 24px;
}

.showcase-block-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main, #0F172A);
  margin: 0 0 4px 0;
}

.showcase-block-sub {
  font-size: 0.9rem;
  color: var(--text-muted, #64748B);
  margin: 0;
}

/* 1. Industrial Spotlight */
.spotlight-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle, #E2E8F0);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

@media (max-width: 900px) {
  .spotlight-card {
    grid-template-columns: 1fr;
  }
}

.spotlight-media-wrap {
  position: relative;
  background: #0F172A;
  min-height: 340px;
  cursor: pointer;
  overflow: hidden;
}

.spotlight-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.spotlight-media-wrap:hover img {
  transform: scale(1.03);
}

.spotlight-video-poster, .spotlight-img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.spotlight-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  background: #104E46;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(16, 78, 70, 0.8);
  transition: all 0.2s ease;
}

.spotlight-media-wrap:hover .spotlight-play-badge {
  transform: translate(-50%, -50%) scale(1.1);
  background: #0D3E37;
}

.spotlight-details {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.badge-subtle {
  background: #F1F5F9;
  color: #475569;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.badge-verified {
  background: #DCFCE7;
  color: #15803D;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.spotlight-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main, #0F172A);
  line-height: 1.3;
  margin: 0 0 12px 0;
}

.spotlight-desc {
  font-size: 0.95rem;
  color: var(--text-muted, #475569);
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.spotlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.tag-pill {
  font-size: 11px;
  color: #104E46;
  background: #E6F4F1;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.spotlight-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--border-subtle, #E2E8F0);
  padding-top: 20px;
}

.spotlight-seller {
  font-size: 0.9rem;
  color: var(--text-muted, #64748B);
}

/* 2. Grid Layouts */
.showcase-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.showcase-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

@media (max-width: 640px) {
  .showcase-grid-4, .showcase-grid-3 {
    grid-template-columns: 1fr;
  }
}

.showcase-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle, #E2E8F0);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: #CBD5E1;
}

.showcase-card-media {
  position: relative;
  height: 190px;
  background: #0F172A;
  overflow: hidden;
}

.showcase-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.showcase-card:hover .showcase-card-media img {
  transform: scale(1.05);
}

.showcase-card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.showcase-play-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #104E46;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.showcase-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.play-btn-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #104E46;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(16, 78, 70, 0.8);
  transition: transform 0.2s ease;
}

.showcase-card:hover .play-btn-circle {
  transform: scale(1.15);
}

.showcase-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.showcase-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main, #0F172A);
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.showcase-card-snippet {
  font-size: 0.85rem;
  color: var(--text-muted, #64748B);
  line-height: 1.5;
  margin: 0 0 10px 0;
  flex: 1;
}

.showcase-card-sub {
  font-size: 0.8rem;
  color: var(--text-muted, #64748B);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* 5. Industrial Gallery Grid */
.gallery-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-tile {
  position: relative;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #0F172A;
  border: 1px solid var(--border-subtle, #E2E8F0);
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-tile:hover img {
  transform: scale(1.08);
}

.gallery-tile-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

.gallery-tile:hover .gallery-tile-hover {
  opacity: 1;
}

.gallery-tile-title {
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

.gallery-tile-sub {
  color: #94A3B8;
  font-size: 0.75rem;
  margin-top: 2px;
}

/* ==========================================================================
   Accessible Lightbox Modal
   ========================================================================== */
.showcase-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 29, 0.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.showcase-lightbox-backdrop.show {
  display: flex;
}

.showcase-lightbox-container {
  max-width: 1050px;
  width: 100%;
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  position: relative;
}

.lightbox-header {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1E293B;
  background: #0B1120;
}

.lightbox-counter {
  font-size: 12px;
  color: #94A3B8;
  font-family: 'JetBrains Mono', monospace;
}

.lightbox-close-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  transition: color 0.2s ease;
}

.lightbox-close-btn:hover, .lightbox-close-btn:focus {
  color: #FFFFFF;
  outline: none;
}

.lightbox-body {
  position: relative;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  max-height: 70vh;
  overflow: hidden;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.85);
  color: #FFFFFF;
  border: 1px solid #334155;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.lightbox-nav-btn:hover {
  background: #104E46;
  border-color: #104E46;
}

.lightbox-nav-prev {
  left: 16px;
}

.lightbox-nav-next {
  right: 16px;
}

.lightbox-footer {
  padding: 18px 24px;
  background: #0B1120;
  border-top: 1px solid #1E293B;
}

.lightbox-title {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.lightbox-desc {
  color: #94A3B8;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 10px 0;
}

.lightbox-seller-info {
  font-size: 0.8rem;
  color: #64748B;
}
