/* 
 * Smart Home Wizards - Premium Design System
 * Version: 2.0.0 - Visual Transformation
 * "From Boring to Brilliant"
 */

/* ==========================================================================
   ROOT VARIABLES - The Wizard's Color Palette
   ========================================================================== */

:root {
  /* Primary Brand Colors */
  --shw-wizard-purple: #5E35B1;
  --shw-wizard-purple-dark: #4527A0;
  --shw-wizard-purple-light: #7E57C2;
  
  /* Tech Accent Colors */
  --shw-electric-cyan: #00BCD4;
  --shw-electric-cyan-dark: #00ACC1;
  --shw-electric-cyan-light: #4DD0E1;
  
  /* Energy & Warmth */
  --shw-amber-glow: #FFA726;
  --shw-amber-dark: #FB8C00;
  --shw-amber-light: #FFCC80;
  
  /* Smart Device Colors */
  --shw-smart-green: #4CAF50;
  --shw-alert-red: #EF5350;
  --shw-info-blue: #42A5F5;
  
  /* Neutrals */
  --shw-midnight: #1A1A2E;
  --shw-charcoal: #2D2D44;
  --shw-slate: #4A5568;
  --shw-gray: #718096;
  --shw-silver: #A0AEC0;
  --shw-cloud: #E2E8F0;
  --shw-snow: #F7FAFC;
  --shw-white: #FFFFFF;
  
  /* Gradients */
  --shw-gradient-hero: linear-gradient(135deg, #1A1A2E 0%, #2D2D44 50%, #5E35B1 100%);
  --shw-gradient-wizard: linear-gradient(135deg, #5E35B1 0%, #7E57C2 50%, #00BCD4 100%);
  --shw-gradient-energy: linear-gradient(135deg, #FFA726 0%, #FF7043 100%);
  --shw-gradient-tech: linear-gradient(135deg, #00BCD4 0%, #00ACC1 100%);
  --shw-gradient-card: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(26,26,46,0.9) 100%);
  
  /* Shadows */
  --shw-shadow-sm: 0 2px 4px rgba(26, 26, 46, 0.1);
  --shw-shadow-md: 0 4px 12px rgba(26, 26, 46, 0.15);
  --shw-shadow-lg: 0 8px 30px rgba(26, 26, 46, 0.2);
  --shw-shadow-xl: 0 20px 60px rgba(26, 26, 46, 0.3);
  --shw-shadow-glow: 0 0 40px rgba(94, 53, 177, 0.4);
  --shw-shadow-cyan-glow: 0 0 30px rgba(0, 188, 212, 0.3);
  
  /* Typography */
  --shw-font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shw-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --shw-space-xs: 0.5rem;
  --shw-space-sm: 1rem;
  --shw-space-md: 1.5rem;
  --shw-space-lg: 2rem;
  --shw-space-xl: 3rem;
  --shw-space-2xl: 5rem;
  
  /* Border Radius */
  --shw-radius-sm: 8px;
  --shw-radius-md: 12px;
  --shw-radius-lg: 20px;
  --shw-radius-xl: 30px;
  --shw-radius-full: 9999px;
  
  /* Transitions */
  --shw-transition-fast: 0.15s ease;
  --shw-transition-normal: 0.3s ease;
  --shw-transition-slow: 0.5s ease;
  --shw-transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==========================================================================
   ANIMATIONS - Bringing the Magic to Life
   ========================================================================== */

@keyframes shwFadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shwFadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shwFadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shwPulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(94, 53, 177, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(94, 53, 177, 0.6);
  }
}

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

@keyframes shwShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes shwRotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes shwScaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shwGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Scroll-triggered animation classes */
.shw-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.shw-animate.shw-visible {
  opacity: 1;
  transform: translateY(0);
}

.shw-animate-delay-1 { transition-delay: 0.1s; }
.shw-animate-delay-2 { transition-delay: 0.2s; }
.shw-animate-delay-3 { transition-delay: 0.3s; }
.shw-animate-delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   HERO SECTION - The Grand Entrance
   ========================================================================== */

.shw-hero {
  position: relative;
  background: var(--shw-gradient-hero);
  color: var(--shw-white);
  padding: 0;
  text-align: center;
  margin-bottom: 0;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated background particles */
.shw-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(94, 53, 177, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 188, 212, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 167, 38, 0.1) 0%, transparent 30%);
  animation: shwGradientFlow 15s ease infinite;
  background-size: 200% 200%;
}

/* Floating device icons background */
.shw-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.shw-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 30px;
}

/* Trust Badge */
.shw-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: var(--shw-radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 30px;
  animation: shwFadeInUp 0.8s ease forwards;
}

.shw-hero-badge-icon {
  width: 20px;
  height: 20px;
  background: var(--shw-smart-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.shw-hero h1 {
  font-family: var(--shw-font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  animation: shwFadeInUp 0.8s ease 0.1s forwards;
  opacity: 0;
}

.shw-hero h1 .shw-text-gradient {
  background: linear-gradient(135deg, var(--shw-electric-cyan) 0%, var(--shw-amber-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shw-hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 40px;
  opacity: 0;
  animation: shwFadeInUp 0.8s ease 0.2s forwards;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Search Bar */
.shw-hero-search {
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: shwFadeInUp 0.8s ease 0.3s forwards;
}

.shw-hero-search-wrapper {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--shw-radius-full);
  padding: 8px;
  transition: var(--shw-transition-normal);
}

.shw-hero-search-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--shw-electric-cyan);
  box-shadow: var(--shw-shadow-cyan-glow);
}

.shw-hero-search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 15px 25px;
  font-size: 1.1rem;
  color: var(--shw-white);
  outline: none;
}

.shw-hero-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.shw-hero-search-btn {
  background: var(--shw-gradient-wizard);
  border: none;
  padding: 15px 30px;
  border-radius: var(--shw-radius-full);
  color: var(--shw-white);
  font-weight: 600;
  cursor: pointer;
  transition: var(--shw-transition-normal);
  display: flex;
  align-items: center;
  gap: 8px;
}

.shw-hero-search-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shw-shadow-glow);
}

/* Hero CTA Buttons */
.shw-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
  opacity: 0;
  animation: shwFadeInUp 0.8s ease 0.4s forwards;
}

