/* 
 * Smart Home Wizards - Phase 2 Enhancements
 * Version: 2.1.0
 * Additional sections: Latest Guides, Wizard's Picks, Quick Start Paths
 */

/* ==========================================================================
   QUICK START PATHS - User Journey Selection
   ========================================================================== */

.shw-quick-start {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--shw-midnight) 0%, var(--shw-charcoal) 100%);
  position: relative;
  overflow: hidden;
}

.shw-quick-start::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 50%, rgba(94, 53, 177, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 90% 50%, rgba(0, 188, 212, 0.15) 0%, transparent 50%);
}

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

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

.shw-paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.shw-path-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--shw-radius-lg);
  padding: 40px 30px;
  text-align: center;
  text-decoration: none;
  color: var(--shw-white);
  transition: all var(--shw-transition-normal);
  position: relative;
  overflow: hidden;
}

.shw-path-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--shw-gradient-wizard);
  transform: scaleX(0);
  transition: transform var(--shw-transition-normal);
}

.shw-path-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--shw-wizard-purple);
  transform: translateY(-8px);
  box-shadow: var(--shw-shadow-glow);
}

.shw-path-card:hover::before {
  transform: scaleX(1);
}

.shw-path-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: var(--shw-gradient-wizard);
  border-radius: var(--shw-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: var(--shw-transition-normal);
}

.shw-path-card:hover .shw-path-icon {
  transform: scale(1.1) rotate(5deg);
}

.shw-path-card h3 {
  font-family: var(--shw-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.shw-path-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 25px;
}

.shw-path-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  padding: 12px 24px;
  border-radius: var(--shw-radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--shw-transition-fast);
}

.shw-path-card:hover .shw-path-cta {
  background: var(--shw-white);
  color: var(--shw-wizard-purple);
}

/* Path card variants */
.shw-path-card.shw-path-beginner .shw-path-icon {
  background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
}

.shw-path-card.shw-path-upgrader .shw-path-icon {
  background: linear-gradient(135deg, #2196F3 0%, #03A9F4 100%);
}

.shw-path-card.shw-path-expert .shw-path-icon {
  background: linear-gradient(135deg, #9C27B0 0%, #E91E63 100%);
}

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

.shw-wizard-picks {
  padding: 100px 20px;
  background: var(--shw-snow);
}

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

.shw-picks-header .shw-section-header {
  text-align: left;
  margin-bottom: 0;
  flex: 1;
}

.shw-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--shw-wizard-purple);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border: 2px solid var(--shw-wizard-purple);
  border-radius: var(--shw-radius-full);
  transition: var(--shw-transition-normal);
}

.shw-view-all-link:hover {
  background: var(--shw-wizard-purple);
  color: var(--shw-white);
}

