/*
 * @component Hero
 * @description Large header section for landing pages with title, subtitle, and CTA buttons
 * @category Layout Components
 * @file /static/css/components/hero.css
 * @darkmode false
 *
 * @variant hero - Base hero container with centered content
 * @variant hero-content - Inner content wrapper (max-width constrained)
 * @variant hero-title - Large primary heading (2.5rem, bold)
 * @variant hero-subtitle - Secondary heading (1.25rem, lighter color)
 * @variant hero-description - Paragraph text (1.1rem)
 * @variant hero-buttons - Flex container for CTA buttons with gap
 * @variant hero-bg-image - Hero with background image and dark overlay
 * @variant hero-angled - Hero with angled bottom edge
 *
 * @state default - Light background, centered text
 * @state bg-image - Background image with dark overlay for contrast
 * @state responsive - Adjusted sizing on mobile (<768px)
 *
 * @example
 * <div class="hero">
 *   <div class="hero-content">
 *     <h1 class="hero-title">Welcome to SciTeX</h1>
 *     <p class="hero-subtitle">Your research companion</p>
 *     <p class="hero-description">Discover, organize, and share scientific knowledge.</p>
 *     <div class="hero-buttons">
 *       <a href="#" class="btn btn-primary">Get Started</a>
 *       <a href="#" class="btn btn-outline-secondary">Learn More</a>
 *     </div>
 *   </div>
 * </div>
 *
 * @example
 * <div class="hero hero-bg-image" style="background-image: url('bg.jpg')">
 *   <div class="hero-content">
 *     <h1 class="hero-title">Background Hero</h1>
 *     <p class="hero-description">With image background and overlay</p>
 *   </div>
 * </div>
 */

/* =========================
   Hero Styles
   ========================= */

.hero {
  background-color: var(--bg-muted);
  padding: var(--spacing-xxl) 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  color: var(--text-secondary);
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xl);
  color: var(--text-primary);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

/* Hero with background image */
.hero-bg-image {
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text-inverse);
}

.hero-bg-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(var(--black-rgb), 0.6);
}

.hero-bg-image .hero-content {
  position: relative;
  z-index: 1;
}

.hero-bg-image .hero-title,
.hero-bg-image .hero-subtitle,
.hero-bg-image .hero-description {
  color: var(--text-inverse);
}

/* Hero with angled background */
.hero-angled {
  position: relative;
  overflow: hidden;
}

.hero-angled::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10vw;
  background-color: var(--bg-page);
  transform-origin: bottom left;
  transform: skewY(-4deg);
}

.hero-angled .hero-content {
  position: relative;
  z-index: 1;
}

/* Hero with split content */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  text-align: left;
  gap: var(--spacing-xl);
}

.hero-split .hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-lg);
}