.shw-btn {
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--shw-radius-full);
  text-decoration: none;
  transition: all var(--shw-transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.shw-btn::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: 0.5s;
}

.shw-btn:hover::before {
  left: 100%;
}

.shw-btn-primary {
  background: var(--shw-white);
  color: var(--shw-wizard-purple);
  box-shadow: var(--shw-shadow-lg);
}

.shw-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shw-shadow-xl);
  color: var(--shw-wizard-purple-dark);
}

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

.shw-btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--shw-white);
  transform: translateY(-3px);
}

/* Hero Stats Bar */
.shw-hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  animation: shwFadeInUp 0.8s ease 0.5s forwards;
}

.shw-hero-stat {
  text-align: center;
}

.shw-hero-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--shw-electric-cyan);
}

.shw-hero-stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-top: 5px;
}

/* ==========================================================================
   TRENDING BAR - What's Hot Now
   ========================================================================== */

.shw-trending {
  background: var(--shw-midnight);
  padding: 15px 20px;
  overflow: hidden;
}

.shw-trending-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.shw-trending-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--shw-amber-glow);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.shw-trending-label::after {
  content: '';
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.2);
  margin-left: 15px;
}

.shw-trending-items {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.shw-trending-items::-webkit-scrollbar {
  display: none;
}

.shw-trending-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--shw-silver);
  font-size: 0.9rem;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--shw-transition-fast);
}

.shw-trending-item:hover {
  color: var(--shw-white);
}

.shw-trending-item-icon {
  font-size: 1.1rem;
}

/* ==========================================================================
   FEATURED SECTION - Essential Guides Showcase
   ========================================================================== */

.shw-featured {
  padding: 100px 20px;
  background: var(--shw-snow);
  position: relative;
}

