/* GIGW 3.0 Hero Slider Styles - Final Polish */
:root {
  --gigw-primary: #1B4332;
  --gigw-secondary: #003366;
  --gigw-accent: #FFD700;
  --gigw-bg: #fff;
  --gigw-contrast: #222;
  --gigw-focus: #FFA500;
  --gigw-shadow: rgba(0, 0, 0, 0.1);
  --gigw-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
  background: var(--gigw-accent);
  color: var(--gigw-primary);
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 4px;
  transition: var(--gigw-transition);
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  outline: 3px solid var(--gigw-focus);
  box-shadow: 0 4px 12px var(--gigw-shadow);
}

.gigw-hero-slider {
  width: 100%;
  background: var(--gigw-bg);
  margin: 0;
  padding: 0;
  border: none;
  position: relative;
  overflow: hidden;
}

.gigw-slider-container {
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--gigw-bg);
  border-bottom: 4px solid var(--gigw-primary);
  box-shadow: 0 2px 8px var(--gigw-shadow);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.gigw-slider-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  position: relative;
  width: 100%;
  aspect-ratio: 18 / 5;
  min-height: 200px;
  max-height: 500px;
  background: var(--gigw-bg);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.gigw-slide {
  flex: 1 0 100%;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; 
  left: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--gigw-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(20px) translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.gigw-slide.active {
  opacity: 1;
  z-index: 2;
  transform: translateX(0) translateZ(0);
}

.gigw-slide-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  border: none;
  background: var(--gigw-bg);
  box-shadow: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.gigw-slide-content {
  position: absolute;
  left: 2rem; 
  right: 0; 
  bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  color: #fff;
  padding: 0.5rem 1rem 0.4rem 1.5rem;
  max-width: 400px;
  border-radius: 0;
  box-shadow: none;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gigw-slide.active .gigw-slide-content {
  transform: translateY(0);
  opacity: 1;
}

.gigw-slide-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  line-height: 1.2;
  letter-spacing: 0;
}

.gigw-slide-description {
  font-size: 0.8rem;
  margin: 0 0 0.5rem 0;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  line-height: 1.3;
  opacity: 0.85;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gigw-slide-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--gigw-accent);
  color: var(--gigw-primary);
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  text-decoration: none;
  margin-top: 0.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.gigw-slide-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.gigw-slide-link:hover::before {
  left: 100%;
}

.gigw-slide-link:focus,
.gigw-slide-link:hover {
  background: var(--gigw-primary);
  color: #fff;
  outline: 2px solid var(--gigw-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.4);
}

/* --- Navigation Buttons: Enhanced Style --- */
.gigw-slider-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.gigw-nav {
  pointer-events: auto;
  background: rgba(27, 67, 50, 0.9);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  transform: scale(0.8) translateY(10px);
  margin: 0 24px;
}

.gigw-slider-container:hover .gigw-nav,
.gigw-nav:focus {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.gigw-nav:hover {
  background: rgba(27, 67, 50, 0.95);
  border-color: var(--gigw-accent);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

.gigw-nav:focus {
  box-shadow: 0 0 0 3px var(--gigw-focus), 0 6px 24px rgba(0,0,0,0.3);
}

.gigw-nav:active {
  transform: scale(0.95) translateY(0);
}

/* --- Play/Pause Button: Enhanced --- */
.gigw-slider-pause,
.gigw-slider-play {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 12;
  background: rgba(27, 67, 50, 0.95);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.gigw-slider-pause:hover,
.gigw-slider-play:hover {
  background: rgba(27, 67, 50, 1);
  border-color: var(--gigw-accent);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.gigw-icon-pause {
  width: 12px;
  height: 12px;
  position: relative;
}

.gigw-icon-pause::before,
.gigw-icon-pause::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 12px;
  background: #fff;
  border-radius: 1px;
}
.gigw-icon-pause::before { left: 2px; }
.gigw-icon-pause::after { right: 2px; }

.gigw-icon-play {
  width: 0;
  height: 0;
  border-left: 8px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Thumbnail Navigation: Enhanced --- */
.gigw-thumbnail-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  background: rgba(27, 67, 50, 0.9);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: calc(100vw - 40px);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gigw-thumbnail-nav::-webkit-scrollbar {
  display: none;
}

.gigw-thumbnail-list {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.gigw-thumbnail-item {
  flex-shrink: 0;
  width: 80px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  background: rgba(255, 255, 255, 0.1);
}

.gigw-thumbnail-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  transition: opacity 0.3s;
  z-index: 1;
}

.gigw-thumbnail-item:hover::before {
  opacity: 0;
}

.gigw-thumbnail-item:hover {
  transform: scale(1.1) translateY(-4px);
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.gigw-thumbnail-item.active {
  border-color: var(--gigw-accent);
  transform: scale(1.15) translateY(-6px);
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4);
}

.gigw-thumbnail-item.active::before {
  opacity: 0;
}

.gigw-thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s;
}

.gigw-thumbnail-item:hover img,
.gigw-thumbnail-item.active img {
  transform: scale(1.05);
}

/* Hide old dot indicators */
.gigw-slider-dots { display: none; }
.gigw-dot { display: none; }

/* --- Loading State --- */
.gigw-slide-image[loading] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* --- Responsive Design --- */
@media (max-width: 991px) {
  .gigw-slider-list {
    aspect-ratio: 16 / 6;
    max-height: 400px;
  }
  .gigw-slide-title {
    font-size: 1.2rem;
  }
  .gigw-slide-content {
    left: 1.5rem;
    padding: 0.4rem 0.8rem 0.3rem 1.2rem;
    max-width: 350px;
  }
  .gigw-nav {
    width: 42px;
    height: 42px;
    margin: 0 16px;
  }
  .gigw-thumbnail-item {
    width: 70px;
    height: 44px;
  }
}

@media (max-width: 600px) {
  .gigw-slider-list {
    aspect-ratio: 4 / 3;
    max-height: 300px;
  }
  .gigw-slide-content {
    left: 1rem;
    padding: 0.3rem 0.8rem 0.25rem 1rem;
    border-radius: 0;
    max-width: 300px;
  }
  .gigw-slide-title {
    font-size: 1.1rem;
  }
  .gigw-slide-description {
    font-size: 0.75rem;
    margin: 0 0 0.4rem 0;
  }
  .gigw-slide-link {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }
  .gigw-nav {
    width: 36px;
    height: 36px;
    margin: 0 12px;
    font-size: 1.2rem;
  }
  .gigw-thumbnail-nav {
    bottom: 12px;
    padding: 8px 12px;
  }
  .gigw-thumbnail-item {
    width: 60px;
    height: 38px;
  }
  .gigw-thumbnail-list {
    gap: 8px;
  }
  .gigw-slider-pause,
  .gigw-slider-play {
    width: 36px;
    height: 36px;
    bottom: 12px;
    right: 12px;
  }
}

/* --- Accessibility Enhancements --- */
@media (prefers-reduced-motion: reduce) {
  .gigw-slide,
  .gigw-slide-image,
  .gigw-slide-content,
  .gigw-nav,
  .gigw-thumbnail-item {
    transition: none;
  }
  
  .gigw-slide-image {
    transform: translateZ(0) !important;
  }
  
  .gigw-slide.active .gigw-slide-image {
    transform: translateZ(0) !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --gigw-bg: #1a1a1a;
    --gigw-contrast: #fff;
    --gigw-shadow: rgba(255, 255, 255, 0.1);
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .gigw-nav,
  .gigw-slider-pause,
  .gigw-slider-play {
    border-width: 3px;
  }
  
  .gigw-slide-link {
    border: 2px solid var(--gigw-primary);
  }
} 