/**
 * Hero Block Component Styles
 * Mobile-First, Glassmorphism, Modern
 */

/* ============================================
   HERO BLOCK CONTAINER
   ============================================ */

.hero-block {
  position: relative;
  min-height: 60vh;
  padding: var(--space-lg);
  border-radius: 0 0 var(--space-xl) var(--space-xl);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Background with Gradient Mesh */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mesh-default);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   AI IDENTITY BADGE
   ============================================ */

.ai-badge {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: fit-content;
}

.ai-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  background: var(--gradient-hero);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-tomato);
}

.ai-avatar svg {
  filter: brightness(0) invert(1);
}

.ai-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: var(--success-green);
  border: 2px solid white;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.ai-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.ai-name {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin: 0;
}

.ai-tagline {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   HERO HEADLINES
   ============================================ */

.hero-headline {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: var(--leading-tight);
}

.hero-subheadline {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  line-height: var(--leading-relaxed);
}

/* ============================================
   ENTRY PILLARS GRID
   ============================================ */

.entry-pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* ============================================
   PILLAR CARDS
   ============================================ */

.pillar-card {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
  
  /* Touch optimization */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  opacity: 0;
  border-radius: var(--radius-lg);
  transition: opacity 0.3s ease;
  z-index: -1;
}

/* Hover state (desktop) */
@media (hover: hover) {
  .pillar-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
  }
  
  .pillar-card:hover::before {
    opacity: 0.05;
  }
}

/* Active state (mobile touch) */
.pillar-card:active {
  transform: scale(0.98);
  background: rgba(255, 245, 245, 0.95);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-sm);
  color: var(--tomato-red-primary);
}

.pillar-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.pillar-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

.pillar-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--tomato-red-primary);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  box-shadow: var(--shadow-tomato);
}

/* ============================================
   HERO BLOCK STATES
   ============================================ */

/* Collapsed State (default) */
.hero-block[data-state="collapsed"] {
  min-height: 60vh;
}

/* Expanded State (conversation active) */
.hero-block[data-state="expanded"] {
  min-height: 80vh;
}

.hero-block[data-state="expanded"] .entry-pillars-grid {
  display: none;
}

/* Minimized State (after engagement) */
.hero-block[data-state="minimized"] {
  min-height: 20vh;
  opacity: 0.98;
  transform: scale(0.98);
}

.hero-block[data-state="minimized"] .hero-headline,
.hero-block[data-state="minimized"] .hero-subheadline,
.hero-block[data-state="minimized"] .entry-pillars-grid {
  display: none;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Small tablets and up */
@media (min-width: 640px) {
  .entry-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

/* Tablets and up */
@media (min-width: 768px) {
  .hero-block {
    min-height: 500px;
    border-radius: var(--radius-xl);
    margin: var(--space-xl);
  }
  
  .hero-headline {
    font-size: var(--text-3xl);
  }
  
  .entry-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop and up */
@media (min-width: 1024px) {
  .entry-pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .pillar-card {
    min-height: 160px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.pillar-card:focus-visible {
  outline: 2px solid var(--tomato-red-primary);
  outline-offset: 4px;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

.hero-block,
.pillar-card {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