.shw-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, var(--shw-midnight) 0%, var(--shw-snow) 100%);
  pointer-events: none;
}

.shw-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.shw-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.shw-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--shw-gradient-wizard);
  color: var(--shw-white);
  padding: 8px 20px;
  border-radius: var(--shw-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.shw-section-title {
  font-family: var(--shw-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--shw-midnight);
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}

.shw-section-subtitle {
  font-size: 1.15rem;
  color: var(--shw-slate);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Featured Grid */
.shw-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.shw-featured-card {
  position: relative;
  background: var(--shw-white);
  border-radius: var(--shw-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--shw-transition-normal);
  box-shadow: var(--shw-shadow-md);
}

.shw-featured-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shw-shadow-xl);
}

.shw-featured-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.shw-featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--shw-transition-slow);
}

.shw-featured-card:hover .shw-featured-card-image img {
  transform: scale(1.1);
}

.shw-featured-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--shw-gradient-card);
}

/* Placeholder gradient backgrounds when no image */
.shw-featured-card-image.shw-gradient-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.shw-featured-card-image.shw-gradient-2 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.shw-featured-card-image.shw-gradient-3 {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.shw-featured-card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  opacity: 0.9;
  z-index: 1;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

.shw-featured-card-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--shw-gradient-energy);
  color: var(--shw-white);
  padding: 6px 14px;
  border-radius: var(--shw-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.shw-featured-card-content {
  padding: 30px;
}

.shw-featured-card h3 {
  font-family: var(--shw-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--shw-midnight);
  margin-bottom: 12px;
  line-height: 1.3;
}

.shw-featured-card p {
  font-size: 0.95rem;
  color: var(--shw-slate);
  line-height: 1.7;
  margin-bottom: 20px;
}

.shw-featured-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--shw-cloud);
}

.shw-featured-card-stats {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--shw-gray);
}

.shw-featured-card-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.shw-featured-card-arrow {
  width: 40px;
  height: 40px;
  background: var(--shw-snow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shw-wizard-purple);
  transition: var(--shw-transition-normal);
}

.shw-featured-card:hover .shw-featured-card-arrow {
  background: var(--shw-wizard-purple);
  color: var(--shw-white);
  transform: translateX(5px);
}

/* ==========================================================================
   CATEGORY SECTION - Premium Topic Grid
   ========================================================================== */

.shw-categories {
  padding: 100px 20px;
  background: var(--shw-white);
}

.shw-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.shw-category-card {
  position: relative;
  border-radius: var(--shw-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--shw-white);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all var(--shw-transition-normal);
}

.shw-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  transition: var(--shw-transition-normal);
}

.shw-category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shw-shadow-xl);
}

.shw-category-card:hover::before {
  background: rgba(0,0,0,0.1);
}

