/* AI Hub home enhancements. Loaded from /assets/css/home-enhance.css */

/* Hero */
.ai-hero {
  background: linear-gradient(135deg, #0A0E27 0%, #0b2a52 55%, #004E89 100%);
  color: #fff;
  padding: 56px 20px 48px;
  text-align: center;
}
.ai-hero-inner { max-width: 860px; margin: 0 auto; }
.ai-hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 14px;
  color: #fff;
}
.ai-hero h1 span { color: #FF6B35; }
.ai-hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: #d5dcf0;
  margin: 0 auto 26px;
  max-width: 680px;
}
.ai-hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.ai-hero-search svg { flex: none; color: #6C757D; }
.ai-hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 1rem;
  padding: 12px 4px;
  background: transparent;
  color: #0A0E27;
}
.ai-hero-search button {
  flex: none;
  border: 0;
  background: #FF6B35;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 10px;
  cursor: pointer;
}
.ai-hero-search button:hover { background: #e85a26; }
.ai-hero-note { min-height: 22px; margin: 12px 0 0; font-size: 0.92rem; color: #ffd699; }

.ai-hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.ai-chip {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.ai-chip:hover { background: rgba(255, 255, 255, 0.18); }
.ai-chip.active { background: #FF6B35; border-color: #FF6B35; }

.ai-hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; margin-top: 28px; color: #d5dcf0; font-size: 0.95rem; }
.ai-hero-stats strong { display: block; font-size: 1.6rem; color: #fff; line-height: 1.1; }

.ai-hero-links { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ai-hero-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.ai-hero-links a.primary { background: #FF6B35; border-color: #FF6B35; }
.ai-hero-links a:hover { opacity: 0.9; }

/* Search filtering of cards */
.tool-card.ai-hide { display: none !important; }

/* Static content below the directory (home only) */
#home-seo, #site-footer { display: none; }
html.is-home #home-seo { display: block; }
html.is-home #site-footer { display: block; }

#home-seo { background: #fff; border-top: 1px solid #E0E0E8; padding: 56px 20px; color: #0A0E27; }
#home-seo .wrap { max-width: 980px; margin: 0 auto; }
#home-seo h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 14px; font-weight: 700; }
#home-seo p { line-height: 1.7; color: #3b4256; margin: 0 0 14px; }
#home-seo .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 26px 0 8px; padding: 0; list-style: none; counter-reset: s; }
#home-seo .steps li { background: #F7F7FF; border: 1px solid #E0E0E8; border-radius: 14px; padding: 20px; counter-increment: s; line-height: 1.55; }
#home-seo .steps li::before {
  content: counter(s);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: #FF6B35; color: #fff; font-weight: 700; margin-bottom: 10px;
}
#home-seo .steps b { display: block; margin-bottom: 4px; }
#home-seo .faq { margin-top: 40px; }
#home-seo details { border: 1px solid #E0E0E8; border-radius: 12px; padding: 0 18px; margin-bottom: 10px; background: #fff; }
#home-seo summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
#home-seo summary::-webkit-details-marker { display: none; }
#home-seo summary::after { content: "+"; color: #FF6B35; font-size: 1.3rem; line-height: 1; }
#home-seo details[open] summary::after { content: "\2212"; }
#home-seo details p { margin: 0 0 16px; }

#site-footer { background: #0A0E27; color: #b9c2dc; padding: 34px 20px; font-size: 0.92rem; }
#site-footer .wrap { max-width: 1400px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; }
#site-footer .brand { font-family: Georgia, serif; font-size: 1.4rem; font-weight: 700; color: #fff; }
#site-footer .brand span { color: #FF6B35; }
#site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
#site-footer a { color: #d5dcf0; text-decoration: none; }
#site-footer a:hover { color: #FF6B35; }

@media (max-width: 600px) {
  .ai-hero { padding: 40px 16px 36px; }
  .ai-hero-search { flex-wrap: wrap; padding: 8px; }
  .ai-hero-search svg { display: none; }
  .ai-hero-search input { flex: 1 1 100%; padding: 10px 8px; }
  .ai-hero-search button { width: 100%; }
  #home-seo { padding: 40px 16px; }
}
