/* Savings Genie Theme - Zebra-inspired Insurance Marketplace */

.theme-savings-genie {
  --primary-color: #2563EB;
  --secondary-color: #60A5FA;
  --accent-color: #3B82F6;
  --gradient-primary: linear-gradient(135deg, #2563EB, #60A5FA);
  --gradient-accent: linear-gradient(135deg, #3B82F6, #2563EB);
}

/* Hero Section - Character Driven */
.genie-hero {
  background: var(--gradient-primary);
  color: white;
  padding: 4rem 0 0;
  position: relative;
  overflow: hidden;
}

.genie-hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.genie-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.genie-hero-content p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.genie-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(10px);
}

.genie-trust-badge .stars {
  color: #FCD34D;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.genie-trust-badge .rating {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Category Cards */
.genie-categories {
  margin-top: 2rem;
}

.genie-categories-primary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.genie-categories-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.genie-category-card {
  background: white;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.genie-category-card.secondary {
  padding: 1.25rem 1rem;
  min-height: 80px;
}

.genie-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
  border-color: var(--primary-color);
}

.genie-category-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  display: block;
}

.genie-category-card.secondary .genie-category-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.genie-category-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1a1a1a;
}

.genie-category-card.secondary .genie-category-name {
  font-size: 0.95rem;
}

/* Character Image */
.genie-character {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 600px;
}

.genie-character img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Trust/Company Logos Section */
.genie-trust-section {
  background: #f9fafb;
  padding: 3rem 0;
  text-align: center;
}

.genie-trust-title {
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

.genie-company-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0.6;
  filter: grayscale(100%);
}

.genie-company-logos img {
  height: 32px;
  object-fit: contain;
}

/* Features Section */
.genie-features {
  padding: 5rem 0;
  background: white;
}

.genie-features-header {
  text-align: center;
  margin-bottom: 3rem;
}

.genie-features-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.genie-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.genie-feature-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.genie-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.genie-feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.genie-feature-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.genie-feature-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Guide Grid - Clean Cards */
.genie-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.genie-guide-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.genie-guide-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.genie-guide-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gradient-accent);
}

.genie-guide-content {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.genie-guide-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.genie-guide-category-badge {
  background: #EFF6FF;
  color: var(--primary-color);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.genie-guide-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.genie-guide-card p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.genie-guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.genie-guide-meta {
  font-size: 0.85rem;
  color: #9ca3af;
}

.genie-read-more {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.genie-read-more:hover {
  gap: 0.6rem;
}

/* Header Genie Logo - Public Site */
.theme-savings-genie .header-genie-logo {
  max-height: 72px;
  height: auto;
  width: auto;
  margin-left: auto;
  margin-right: 2rem;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.theme-savings-genie .header-genie-logo:hover {
  transform: scale(1.05);
}

/* Header Genie Logo - LP Templates with .header-content */
.theme-savings-genie .header-content .header-genie-logo {
  max-height: 80px;
  height: auto;
  margin-left: auto;
  margin-right: 0;
}

/* Header Genie Logo - LP Templates with .lp-header-branding fallback */
.theme-savings-genie .lp-header-branding {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  margin-bottom: 20px;
}

.theme-savings-genie .lp-header-branding .header-genie-logo {
  max-height: 100px;
  height: auto;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .genie-hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .genie-character {
    height: 400px;
  }
  
  .genie-features-grid,
  .genie-guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .theme-savings-genie .header-genie-logo {
    height: 50px;
    margin-right: 1.5rem;
  }
}

@media (max-width: 768px) {
  .genie-hero-content h1 {
    font-size: 2.5rem;
  }
  
  .genie-categories-primary {
    grid-template-columns: 1fr;
  }
  
  .genie-features-grid,
  .genie-guides-grid {
    grid-template-columns: 1fr;
  }
  
  .genie-character {
    height: 300px;
  }
  
  .theme-savings-genie .header-genie-logo,
  .theme-savings-genie .lp-header-branding {
    display: none;
  }
}
