/**
 * Hero Section Styles
 * v1.0.5 - Executive-Focused, Sophisticated Design
 *
 * A full-viewport hero with animated gradient background,
 * glassmorphism metrics, and elegant typography.
 */

/* ==========================================================================
   Hero Container
   ========================================================================== */

.v105-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--color-charcoal) 0%,
    var(--color-teal-dark) 35%,
    var(--color-teal) 50%,
    var(--color-teal-dark) 65%,
    var(--color-charcoal) 100%
  );
}

/* ==========================================================================
   Animated Background
   ========================================================================== */

.v105-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.v105-hero__gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(181, 103, 78, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(61, 85, 84, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(181, 103, 78, 0.08) 0%,
      transparent 70%
    );
  animation: gradient-shift 20s ease-in-out infinite;
  will-change: transform, opacity;
}

/* ==========================================================================
   Content Container
   ========================================================================== */

.v105-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  padding: var(--space-lg);
  color: var(--color-white);

  /* Start invisible for fade-in animation */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.v105-hero__content--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Hero Layout (Left/Right Split)
   ========================================================================== */

.v105-hero__layout {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.v105-hero__left {
  flex: 1;
  text-align: left;
}

.v105-hero__right {
  flex: 0 0 380px;
}

/* ==========================================================================
   Branding
   ========================================================================== */

.v105-hero__branding {
  margin-bottom: var(--space-xl);
}

.v105-hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md) 0;
  color: var(--color-white);
}

.v105-hero__subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-snug);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* ==========================================================================
   Description
   ========================================================================== */

.v105-hero__description {
  margin-bottom: var(--space-xl);
}

.v105-hero__description p {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0;
}

/* ==========================================================================
   Spotlight Card (Featured App Carousel)
   ========================================================================== */

.v105-spotlight {
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.v105-spotlight__header {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 2;
}

.v105-spotlight__badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-rust);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.v105-spotlight__slides {
  position: relative;
}

/* Slides use display:none/block toggled via JS */
.v105-spotlight__slide {
  display: none;
}

.v105-spotlight__slide--active {
  display: block;
}

.v105-spotlight__thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.v105-spotlight__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v105-spotlight__info {
  padding: var(--space-lg);
}

.v105-spotlight__app-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  margin: 0 0 var(--space-xs) 0;
  line-height: var(--line-height-tight);
}

.v105-spotlight__app-desc {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 var(--space-sm) 0;
  line-height: var(--line-height-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v105-spotlight__owner {
  display: block;
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-md);
}

.v105-spotlight__launch-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 10px 20px;
  background: var(--color-rust);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.v105-spotlight__launch-btn:hover {
  background: var(--color-rust-light);
  transform: translateY(-1px);
}

.v105-spotlight__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 var(--space-lg) var(--space-lg);
}

.v105-spotlight__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.v105-spotlight__dot--active {
  background: var(--color-rust-light);
  transform: scale(1.3);
}

.v105-spotlight__dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Metrics (Glassmorphism)
   ========================================================================== */

.v105-hero__metrics {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.v105-hero__metric {
  flex: 1 1 200px;
  max-width: 250px;
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base) var(--ease-out),
              box-shadow var(--transition-base) var(--ease-out);
  will-change: transform;
}

.v105-hero__metric:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(181, 103, 78, 0.3);
}

.v105-hero__metric-value {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  color: var(--color-rust-light);
  margin-bottom: var(--space-sm);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.v105-hero__metric-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Call to Action Button
   ========================================================================== */

.v105-hero__cta {
  margin-bottom: var(--space-xl);
}

.v105-hero__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 1rem 2.5rem;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  background: var(--color-rust);
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-base) var(--ease-out);
  box-shadow: 0 4px 14px rgba(181, 103, 78, 0.4);
}

.v105-hero__cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(181, 103, 78, 0.5);
  background: var(--color-rust-light);
}

.v105-hero__cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(181, 103, 78, 0.4);
}

.v105-hero__cta-icon {
  transition: transform var(--transition-base) var(--ease-bounce);
}

.v105-hero__cta-btn:hover .v105-hero__cta-icon {
  transform: translateY(3px);
}

/* ==========================================================================
   Last Updated
   ========================================================================== */

.v105-hero__updated {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-sm);
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.v105-hero__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-2xl);
}

.v105-hero__loading .spinner {
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: var(--color-rust-light);
}

/* ==========================================================================
   Error State
   ========================================================================== */

.v105-hero__error {
  padding: var(--space-xl);
  background: rgba(245, 101, 101, 0.1);
  border: 1px solid rgba(245, 101, 101, 0.3);
  border-radius: var(--radius-lg);
  margin-top: var(--space-xl);
}

.v105-hero__error p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-lg);
  margin: 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet (md breakpoint: 768px) */
@media (max-width: 1023px) {
  .v105-hero__content {
    padding: var(--space-md);
  }

  .v105-hero__layout {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xl);
  }

  .v105-hero__left {
    text-align: center;
  }

  .v105-hero__left .v105-hero__description p {
    margin: 0 auto;
  }

  .v105-hero__right {
    flex: none;
    width: 100%;
    max-width: 400px;
  }

  .v105-hero__title {
    margin-bottom: var(--space-sm);
  }

  .v105-hero__metrics {
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
  }

  .v105-hero__metric {
    flex: 1 1 150px;
    padding: var(--space-md);
  }

  .v105-hero__metric-value {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }
}

/* Mobile (sm breakpoint: 480px) */
@media (max-width: 767px) {
  .v105-hero {
    min-height: auto;
    padding: var(--space-2xl) 0;
  }

  .v105-hero__branding {
    margin-bottom: var(--space-lg);
  }

  .v105-hero__description {
    margin-bottom: var(--space-lg);
  }

  .v105-hero__metrics {
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
  }

  .v105-hero__metric {
    max-width: 100%;
    flex: 1 1 auto;
  }

  .v105-hero__cta-btn {
    width: 100%;
    max-width: 320px;
  }

  .v105-spotlight {
    padding: var(--space-md);
    min-height: 240px;
  }
}

/* Extra small screens */
@media (max-width: 479px) {
  .v105-hero__content {
    padding: var(--space-sm);
  }

  .v105-hero__metric {
    padding: var(--space-sm) var(--space-md);
  }

  .v105-hero__metric-value {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
  }

  .v105-hero__metric-label {
    font-size: var(--font-size-xs);
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .v105-hero {
    min-height: auto;
    page-break-after: always;
  }

  .v105-hero__background,
  .v105-hero__cta {
    display: none;
  }

  .v105-hero__content {
    color: #000;
  }
}
