/**
 * Recruitment TV Slideshow Styles
 * Extracted from inline <style> for CSP compliance
 */

:root {
  --police-navy: #1a2b4a;
  --police-navy-dark: #0f1a2d;
  --police-gold: #c9a227;
  --police-gold-light: #e8c547;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--police-navy-dark);
  overflow: hidden;
  cursor: none;
}

.font-display {
  font-family: 'Oswald', system-ui, sans-serif;
}

/* Slideshow container */
.slideshow {
  width: 100vw;
  height: 100vh;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

/* Progress bar */
.progress-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(255,255,255,0.1);
  z-index: 100;
}

.progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--police-gold), var(--police-gold-light));
  transform: scaleX(0);
  transform-origin: left center;
}

@keyframes progress-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.progress-bar.animating {
  animation-name: progress-fill;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.progress-bar.paused {
  animation-play-state: paused;
}

.progress-bar.duration-6800 {
  animation-duration: 6.8s;
}

.progress-bar.duration-8000 {
  animation-duration: 8s;
}

.progress-bar.duration-8500 {
  animation-duration: 8.5s;
}

.progress-bar.duration-17000 {
  animation-duration: 17s;
}

/* Slide indicators */
.slide-indicators {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 100;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--police-gold);
  transform: scale(1.3);
}

/* Animated background pattern */
.bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--police-navy-dark) 0%, var(--police-navy) 100%);
  z-index: 0;
}

/* Subtle animated accents */
.accent-line {
  position: absolute;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--police-gold), transparent);
  opacity: 0.6;
}

.accent-line-top {
  top: 0;
  left: 0;
  right: 0;
}

.accent-line-bottom {
  bottom: 8px;
  left: 0;
  right: 0;
}

/* Icon styling */
.icon-container {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--police-gold), var(--police-gold-light));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(201, 162, 39, 0.3);
}

.icon-container svg {
  width: 56px;
  height: 56px;
  stroke: var(--police-navy);
  stroke-width: 2;
  fill: none;
}

/* Career card styling */
.career-card {
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(201, 162, 39, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.career-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--police-gold);
}

/* Recruitment photo slide (CSP-safe replacements for inline style attrs) */
.tv-photo-layout {
  height: 70vh;
}

.tv-photo-feature-image {
  object-position: center 65%;
}

/* Photo placeholder styling */
.photo-placeholder {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(201, 162, 39, 0.05));
  border: 3px dashed rgba(201, 162, 39, 0.4);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  gap: 1rem;
}

/* QR code placeholder */
.qr-placeholder {
  width: 280px;
  height: 280px;
  background: white;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
}

/* Text glow effect */
.text-glow {
  text-shadow: 0 0 40px rgba(201, 162, 39, 0.5);
}

/* Entrance animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide.active .animate-fade-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.slide.active .animate-fade-scale {
  animation: fadeInScale 0.8s ease-out forwards;
}

.slide.active .animate-slide-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.slide.active .animate-slide-right {
  animation: slideInRight 0.8s ease-out forwards;
}

.slide.active .delay-100 { animation-delay: 0.1s; }
.slide.active .delay-200 { animation-delay: 0.2s; }
.slide.active .delay-300 { animation-delay: 0.3s; }
.slide.active .delay-400 { animation-delay: 0.4s; }
.slide.active .delay-500 { animation-delay: 0.5s; }
.slide.active .delay-600 { animation-delay: 0.6s; }

/* Animation initial state */
.animate-fade-up,
.animate-fade-scale,
.animate-slide-left,
.animate-slide-right {
  opacity: 0;
}

/* Badge styling */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--police-gold), var(--police-gold-light));
  color: var(--police-navy);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Divider */
.divider {
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--police-gold), transparent);
  margin: 0 auto;
}

/* Logo watermark */
.logo-watermark {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.logo-watermark.is-visible {
  opacity: 0.9;
}

.logo-watermark img {
  height: 72px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

/* Now Hiring badge */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.6), 0 0 40px rgba(34, 197, 94, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.8), 0 0 60px rgba(34, 197, 94, 0.4);
  }
}

.now-hiring-badge {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Requirements section */
.requirements-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.requirement-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.05));
  border: 2px solid rgba(201, 162, 39, 0.4);
  border-radius: 16px;
  padding: 1.25rem 1.75rem;
  min-width: 160px;
  transition: all 0.3s ease;
}

.requirement-item:hover {
  border-color: var(--police-gold);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.25), rgba(201, 162, 39, 0.1));
}

.requirement-item svg {
  width: 32px;
  height: 32px;
  color: var(--police-gold);
}

.requirement-item span {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
}