@media (max-width: 992px) {
  .hero {
    padding: var(--spacing-xl) 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-split .hero-content {
    order: 1;
  }

  .hero-split .hero-image-container {
    order: 2;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

/* SciTeX Hero Gradient Variants - Silverish AI Palette */
/* Theme-responsive hero sections */

/* Light Variant - Clean, professional appearance */
.hero-silverish-ai-light {
  background: var(--scitex-color-07);
  color: var(--scitex-color-01);
  border-bottom: 1px solid var(--border-default);
}

/* Dark theme variant */
[data-theme="dark"] .hero-silverish-ai-light {
  background: var(--scitex-color-01-dark);
  color: var(--scitex-color-07);
  border-bottom: 1px solid var(--border-default);
}

/* Radial Gradient - Focal point effect */
.hero-silverish-ai-radial {
  background: radial-gradient(
    ellipse at center,
    #999999 0%,
    #777777 30%,
    #555555 60%,
    #3a3a3a 80%,
    #1c1c1c 100%
  );
  color: var(--scitex-color-01);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .hero-silverish-ai-radial {
  background: radial-gradient(
    ellipse at center,
    #34495e 0%,
    #506b7a 30%,
    #6c8ba0 60%,
    #8fa4b0 80%,
    #b5c7d1 100%
  );
  color: var(--scitex-color-07);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Soft Variant - Gentle, subtle transitions */
.hero-silverish-ai-soft {
  background: linear-gradient(
    135deg,
    #777777 0%,
    #999999 35%,
    #c0c0c0 65%,
    #e0e0e0 100%
  );
  color: var(--scitex-color-01);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .hero-silverish-ai-soft {
  background: linear-gradient(
    135deg,
    #1a2332 0%,
    #34495e 35%,
    #506b7a 65%,
    #6c8ba0 100%
  );
  color: var(--scitex-color-07);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Subtle Variant - Very gentle, almost imperceptible gradient */
.hero-silverish-ai-subtle {
  background: linear-gradient(
    135deg,
    #999999 0%,
    #acacac 25%,
    #c0c0c0 50%,
    #d0d0d0 75%,
    #e0e0e0 100%
  );
  color: var(--scitex-color-01);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .hero-silverish-ai-subtle {
  background: linear-gradient(
    135deg,
    #1a2332 0%,
    #34495e 25%,
    #506b7a 50%,
    #6c8ba0 75%,
    #8fa4b0 100%
  );
  color: var(--scitex-color-07);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

/* Default Silverish AI - Standard variant */
.hero-silverish-ai {
  background: linear-gradient(
    135deg,
    #3a3a3a 0%,
    #555555 30%,
    #777777 60%,
    #999999 100%
  );
  color: var(--scitex-color-01);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .hero-silverish-ai {
  background: linear-gradient(
    135deg,
    #1a2332 0%,
    #34495e 30%,
    #506b7a 60%,
    #6c8ba0 100%
  );
  color: var(--scitex-color-07);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Module-specific hero variants */
.hero-scholar {
  border-bottom: 4px solid var(--scitex-color-04);
}

.hero-writer {
  border-bottom: 4px solid var(--scitex-color-03);
}

.hero-code {
  border-bottom: 4px solid var(--scitex-color-02);
}

.hero-viz {
  border-bottom: 4px solid var(--scitex-color-05);
}

/* .hero-landing is page-specific - defined in /apps/public_app/static/public_app/css/landing.css */

/* =========================
   Extended Hero Variants
   ========================= */

/* Note: Landing-specific hero styles (.hero-landing, .hero--landing-grid)
   are now in /apps/public_app/static/public_app/css/landing.css */

/* Hero Badges */
.hero-badges {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-badge {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Badge color variants — uses scitex silver palette, theme-aware */
.hero-badge--success,
.hero-badge.badge-success {
  background: transparent;
  border: 1.5px solid var(--text-secondary);
  color: var(--text-secondary);
  box-shadow: none;
}

.hero-badge--success:hover,
.hero-badge.badge-success:hover {
  background: var(--text-secondary);
  color: var(--bg-page);
}

.hero-badge--primary,
.hero-badge.badge-primary {
  background: var(--scitex-color-01);
  color: white;
}

.hero-badge--secondary,
.hero-badge.badge-secondary {
  background: var(--scitex-color-03);
  color: white;
}

/* Dark theme badge adjustments */
[data-theme="dark"] .hero-badge.badge-primary {
  background: var(--scitex-color-04);
}

[data-theme="dark"] .hero-badge.badge-secondary {
  background: var(--scitex-color-05);
  color: var(--scitex-color-01);
}

/* Hero Actions (Button Group) */
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Landing-specific hero actions moved to landing.css */

/* Hero Bullet Points */
.hero-bullet-point {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(
    --scitex-color-01
  ); /* Dark blue-gray for good contrast on light gradient */
  line-height: 1.6;
  font-weight: 500;
}

[data-theme="dark"] .hero-bullet-point {
  color: var(--scitex-color-07);
}

/* CTA Hero Section */
.hero--cta {
  text-align: center;
  padding: var(--spacing-xxl) 0;
  background: var(--scitex-color-07);
  border-radius: var(--border-radius-lg);
  margin-top: var(--spacing-xxl);
}

.hero--cta h2 {
  color: var(--scitex-color-01);
  margin-bottom: var(--spacing-md);
}

.hero--cta p {
  color: var(--scitex-color-02);
  margin-bottom: var(--spacing-lg);
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Repository Header Hero */
.hero--repo {
  background-color: var(--silver-light);
  background-image: linear-gradient(
    135deg,
    var(--silver-light) 0%,
    var(--light-color) 100%
  );
  padding: var(--spacing-xxl) 0;
  margin-bottom: var(--spacing-xxl);
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  box-shadow: var(--box-shadow-md);
}

.hero--repo h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hero--repo p.lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-color);
  max-width: 800px;
  margin: 0 auto;
}

/* Landing-specific responsive styles moved to landing.css */
@media (max-width: 576px) {
  .hero-badges {
    justify-content: flex-start;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}
