/* ============================================================
   RealDomainSearch — Home Page v2
   ============================================================ */

/* Hero */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 60%, #143D6B 100%);
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
/* Decorative mesh / orbs */
.hero-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,194,168,.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,194,168,.15);
  border: 1px solid rgba(0,194,168,.3);
  color: var(--accent);
  font-size: .82rem; font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: 1.25rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-badge i { font-size: .75rem; }

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 2.5rem;
  max-width: 640px;
  margin-left: auto; margin-right: auto;
}

/* Search box */
.domain-search-container { max-width: 800px; margin: 0 auto; }
.domain-search-form {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  padding: 28px 32px;
}
.search-input-group {
  display: flex;
  gap: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search-input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,194,168,.15);
}
.domain-input {
  flex: 1;
  height: 54px;
  padding: 0 16px;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  outline: none;
  color: var(--text);
  background: transparent;
  border-radius: 0;
}
.domain-input::placeholder { color: var(--muted); }
.search-btn {
  height: 54px;
  min-width: 130px;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  border-radius: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  cursor: pointer;
  transition: all var(--t-fast);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.search-btn:hover { background: linear-gradient(135deg, var(--accent-light), var(--accent)); }

/* TLD checkboxes */
.popular-tlds {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 8px;
  margin-top: 1.25rem;
}
.tld-item {
  display: flex; align-items: center;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 4px 12px;
  transition: all var(--t-fast);
  cursor: pointer;
}
.tld-item:hover { border-color: var(--accent); background: rgba(0,194,168,.05); }
.tld-item input[type="checkbox"] { margin-right: 5px; accent-color: var(--accent); }
.tld-item label { font-size: .82rem; font-weight: 600; margin: 0; cursor: pointer; color: var(--text); }
.tld-price { font-size: .72rem; color: var(--accent); margin-left: 3px; font-weight: 700; }

/* Domain result cards */
.domain-results-section { padding-top: 48px; }
.results-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 1.25rem; }
.domain-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; margin-bottom: 2rem;
}
.domain-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex; flex-direction: column;
  transition: all var(--t-mid);
}
.domain-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.domain-card.available   { border-left: 4px solid var(--success); }
.domain-card.unavailable { border-left: 4px solid var(--danger); }
.domain-name  { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin: 0; }
.status-badge.available   { background: rgba(16,185,129,.1); color: #065F46; padding: 3px 10px; border-radius: var(--r-full); font-size: .78rem; font-weight: 700; }
.status-badge.unavailable { background: rgba(239,68,68,.1);  color: #991B1B; padding: 3px 10px; border-radius: var(--r-full); font-size: .78rem; font-weight: 700; }
.price-amount { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.price-period { font-size: .8rem; color: var(--muted); }
.domain-actions { margin-top: auto; }
.loading-container { padding: 40px 0; text-align: center; }

/* Feature boxes */
.feature-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 24px;
  height: 100%;
  transition: all var(--t-mid);
  position: relative;
  overflow: hidden;
}
.feature-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid);
}
.feature-box:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-box:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(0,194,168,.12) 0%, rgba(0,194,168,.06) 100%);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--accent);
  margin-bottom: 1.25rem;
}
.feature-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem; color: var(--primary); }
.feature-description { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.feature-link { font-weight: 700; color: var(--accent); font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; }
.feature-link:hover { color: var(--accent-dark); gap: 8px; }

/* How it works steps */
.step-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  margin-bottom: 24px; height: 100%;
  position: relative;
  transition: all var(--t-mid);
}
.step-box:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.step-number {
  position: absolute; top: -18px; left: 28px;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  font-size: 1rem; font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,194,168,.35);
}
.step-title { font-size: 1.05rem; font-weight: 700; margin-top: .5rem; margin-bottom: .75rem; }
.step-description { color: var(--muted); font-size: .9rem; margin: 0; }

/* TLD category cards */
.tld-category {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 24px; height: 100%;
  transition: box-shadow var(--t-mid);
}
.tld-category:hover { box-shadow: var(--shadow-md); }
.category-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: 10px; border-bottom: 1px solid var(--border); color: var(--primary); }
.tld-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.tld-list .tld-item { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--lighter); background: none; border-radius: 0; }
.tld-list .tld-item:last-child { border-bottom: none; }
.tld-name { font-weight: 600; font-size: .9rem; }
.category-link { font-weight: 700; color: var(--accent); font-size: .85rem; }

