/* Hero and Landing Page Components - Wired.com Magazine Style */

/* Hero section */
.hero {
  background: var(--bg-primary);
  padding: var(--spacing-xl) 0;
  border-bottom: 3px solid var(--primary-color);
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.hero-main {
  padding-right: var(--spacing-lg);
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.5;
}

.hero-sidebar {
  background: var(--bg-secondary);
  padding: var(--spacing-lg);
  border-left: 3px solid var(--primary-color);
}

.hero-sidebar h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.hero-quick-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.quick-stat {
  text-align: center;
  padding: var(--spacing-sm);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.quick-stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.quick-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-btn {
  background: var(--bg-primary);
  border: 4px solid var(--bg-accent);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  text-align: center;
  width: 400px;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-heavy);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  transition: height 0.3s ease;
}

.hero-btn:hover::before {
  height: 100%;
  background: var(--primary-color);
}

.hero-btn:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-heavy);
  text-decoration: none;
  color: var(--text-inverse);
  border-color: var(--primary-color);
}

.hero-btn h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-btn p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.hero-btn .btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.hero-btn:hover .btn {
  background: var(--primary-dark);
  transform: translateX(3px);
}

/* Features highlight section */
.overview-highlights {
  padding: 4rem 0;
  background: white;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.highlight {
  text-align: center;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  background: var(--bg-secondary);
  transition: all 0.3s ease;
}

.highlight:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-light);
}

.highlight-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.highlight h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.highlight p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.section-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Tool and program cards */
.tool-cards,
.program-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--grid-gap);
  margin-top: 2rem;
}

.tool-card,
.program-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tool-card:hover,
.program-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
}

.tool-logo {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  margin: 0 auto 1rem;
  border-radius: var(--border-radius);
}

.tool-card h3,
.program-card h3 {
  margin: 0.5rem 0 1rem;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.tool-tagline,
.program-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex-grow: 1;
  line-height: 1.5;
}

.details-link {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  margin-top: auto;
}

.details-link:hover {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Favorite button */
.fav-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fav-btn:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
  transform: scale(1.1);
}

.fav-btn.added {
  color: #ffc107;
}

/* Tool and program detail pages */
.tool-detail,
.program-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.tool-header,
.program-header {
  text-align: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.tool-logo-lg {
  max-width: 120px;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
}

.tool-header h1,
.program-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.tool-summary,
.program-summary {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-btn {
  background: var(--secondary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-size: 1.125rem;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-light);
}

.cta-btn:hover {
  background: var(--secondary-dark);
  text-decoration: none;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.tool-detail section,
.program-detail section {
  margin-bottom: 2.5rem;
}

.tool-detail h2,
.program-detail h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.pros,
.cons {
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
}

.pros {
  background: rgba(40, 167, 69, 0.1);
  border-left: 4px solid var(--secondary-color);
}

.cons {
  background: rgba(220, 53, 69, 0.1);
  border-left: 4px solid #dc3545;
}

.pros h3,
.cons h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.pros h3 {
  color: var(--secondary-color);
}

.cons h3 {
  color: #dc3545;
}

.pros ul,
.cons ul {
  list-style: none;
  padding: 0;
}

.pros li,
.cons li {
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.cons li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #dc3545;
  font-weight: bold;
}

.related-tools,
.related-programs {
  list-style: none;
  padding: 0;
}

.related-tools li,
.related-programs li {
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--primary-color);
}

/* Stats and metrics */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-btn {
    width: 100%;
    max-width: 400px;
  }
  
  .tool-cards,
  .program-cards {
    grid-template-columns: 1fr;
  }
  
  .pros-cons {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .highlights-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 0;
  }
  
  .hero-btn {
    padding: 1.5rem;
  }
  
  .tool-detail,
  .program-detail {
    padding: 1rem 0.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}