/*
Theme Name: Signal Over Noise
Theme URI: https://signalovernoise.at/
Version: 1.0
Description: Child Theme of Divi
Author: J Christian
Template: Divi
*/

@import url("../Divi/style.css");

/**
 * Signal Over Noise - Animation Styles
 * Mid-Century Modern CSS for Anime.js Animations
 * Brand Colors: Teal (#1B9AAA), Coral (#EF6351), Cream (#F7F4EA), Black (#1A1A1A)
 */

/* =============================================================================
   CSS VARIABLES & FOUNDATION
   ============================================================================= */

:root {
  /* Primary Brand Colors */
  --color-primary-teal: #1B9AAA;
  --color-primary-coral: #EF6351;
  --color-background-cream: #F7F4EA;
  --color-text-black: #1A1A1A;
  
  /* Supporting Colors */
  --color-accent-mustard: #E5B945;
  --color-accent-navy: #2C3E50;
  --color-accent-sage: #88AB8E;
  
  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Animation Timing */
  --animation-fast: 200ms;
  --animation-normal: 400ms;
  --animation-slow: 600ms;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(26, 26, 26, 0.05);
  --shadow-md: 0 4px 6px rgba(26, 26, 26, 0.1);
  --shadow-lg: 0 10px 30px rgba(26, 26, 26, 0.15);
  --shadow-xl: 0 20px 40px rgba(26, 26, 26, 0.2);
}

/* =============================================================================
   ANIMATION BASE STYLES - FIXED FOR ANIME.JS COMPATIBILITY
   ============================================================================= */

/* Prevent animation flash on load */
.animate-on-scroll {
  opacity: 0;
}

/* CRITICAL FIX: Only apply transitions to non-animated elements */
/* This was blocking anime.js from working! */
button,
a,
input,
textarea,
select {
  transition: background-color var(--animation-fast) ease-out,
              border-color var(--animation-fast) ease-out,
              box-shadow var(--animation-fast) ease-out;
}

/* Explicitly disable ALL transitions on anime.js animated elements */
.animate-on-scroll,
[data-anime],
#anime-test,
.hero-geometric-shape,
.hero-silhouette,
.hero-title,
.hero-subtitle,
.hero-cta,
.field-guide-card,
.guide-icon,
.starburst-line,
.loading-dot,
.past-step,
.shape-step,
.past-connector,
.success-burst,
.success-burst *,
#professional-silhouette,
.technical-diagram path,
.retro-loader *,
.test-element,
.grid-item {
  transition: none !important;
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -o-transition: none !important;
}

/* =============================================================================
   HERO SECTION ANIMATIONS
   ============================================================================= */

.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-background-cream) 0%, #ffffff 100%);
}

.hero-silhouette {
  position: absolute;
  right: 10%;
  bottom: 0;
  width: 400px;
  height: 500px;
  opacity: 0;
  filter: drop-shadow(0 10px 30px rgba(26, 26, 26, 0.1));
}

.hero-geometric-shape {
  position: absolute;
  opacity: 0;
  transform-origin: center;
}

/* Geometric shape positions */
.hero-geometric-shape:nth-child(1) {
  top: 10%;
  left: 15%;
  width: 60px;
  height: 60px;
  background: var(--color-primary-teal);
  border-radius: 50%;
}

.hero-geometric-shape:nth-child(2) {
  top: 20%;
  right: 20%;
  width: 80px;
  height: 80px;
  background: var(--color-primary-coral);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.hero-geometric-shape:nth-child(3) {
  bottom: 20%;
  left: 10%;
  width: 100px;
  height: 100px;
  border: 3px solid var(--color-accent-mustard);
  transform: rotate(45deg);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-text-black);
  line-height: 1.1;
  opacity: 0;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--color-accent-navy);
  margin-top: var(--space-md);
  opacity: 0;
}

.hero-cta {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-primary-teal);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  margin-top: var(--space-lg);
  opacity: 0;
  transform-origin: center;
  box-shadow: var(--shadow-md);
}

.hero-cta:hover {
  background: var(--color-primary-coral);
  box-shadow: var(--shadow-lg);
}

/* =============================================================================
   ATOMIC STARBURST STYLES
   ============================================================================= */