/* Registrar table */
.registrar-table { background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.registrar-table th { background: var(--lighter); font-weight: 700; padding: 14px 16px; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.registrar-table td { padding: 14px 16px; vertical-align: middle; }
.registrar-logo { height: 28px; width: auto; margin-right: 10px; }
.registrar-name { display: flex; align-items: center; font-weight: 600; }

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 24px; height: 100%;
}
.testimonial-content { font-style: italic; color: var(--text); margin-bottom: 1.25rem; line-height: 1.7; }
.testimonial-content::before { content: '"'; font-size: 2.5rem; line-height: 0; vertical-align: -0.5rem; color: var(--accent); margin-right: 4px; font-family: Georgia, serif; }
.author-image { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; margin-right: 12px; border: 2px solid var(--accent); }
.author-name  { font-size: .95rem; font-weight: 700; margin-bottom: 2px; color: var(--primary); }
.author-title { font-size: .8rem; color: var(--muted); margin: 0; }

/* CTA section */
.cta-title       { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.cta-description { font-size: 1.1rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-container .card { border: 1px solid var(--border); margin-bottom: 10px; border-radius: var(--r-md); transition: box-shadow var(--t-fast); }
.faq-container .card:hover { box-shadow: var(--shadow-sm); }
.faq-container .card-header { background: var(--lighter); border: none; padding: 0; }
.faq-container .btn-link { color: var(--primary); font-weight: 600; padding: 16px 20px; width: 100%; text-align: left; text-decoration: none; display: flex; justify-content: space-between; align-items: center; }
.faq-container .btn-link:hover { color: var(--accent); text-decoration: none; }
.faq-container .card-body { padding: 18px 20px; border-top: 1px solid var(--border); color: var(--text); line-height: 1.7; }

/* Stats row (if present) */
.stat-item { text-align: center; }
.stat-value { font-size: 2.5rem; font-weight: 800; color: var(--accent); line-height: 1; display: block; }
.stat-label { font-size: .9rem; color: var(--muted); margin-top: 4px; }

/* Responsive */
@media (max-width: 991px) {
  .hero-title  { font-size: 2.2rem; }
  .hero-section{ padding: 60px 0 72px; }
  .domain-search-form { padding: 22px 20px; }
  .search-input-group { flex-direction: column; border-radius: var(--r-md); border: 2px solid var(--border); }
  .domain-input { border-radius: var(--r-md); border-bottom: 1px solid var(--border); }
  .search-btn   { border-radius: var(--r-md); width: 100%; }
}
@media (max-width: 767px) {
  .hero-section { padding: 48px 0 60px; }
  .hero-title   { font-size: 1.9rem; }
  .domain-cards { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .hero-title    { font-size: 1.6rem; }
  .hero-subtitle { font-size: 1rem; }
  .domain-search-form { padding: 18px 16px; }
}


/* Home-specific dark consistency overrides: loaded after global style.css */
.registrar-comparison .table-responsive,
.registrar-table,
.registrar-table thead th,
.registrar-table tbody td {
  background: var(--ids-panel) !important;
  color: var(--ids-text) !important;
  border-color: rgba(255,255,255,.10) !important;
}
.registrar-table { border: 1px solid var(--ids-border) !important; border-radius: 14px !important; overflow: hidden !important; }
.registrar-table thead th { color: var(--ids-muted) !important; background: #0b0b0b !important; }
.registrar-name, .registrar-price, .registrar-rating { color: var(--ids-text) !important; }
.testimonial-card {
  background: var(--ids-panel) !important;
  color: var(--ids-text) !important;
  border: 1px solid var(--ids-border) !important;
  box-shadow: none !important;
}
.testimonial-card p, .testimonial-content p, .author-title { color: var(--ids-muted) !important; }
.author-name { color: var(--ids-text) !important; }
.faq-container .card,
.faq-container .card-header,
.faq-container .card-body,
.faq-container .btn-link {
  background: var(--ids-panel) !important;
  color: var(--ids-text) !important;
  border-color: var(--ids-border) !important;
}
.faq-container .card { border: 1px solid var(--ids-border) !important; margin-bottom: 12px !important; border-radius: 14px !important; overflow: hidden; }
.faq-container .card-body { color: var(--ids-muted) !important; }
.cta-section, .cta-box { background: transparent !important; color: var(--ids-text) !important; }


/* Popular extensions home card spacing — prevent TLD text touching borders */
.tld-category .tld-list .tld-item,
.tld-category .tld-item {
  padding: 8px 12px !important;
  gap: 14px !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 1px solid var(--border) !important;
  border-bottom: 0 !important;
  min-height: 40px !important;
}
.tld-category .tld-list .tld-item:last-child,
.tld-category .tld-item:last-child {
  border-bottom: 1px solid var(--border) !important;
}
.tld-category .tld-name {
  min-width: 0 !important;
  padding-left: 0 !important;
  color: var(--primary) !important;
}
.tld-category .tld-price {
  flex: 0 0 auto !important;
  padding-right: 0 !important;
  color: var(--success) !important;
}
html[data-theme="dark"] .tld-category .tld-name,
html[data-theme="dark"] .tld-category .tld-list .tld-item .tld-name {
  color: #F7F7F8 !important;
}
html[data-theme="dark"] .tld-category .tld-list .tld-item,
html[data-theme="dark"] .tld-category .tld-item {
  background: var(--ids-panel-2) !important;
  border-top-color: rgba(255,255,255,.12) !important;
}
html[data-theme="dark"] .tld-category .tld-list .tld-item:last-child,
html[data-theme="dark"] .tld-category .tld-item:last-child {
  border-bottom-color: rgba(255,255,255,.12) !important;
}