/* Category Card Color Variants */
.shw-category-card.shw-cat-connectivity {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
}
.shw-category-card.shw-cat-climate {
  background: linear-gradient(135deg, #00695c 0%, #00897b 100%);
}
.shw-category-card.shw-cat-security {
  background: linear-gradient(135deg, #5d4037 0%, #795548 100%);
}
.shw-category-card.shw-cat-entertainment {
  background: linear-gradient(135deg, #6a1b9a 0%, #8e24aa 100%);
}
.shw-category-card.shw-cat-voice {
  background: linear-gradient(135deg, #283593 0%, #3949ab 100%);
}
.shw-category-card.shw-cat-lighting {
  background: linear-gradient(135deg, #e65100 0%, #f57c00 100%);
}
.shw-category-card.shw-cat-cleaning {
  background: linear-gradient(135deg, #0277bd 0%, #039be5 100%);
}
.shw-category-card.shw-cat-outdoor {
  background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
}

.shw-category-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.15;
  background-size: cover;
  background-position: center;
  transition: var(--shw-transition-slow);
}

.shw-category-card:hover .shw-category-card-bg {
  opacity: 0.25;
  transform: scale(1.05);
}

.shw-category-card-content {
  position: relative;
  z-index: 2;
  padding: 25px;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.shw-category-icon {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--shw-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.shw-category-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.shw-category-card h3 {
  font-family: var(--shw-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.shw-category-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: var(--shw-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.shw-category-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shw-category-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--shw-transition-fast);
}

.shw-category-card:hover .shw-category-link {
  gap: 12px;
}

/* ==========================================================================
   WIZARD'S PICKS SECTION - Editor's Choice
   ========================================================================== */

.shw-wizard-picks {
  padding: 100px 20px;
  background: linear-gradient(180deg, var(--shw-snow) 0%, var(--shw-white) 100%);
}

.shw-wizard-picks-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 50px;
}

.shw-wizard-picks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.shw-pick-card {
  display: flex;
  background: var(--shw-white);
  border-radius: var(--shw-radius-lg);
  overflow: hidden;
  box-shadow: var(--shw-shadow-md);
  text-decoration: none;
  color: inherit;
  transition: all var(--shw-transition-normal);
  border: 1px solid var(--shw-cloud);
}

.shw-pick-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shw-shadow-xl);
  border-color: var(--shw-wizard-purple-light);
}

.shw-pick-card-image {
  flex: 0 0 200px;
  position: relative;
  overflow: hidden;
}

.shw-pick-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shw-pick-card-image .shw-pick-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--shw-amber-glow);
  color: var(--shw-midnight);
  padding: 5px 12px;
  border-radius: var(--shw-radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

.shw-pick-card-content {
  flex: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.shw-pick-card-category {
  font-size: 0.8rem;
  color: var(--shw-wizard-purple);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.shw-pick-card h3 {
  font-family: var(--shw-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--shw-midnight);
  margin-bottom: 10px;
  line-height: 1.3;
}

.shw-pick-card p {
  font-size: 0.9rem;
  color: var(--shw-slate);
  line-height: 1.6;
  flex-grow: 1;
}

.shw-pick-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--shw-cloud);
}

.shw-pick-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--shw-amber-glow);
}

.shw-pick-rating span {
  color: var(--shw-slate);
  font-size: 0.85rem;
}

/* ==========================================================================
   TRUST SECTION - Social Proof & Authority
   ========================================================================== */

.shw-trust {
  padding: 100px 20px;
  background: var(--shw-midnight);
  position: relative;
  overflow: hidden;
}

.shw-trust::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 20%, rgba(94, 53, 177, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(0, 188, 212, 0.2) 0%, transparent 40%);
  animation: shwRotateSlow 60s linear infinite;
}

.shw-trust-content {
  position: relative;
  z-index: 1;
}

.shw-trust .shw-section-title {
  color: var(--shw-white);
}

.shw-trust .shw-section-subtitle {
  color: rgba(255,255,255,0.7);
}

.shw-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.shw-trust-item {
  text-align: center;
  padding: 40px 30px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--shw-radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--shw-transition-normal);
}

.shw-trust-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--shw-wizard-purple);
  transform: translateY(-5px);
}

.shw-trust-icon {
  width: 60px;
  height: 60px;
  background: var(--shw-gradient-wizard);
  border-radius: var(--shw-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.shw-trust-number {
  font-family: var(--shw-font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--shw-white);
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--shw-electric-cyan) 0%, var(--shw-amber-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shw-trust-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* ==========================================================================
   NEWSLETTER SECTION - Email Capture
   ========================================================================== */

.shw-newsletter {
  padding: 100px 20px;
  background: linear-gradient(135deg, var(--shw-wizard-purple) 0%, var(--shw-wizard-purple-dark) 100%);
  position: relative;
  overflow: hidden;
}

.shw-newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.shw-newsletter-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: var(--shw-white);
}

.shw-newsletter-icon {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--shw-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 2.5rem;
  animation: shwFloat 3s ease-in-out infinite;
}

.shw-newsletter h2 {
  font-family: var(--shw-font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--shw-white);
}

.shw-newsletter p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0.9;
}

.shw-newsletter-form {
  display: flex;
  gap: 15px;
  max-width: 550px;
  margin: 0 auto;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 10px;
  border-radius: var(--shw-radius-full);
  border: 1px solid rgba(255,255,255,0.2);
}

.shw-newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 18px 25px;
  font-size: 1rem;
  color: var(--shw-white);
  outline: none;
}