.shw-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-image {
  flex: 0 0 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gradient backgrounds for picks without images */
.shw-pick-image.shw-pick-gradient-1 {
  background: linear-gradient(135deg, #00695c 0%, #26a69a 100%);
}
.shw-pick-image.shw-pick-gradient-2 {
  background: linear-gradient(135deg, #5d4037 0%, #8d6e63 100%);
}
.shw-pick-image.shw-pick-gradient-3 {
  background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
}
.shw-pick-image.shw-pick-gradient-4 {
  background: linear-gradient(135deg, #6a1b9a 0%, #ab47bc 100%);
}

.shw-pick-image-icon {
  font-size: 4rem;
  opacity: 0.9;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

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

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

.shw-pick-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.25rem;
  font-weight: 700;
  color: var(--shw-midnight);
  margin-bottom: 12px;
  line-height: 1.35;
}

.shw-pick-card p {
  font-size: 0.95rem;
  color: var(--shw-slate);
  line-height: 1.7;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.shw-pick-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.shw-pick-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);
  font-size: 1.2rem;
  transition: var(--shw-transition-normal);
}

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

/* ==========================================================================
   LATEST GUIDES - Recent Content Showcase
   ========================================================================== */

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

.shw-latest-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.shw-latest-header .shw-section-header {
  text-align: left;
  margin-bottom: 0;
}

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

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

.shw-latest-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shw-shadow-lg);
  border-color: var(--shw-electric-cyan);
}

.shw-latest-image {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gradient backgrounds for latest cards */
.shw-latest-image.shw-latest-gradient-1 {
  background: linear-gradient(135deg, #00897b 0%, #4db6ac 100%);
}
.shw-latest-image.shw-latest-gradient-2 {
  background: linear-gradient(135deg, #ff7043 0%, #ffab91 100%);
}
.shw-latest-image.shw-latest-gradient-3 {
  background: linear-gradient(135deg, #5c6bc0 0%, #9fa8da 100%);
}
.shw-latest-image.shw-latest-gradient-4 {
  background: linear-gradient(135deg, #26a69a 0%, #80cbc4 100%);
}
.shw-latest-image.shw-latest-gradient-5 {
  background: linear-gradient(135deg, #ec407a 0%, #f48fb1 100%);
}
.shw-latest-image.shw-latest-gradient-6 {
  background: linear-gradient(135deg, #7e57c2 0%, #b39ddb 100%);
}

.shw-latest-image-icon {
  font-size: 3.5rem;
  opacity: 0.9;
  filter: drop-shadow(0 4px 15px rgba(0,0,0,0.2));
  color: white;
}

.shw-latest-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  color: var(--shw-white);
  padding: 6px 12px;
  border-radius: var(--shw-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.shw-latest-content {
  padding: 25px;
}

.shw-latest-category {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--shw-electric-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  background: rgba(0, 188, 212, 0.1);
  padding: 4px 10px;
  border-radius: var(--shw-radius-sm);
}

.shw-latest-card h3 {
  font-family: var(--shw-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--shw-midnight);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shw-latest-card p {
  font-size: 0.9rem;
  color: var(--shw-slate);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 15px;
}

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

.shw-latest-read-time {
  font-size: 0.8rem;
  color: var(--shw-gray);
  display: flex;
  align-items: center;
  gap: 5px;
}

.shw-latest-arrow {
  color: var(--shw-wizard-purple);
  font-size: 1.1rem;
  transition: var(--shw-transition-fast);
}

.shw-latest-card:hover .shw-latest-arrow {
  transform: translateX(5px);
}

/* ==========================================================================
   SOCIAL PROOF BAR - As Seen In / Trust Badges
   ========================================================================== */

.shw-social-proof {
  padding: 60px 20px;
  background: var(--shw-snow);
  border-top: 1px solid var(--shw-cloud);
  border-bottom: 1px solid var(--shw-cloud);
}

.shw-social-proof-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.shw-social-proof-title {
  font-size: 0.9rem;
  color: var(--shw-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
}

.shw-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.shw-trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 25px;
  background: var(--shw-white);
  border-radius: var(--shw-radius-md);
  box-shadow: var(--shw-shadow-sm);
  transition: var(--shw-transition-normal);
}

.shw-trust-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shw-shadow-md);
}

.shw-trust-badge-icon {
  width: 45px;
  height: 45px;
  background: var(--shw-gradient-wizard);
  border-radius: var(--shw-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.shw-trust-badge-text {
  text-align: left;
}

.shw-trust-badge-text strong {
  display: block;
  font-size: 1rem;
  color: var(--shw-midnight);
  font-weight: 700;
}

.shw-trust-badge-text span {
  font-size: 0.8rem;
  color: var(--shw-gray);
}

/* ==========================================================================
   COMPARISON PREVIEW - Quick Compare CTA
   ========================================================================== */

.shw-compare-cta {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--shw-electric-cyan) 0%, var(--shw-electric-cyan-dark) 100%);
  position: relative;
  overflow: hidden;
}

.shw-compare-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: rgba(255,255,255,0.1);
  transform: rotate(15deg);
}

.shw-compare-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.shw-compare-content {
  flex: 1;
  color: var(--shw-white);
}

.shw-compare-content h2 {
  font-family: var(--shw-font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 15px;
}

.shw-compare-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.7;
}

.shw-compare-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.shw-compare-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--shw-white);
  color: var(--shw-electric-cyan-dark);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--shw-radius-full);
  text-decoration: none;
  transition: var(--shw-transition-normal);
  box-shadow: var(--shw-shadow-lg);
}

.shw-compare-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shw-shadow-xl);
}

.shw-compare-btn.shw-compare-btn-outline {
  background: transparent;
  color: var(--shw-white);
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: none;
}

.shw-compare-btn.shw-compare-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--shw-white);
}

/* ==========================================================================
   RESPONSIVE ADDITIONS FOR PHASE 2
   ========================================================================== */

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

@media (max-width: 992px) {
  .shw-paths-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .shw-picks-grid {
    grid-template-columns: 1fr;
  }
  
  .shw-compare-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .shw-compare-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .shw-paths-grid {
    grid-template-columns: 1fr;
  }
  
  .shw-latest-grid {
    grid-template-columns: 1fr;
  }
  
  .shw-pick-card {
    flex-direction: column;
  }
  
  .shw-pick-image {
    flex: 0 0 200px;
    width: 100%;
  }
  
  .shw-picks-header,
  .shw-latest-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .shw-trust-badges {
    flex-direction: column;
    gap: 20px;
  }
  
  .shw-trust-badge {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .shw-path-card {
    padding: 30px 20px;
  }
  
  .shw-path-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
  
  .shw-quick-start,
  .shw-wizard-picks,
  .shw-latest,
  .shw-compare-cta {
    padding: 60px 15px;
  }
}
