/**
 * Modern Hero Section Styles
 * StrongBody Design System Implementation
 */

.section-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg,
  var(--color-primary-300) 0%,
  var(--color-primary-400) 50%,
  var(--color-primary-500) 100%);
  color: var(--color-bg-primary);
  padding: var(--space-4) 0;
}

.section-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.02"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.04"/><circle cx="90" cy="40" r="0.8" fill="white" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
  z-index: 1;
}

/* ===== HERO CONTAINER ===== */

.hero-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  width: 100%;
  min-height: 0;
  flex-wrap: wrap;
}

/* ===== HERO CONTENT ===== */

.hero-content {
  animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  min-width: 0;
  max-width: 50%;
}

.hero-subtitle {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--color-primary-300);
  margin-bottom: var(--space-4);
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-5xl));
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-6);
  color: var(--color-white);
  animation: fadeIn 1s ease-out 0.2s both;
  word-wrap: break-word;
  hyphens: auto;
  overflow-wrap: break-word;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-green-seller-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-300), var(--color-primary-400));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: slideIn 1.2s ease-out 0.8s both;
}

.hero-description {
  font-size: var(--text-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-gray-100);
  margin-bottom: var(--space-8);
  max-width: 600px;
  animation: fadeIn 1s ease-out 0.4s both;
  word-wrap: break-word;
  hyphens: auto;
  overflow-wrap: break-word;
}

/* ===== HERO BUTTONS ===== */

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  animation: fadeIn 1s ease-out 0.6s both;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
}

.hero-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.hero-button:hover::before {
  left: 100%;
}

.hero-button.primary {
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
  color: var(--color-white);
  border: 2px solid var(--color-primary-500);
  box-shadow: var(--shadow-lg);
}

.hero-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-700));
}

.hero-button.secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.hero-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== HERO VISUAL ===== */

.hero-visual {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  transform: rotateY(-2deg);
  transition: transform var(--transition-normal);
}

.hero-image:hover {
  transform: rotateY(0deg) scale(1.01);
}

.hero-featured-image {
  width: 100%;
  max-width: 400px;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.hero-image:hover .hero-featured-image {
  transform: scale(1.05);
}

.hero-video {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.hero-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-xl);
}

/* ===== DECORATIVE ELEMENTS ===== */

.hero-decorations {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-shape-1 {
  position: absolute;
  top: 10%;
  right: 10%;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(251, 55, 46, 0.1), rgba(251, 55, 46, 0.05));
  border-radius: var(--radius-xl);
  animation: float 6s ease-in-out infinite;
}

.hero-shape-2 {
  position: absolute;
  bottom: 20%;
  left: 5%;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(25, 131, 97, 0.1), rgba(25, 131, 97, 0.05));
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

.hero-shape-3 {
  position: absolute;
  top: 50%;
  right: 5%;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(0, 162, 240, 0.1), rgba(0, 162, 240, 0.05));
  border-radius: var(--radius-lg);
  animation: float 10s ease-in-out infinite;
}

/* ===== ANIMATIONS ===== */