.shw-newsletter-input::placeholder {
  color: rgba(255,255,255,0.6);
}

.shw-newsletter-button {
  background: var(--shw-white);
  color: var(--shw-wizard-purple);
  border: none;
  padding: 18px 35px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--shw-radius-full);
  cursor: pointer;
  transition: all var(--shw-transition-normal);
  white-space: nowrap;
}

.shw-newsletter-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.shw-newsletter-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.shw-newsletter-note span {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

@media (max-width: 1200px) {
  .shw-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .shw-featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .shw-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .shw-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .shw-wizard-picks-grid {
    grid-template-columns: 1fr;
  }
  
  .shw-hero-stats {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .shw-hero {
    min-height: 90vh;
  }
  
  .shw-hero-content {
    padding: 60px 20px;
  }
  
  .shw-hero h1 {
    font-size: 2.2rem;
  }
  
  .shw-hero-subtitle {
    font-size: 1rem;
  }
  
  .shw-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .shw-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .shw-hero-stats {
    flex-direction: column;
    gap: 25px;
  }
  
  .shw-category-grid {
    grid-template-columns: 1fr;
  }
  
  .shw-category-card {
    min-height: 200px;
  }
  
  .shw-featured-grid {
    grid-template-columns: 1fr;
  }
  
  .shw-section-title {
    font-size: 1.8rem;
  }
  
  .shw-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .shw-trust-item {
    padding: 25px 20px;
  }
  
  .shw-trust-number {
    font-size: 2.2rem;
  }
  
  .shw-newsletter-form {
    flex-direction: column;
    border-radius: var(--shw-radius-lg);
    padding: 15px;
  }
  
  .shw-newsletter-input {
    text-align: center;
  }
  
  .shw-newsletter-button {
    width: 100%;
  }
  
  .shw-pick-card {
    flex-direction: column;
  }
  
  .shw-pick-card-image {
    flex: 0 0 180px;
  }
  
  .shw-trending {
    display: none;
  }
}

@media (max-width: 480px) {
  .shw-trust-grid {
    grid-template-columns: 1fr;
  }
  
  .shw-hero-badge {
    font-size: 0.8rem;
    padding: 8px 15px;
  }
  
  .shw-featured,
  .shw-categories,
  .shw-wizard-picks,
  .shw-trust,
  .shw-newsletter {
    padding: 60px 15px;
  }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.shw-text-gradient {
  background: var(--shw-gradient-wizard);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shw-glow {
  animation: shwPulseGlow 2s ease-in-out infinite;
}

.shw-float {
  animation: shwFloat 3s ease-in-out infinite;
}

/* ==========================================================================
   GLOBAL OVERRIDES FOR HOMEPAGE
   ========================================================================== */

.shw-custom-homepage .site-content {
  padding: 0 !important;
}

.shw-custom-homepage .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}

.shw-custom-homepage .entry-content {
  margin: 0 !important;
  padding: 0 !important;
}

.shw-custom-homepage article {
  margin: 0 !important;
}

/* Hide default page title on homepage */
.shw-custom-homepage .entry-header {
  display: none;
}

/* ==========================================================================
   TABLE OF CONTENTS FIX - Preserved from previous version
   ========================================================================== */

.ez-toc-container,
#ez-toc-container {
  position: relative !important;
  float: none !important;
  width: 100% !important;
  margin: 20px auto !important;
  max-width: 800px !important;
  z-index: 1 !important;
  background: var(--shw-snow);
  border-left: 4px solid var(--shw-wizard-purple);
  padding: 20px;
  border-radius: var(--shw-radius-sm);
}

.ez-toc-title {
  font-weight: 700;
  color: var(--shw-midnight);
  margin-bottom: 15px;
}
