/* SimCzech Cinematic Homepage */

.sc-cinematic-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg,
    rgba(15, 23, 42, 0.3) 0%,
    rgba(15, 23, 42, 0.7) 50%,
    rgba(15, 23, 42, 1) 100%),
    var(--sc-hero-bg-image, url('/themes/custom/byte_theme/images/hero-fallback.jpg')) center/cover;
}

.sc-cinematic-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  z-index: 1;
}


/* Admin-configurable overlay via --sc-hero-overlay CSS var */
.sc-cinematic-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, var(--sc-hero-overlay, 0.7));
  z-index: 0;
  pointer-events: none;
}

.sc-cinematic-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.sc-cinematic-hero__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.sc-particle {
  position: absolute;
  background: rgba(245, 158, 11, 0.4);
  border-radius: 50%;
  animation: sc-particle-float linear infinite;
  opacity: 0;
}

@keyframes sc-particle-float {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(1);
  }
}

/* Content */
.sc-cinematic-hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sc-cinematic-hero--loaded .sc-cinematic-hero__content {
  opacity: 1;
  transform: translateY(0);
}

.sc-cinematic-hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sc-accent, #f59e0b);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.4rem 1.2rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: sc-fade-in 0.8s 0.3s forwards;
}

.sc-cinematic-hero__title {
  margin: 0 0 1rem;
}

.sc-cinematic-hero__line {
  display: block;
}

.sc-cinematic-hero__line--1 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--sc-text-muted, #94a3b8);
  opacity: 0;
  animation: sc-fade-in 0.8s 0.5s forwards;
}

.sc-cinematic-hero__line--2 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--sc-accent, #f59e0b), #fbbf24, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  opacity: 0;
  animation: sc-fade-in 0.8s 0.7s forwards, sc-glow-text 3s 1.5s infinite alternate;
}

.sc-cinematic-hero__subtitle {
  font-size: 1.1rem;
  color: var(--sc-text-muted, #94a3b8);
  margin: 0 0 2rem;
  letter-spacing: 0.15em;
  opacity: 0;
  animation: sc-fade-in 0.8s 0.9s forwards;
}

/* Stats */
.sc-cinematic-hero__stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: sc-fade-in 0.8s 1.1s forwards;
}

.sc-cinematic-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sc-cinematic-hero__stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--sc-text, #e2e8f0);
}

.sc-cinematic-hero__stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sc-text-muted, #94a3b8);
}

/* CTA Buttons */
.sc-cinematic-hero__cta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: sc-fade-in 0.8s 1.3s forwards;
}

.sc-cinematic-hero__btn {
  padding: 0.8rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sc-cinematic-hero__btn--primary {
  background: var(--sc-accent, #f59e0b);
  color: #000;
}

.sc-cinematic-hero__btn--primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

.sc-cinematic-hero__btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--sc-text, #e2e8f0);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.sc-cinematic-hero__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* Scroll indicator */
.sc-cinematic-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  animation: sc-fade-in 0.8s 2s forwards;
}

.sc-cinematic-hero__scroll span {
  font-size: 0.75rem;
  color: var(--sc-text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.sc-cinematic-hero__scroll-arrow {
  color: var(--sc-accent, #f59e0b);
  font-size: 1.2rem;
  animation: sc-bounce 2s infinite;
}

/* Toggle button */
.sc-cinematic-toggle {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 9999;
  background: var(--sc-bg-card, #1e293b);
  border: 1px solid var(--sc-border, #334155);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sc-cinematic-toggle:hover {
  border-color: var(--sc-accent, #f59e0b);
  transform: scale(1.1);
}

.sc-cinematic-toggle__icon {
  font-size: 1rem;
}

/* Animations */
@keyframes sc-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sc-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
  60% {
    transform: translateY(-3px);
  }
}

@keyframes sc-glow-text {
  from {
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0));
  }
  to {
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.3));
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sc-cinematic-hero__content,
  .sc-cinematic-hero__badge,
  .sc-cinematic-hero__line--1,
  .sc-cinematic-hero__line--2,
  .sc-cinematic-hero__subtitle,
  .sc-cinematic-hero__stats,
  .sc-cinematic-hero__cta,
  .sc-cinematic-hero__scroll {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .sc-particle {
    animation: none;
  }
}

@media (max-width: 768px) {
  .sc-cinematic-hero {
    min-height: 80vh;
  }

  .sc-cinematic-hero__stats {
    gap: 1.5rem;
  }

  .sc-cinematic-hero__stat-value {
    font-size: 1.5rem;
  }

  .sc-cinematic-hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .sc-cinematic-hero__btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
}