@keyframes slideIn {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1024px) {
  .section-hero {
    padding: var(--space-3) 0;
  }

  .hero-wrapper {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
    justify-content: flex-start;
  }

  .hero-visual {
    order: -1;
    max-width: 100%;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-featured-image,
  .hero-video {
    height: 280px;
    max-width: 350px;
  }

  .hero-title {
    font-size: clamp(var(--text-3xl), 8vw, var(--text-4xl));
  }

  .hero-description {
    max-width: 100%;
    margin-bottom: var(--space-7);
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-button {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-sm);
  }
}

@media (max-width: 768px) {
  .section-hero {
    min-height: auto;
    padding: var(--space-6) 0 var(--space-4);
  }

  .hero-wrapper {
    gap: var(--space-4);
    padding: 0 var(--space-2);
  }

  .hero-title {
    font-size: clamp(var(--text-2xl), 10vw, var(--text-3xl));
    margin-bottom: var(--space-5);
  }

  .hero-description {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-button {
    width: 100%;
    justify-content: center;
    padding: var(--space-5) var(--space-6);
  }

  .hero-image {
    transform: none;
  }

  .hero-featured-image,
  .hero-video {
    height: 250px;
    max-width: 280px;
  }

  .hero-shape-1,
  .hero-shape-2,
  .hero-shape-3 {
    display: none;
  }
}

@media (max-width: 640px) {
  .section-hero {
    padding: var(--space-12) 0 var(--space-8);
  }

  .hero-wrapper {
    padding: 0 var(--space-3);
  }

  .hero-subtitle {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-2);
  }

  .hero-title {
    font-size: clamp(var(--text-xl), 12vw, var(--text-2xl));
    margin-bottom: var(--space-4);
  }

  .hero-description {
    font-size: var(--text-sm);
    margin-bottom: var(--space-5);
  }

  .hero-featured-image,
  .hero-video {
    height: 250px;
    border-radius: var(--radius-lg);
  }
}

/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
  .section-hero *,
  .hero-content,
  .hero-visual,
  .hero-shape-1,
  .hero-shape-2,
  .hero-shape-3 {
    animation: none !important;
  }

  .hero-button:hover {
    transform: none;
  }

  .hero-image:hover {
    transform: none;
  }

  .hero-image:hover .hero-featured-image {
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .hero-subtitle {
    background: var(--color-primary-500);
    border-color: var(--color-white);
  }

  .hero-button.secondary {
    border-color: var(--color-white);
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Will-change for smooth animations */
.hero-button {
  will-change: transform;
}

.hero-image {
  will-change: transform;
}

/* ===== DARK MODE ===== */

/* Force light mode override */
:root.force-light .section-hero,
:root.force-light .section-hero {
  background: linear-gradient(135deg,
    var(--color-primary-300) 0%,
    var(--color-primary-400) 50%,
    var(--color-primary-500) 100%);
  color: var(--color-bg-primary);
}

:root.force-light .hero-subtitle,
:root.force-light .hero-subtitle {
  color: var(--color-accent);
}

:root.force-light .hero-title,
:root.force-light .hero-title {
  color: var(--color-bg-primary);
}

:root.force-light .hero-title .highlight,
:root.force-light .hero-title .highlight {
  background: linear-gradient(135deg,
    var(--color-primary-500),
    var(--color-green-seller-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

:root.force-light .hero-description,
:root.force-light .hero-description {
  color: rgba(255, 255, 255, 0.9);
}

:root.force-light .hero-button.primary,
:root.force-light .hero-button.primary {
  background: var(--color-bg-primary);
  color: var(--color-primary-500);
  border: 2px solid var(--color-bg-primary);
}

:root.force-light .hero-button.primary:hover,
:root.force-light .hero-button.primary:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-bg-secondary);
}

:root.force-light .hero-button.secondary,
:root.force-light .hero-button.secondary {
  background: transparent;
  color: var(--color-bg-primary);
  border: 2px solid var(--color-bg-primary);
}

:root.force-light .hero-button.secondary:hover,
:root.force-light .hero-button.secondary:hover {
  background: var(--color-bg-primary);
  color: var(--color-primary-500);
}

:root.force-light .hero-visual::before,
:root.force-light .hero-visual::before {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05));
}

:root.force-light .hero-shape-1,
:root.force-light .hero-shape-2,
:root.force-light .hero-shape-3,
:root.force-light .hero-shape-1,
:root.force-light .hero-shape-2,
:root.force-light .hero-shape-3 {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Force dark mode override */
:root.force-dark .section-hero,
:root.force-dark .section-hero {
  background: linear-gradient(135deg,
    var(--color-bg-primary) 0%,
    var(--color-bg-secondary) 50%,
    var(--color-bg-tertiary) 100%);
}

:root.force-dark .hero-subtitle,
:root.force-dark .hero-subtitle {
  color: var(--color-accent);
}

:root.force-dark .hero-title,
:root.force-dark .hero-title {
  color: var(--color-text-primary);
}

:root.force-dark .hero-title .highlight,
:root.force-dark .hero-title .highlight {
  background: linear-gradient(135deg,
    var(--color-primary-500),
    var(--color-green-seller-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

:root.force-dark .hero-description,
:root.force-dark .hero-description {
  color: var(--color-text-secondary);
}

:root.force-dark .hero-button.primary,
:root.force-dark .hero-button.primary {
  background: linear-gradient(135deg,
    var(--color-primary-500),
    var(--color-primary-600));
  color: var(--color-bg-primary);
}

:root.force-dark .hero-button.secondary,
:root.force-dark .hero-button.secondary {
  background: transparent;
  border-color: var(--color-border-primary);
  color: var(--color-text-primary);
}

:root.force-dark .hero-button.secondary:hover,
:root.force-dark .hero-button.secondary:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-border-hover);
}

:root.force-dark .hero-visual::before,
:root.force-dark .hero-visual::before {
  background: linear-gradient(135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 100%);
}

:root.force-dark .hero-shape-1,
:root.force-dark .hero-shape-2,
:root.force-dark .hero-shape-3,
:root.force-dark .hero-shape-1,
:root.force-dark .hero-shape-2,
:root.force-dark .hero-shape-3 {
  background: linear-gradient(135deg,
    rgba(25, 131, 97, 0.1) 0%,
    rgba(25, 131, 97, 0.05) 100%);
}

:root.force-dark .hero-stats,
:root.force-dark .hero-stats {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

:root.force-dark .hero-stat-number,
:root.force-dark .hero-stat-number {
  color: var(--color-text-primary);
}

:root.force-dark .hero-stat-label,
:root.force-dark .hero-stat-label {
  color: var(--color-text-secondary);
}

@media (prefers-color-scheme: dark) {
  .section-hero {
    background: linear-gradient(135deg,
      var(--color-bg-primary) 0%,
      var(--color-bg-secondary) 50%,
      var(--color-bg-tertiary) 100%);
  }

  .hero-subtitle {
    color: var(--color-accent);
  }

  .hero-title {
    color: var(--color-text-primary);
  }

  .hero-title .highlight {
    background: linear-gradient(135deg,
      var(--color-primary-500),
      var(--color-green-seller-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-description {
    color: var(--color-text-secondary);
  }

  .hero-button.primary {
    background: linear-gradient(135deg,
      var(--color-primary-500),
      var(--color-primary-600));
    color: var(--color-bg-primary);
  }

  .hero-button.secondary {
    background: transparent;
    border-color: var(--color-border-primary);
    color: var(--color-text-primary);
  }

  .hero-button.secondary:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-border-hover);
  }

  .hero-visual::before {
    background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.1) 100%);
  }

  .hero-shape-1,
  .hero-shape-2,
  .hero-shape-3 {
    background: linear-gradient(135deg,
      rgba(25, 131, 97, 0.1) 0%,
      rgba(25, 131, 97, 0.05) 100%);
  }

  .hero-stats {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
  }

  .hero-stat-number {
    color: var(--color-text-primary);
  }

  .hero-stat-label {
    color: var(--color-text-secondary);
  }
}

/* ===== PRINT STYLES ===== */

@media print {
  .section-hero {
    background: white !important;
    color: black !important;
    padding: 15px 0;
  }

  .hero-subtitle,
  .hero-description {
    color: var(--color-text-primary) !important;
  }

  .hero-visual {
    display: none;
  }

  .hero-shape-1,
  .hero-shape-2,
  .hero-shape-3 {
    display: none;
  }
}