.section-divider {
  position: relative;
  height: 100px;
  margin: var(--space-xxl) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.starburst-container {
  position: relative;
  width: 100px;
  height: 100px;
}

.starburst-line {
  position: absolute;
  width: 2px;
  background: linear-gradient(
    to top,
    transparent,
    var(--color-primary-teal) 30%,
    var(--color-primary-teal) 70%,
    transparent
  );
  transform-origin: center bottom;
}

/* =============================================================================
   FIELD GUIDES GRID
   ============================================================================= */

.field-guides-section {
  padding: var(--space-xxl) 0;
  background: var(--color-background-cream);
}

.field-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.field-guide-card {
  background: white;
  border-radius: 8px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
  cursor: pointer;
}

.field-guide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--color-primary-teal) 0%, 
    var(--color-primary-coral) 100%);
}

.guide-icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-background-cream);
  border-radius: 50%;
  transform-origin: center;
}

.guide-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--color-primary-teal);
}

.field-guide-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-black);
  margin-bottom: var(--space-sm);
}

.field-guide-description {
  color: var(--color-accent-navy);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.field-guide-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-coral);
}

/* =============================================================================
   PROFESSIONAL SILHOUETTE MORPHING
   ============================================================================= */

.silhouette-container {
  width: 400px;
  height: 300px;
  margin: var(--space-xl) auto;
}

#professional-silhouette {
  width: 100%;
  height: 100%;
}

#professional-silhouette path {
  fill: var(--color-text-black);
  opacity: 0.9;
}

/* =============================================================================
   TECHNICAL DIAGRAM STYLES
   ============================================================================= */

.technical-diagram {
  max-width: 800px;
  margin: var(--space-xl) auto;
  padding: var(--space-lg);
}

.technical-diagram svg {
  width: 100%;
  height: auto;
}

.technical-diagram path {
  stroke: var(--color-primary-teal);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.grid-line {
  stroke: var(--color-accent-navy);
  stroke-width: 0.5;
  opacity: 0.3;
}

/* =============================================================================
   NEWSLETTER CTA STYLES
   ============================================================================= */

.newsletter-section {
  background: linear-gradient(135deg, 
    var(--color-primary-teal) 0%, 
    var(--color-primary-coral) 100%);
  padding: var(--space-xxl) var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-cta-button {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: white;
  color: var(--color-primary-teal);
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform-origin: center;
}

.newsletter-cta-button:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

/* Success burst container */
.success-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
}

/* =============================================================================
   FRAMEWORK SHOWCASE
   ============================================================================= */

.framework-section {
  padding: var(--space-xxl) 0;
}

/* PAST Framework */
.past-framework {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 800px;
  margin: var(--space-xl) auto;
}

.past-step {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  position: relative;
  opacity: 0;
}

.past-purpose { background: var(--color-primary-teal); }
.past-audience { background: var(--color-primary-coral); }
.past-style { background: var(--color-accent-mustard); }
.past-task { background: var(--color-accent-navy); }

.past-connector {
  position: absolute;
  top: 50%;
  width: 100px;
  height: 2px;
  background: var(--color-accent-navy);
  transform-origin: left center;
  opacity: 0.3;
}

/* SHAPE Framework */
.shape-framework {
  max-width: 600px;
  margin: var(--space-xl) auto;
}

.shape-step {
  background: white;
  border-left: 4px solid var(--color-primary-teal);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(30px);
}

.shape-step h4 {
  color: var(--color-primary-teal);
  margin-bottom: var(--space-sm);
}

/* =============================================================================
   LOADING STATES
   ============================================================================= */

.retro-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
}

.loading-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary-teal);
}

/* =============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================= */

@media (max-width: 768px) {
  .hero-silhouette {
    width: 250px;
    height: 300px;
    opacity: 0.5;
  }
  
  .hero-geometric-shape {
    transform: scale(0.7);
  }
  
  .field-guides-grid {
    grid-template-columns: 1fr;
    padding: 0 var(--space-md);
  }
  
  .past-framework {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .past-connector {
    display: none;
  }
  
  .technical-diagram {
    padding: var(--space-md);
  }
}

/* =============================================================================
   ACCESSIBILITY & REDUCED MOTION
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-on-scroll {
    opacity: 1;
  }
  
  .hero-silhouette,
  .hero-geometric-shape,
  .hero-title,
  .hero-subtitle,
  .hero-cta {
    opacity: 1;
    transform: none;
  }
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */

@media print {
  .section-divider,
  .starburst-container,
  .hero-geometric-shape {
    display: none;
  }
  
  .field-guide-card {
    box-shadow: none;
    border: 1px solid var(--color-accent-navy);
  }
}
