/* Component Specifications - Domain Hosting Checker */

/* ==========================================
   BLOCK 1: GLOBAL NAVIGATION HEADER (FIXED 64PX HEIGHT & ZERO EXCESS PADDING)
   ========================================== */
.global-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
  padding: 0;
}

.global-header .app-container {
  width: 100%;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  height: 64px;
}

.brand-logo-container {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  flex-shrink: 0;
}

.brand-text-col {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.6rem;
  font-weight: 700;
  color: #7C3AED;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Center Pill Search Trigger */
.navbar-search-bar {
  flex: 1;
  max-width: 380px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.85rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--pill-radius);
  font-size: 0.85rem;
  color: #64748B;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .navbar-search-bar {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(55, 65, 81, 0.85);
  color: #94A3B8;
}

.navbar-search-bar:hover {
  border-color: var(--primary-start);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-left-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kbd-badge {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 5px;
  padding: 0.12rem 0.45rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: #64748B;
}

[data-theme="dark"] .kbd-badge {
  background: #1E293B;
  border-color: #334155;
  color: #94A3B8;
}

/* Right Nav Actions */
.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 38px;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  height: 36px;
  transition: background var(--transition-fast);
}

.nav-dropdown-btn:hover {
  background: rgba(79, 70, 229, 0.06);
  color: var(--primary-start);
}

.v-divider {
  width: 1px;
  height: 20px;
  background: var(--glass-border);
}

.btn-signup {
  height: 38px;
  padding: 0 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--pill-radius);
  background: var(--primary-gradient);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.95);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  font-size: 0.9rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
  transition: all var(--transition-fast);
}

[data-theme="dark"] .theme-toggle-btn {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(55, 65, 81, 0.8);
}

.theme-toggle-btn:hover {
  border-color: var(--primary-start);
  color: var(--primary-start);
}


.theme-toggle-btn:hover {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary-start);
}

/* ==========================================
   BLOCK 2: TOOL HERO HEADER
   ========================================== */
.hero-section {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 1.5rem;
  padding: 0.25rem 0;
}


.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--primary-start);
}

.hero-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.hero-icon-glow {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-shadow);
  color: #FFF;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.trust-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* ==========================================
   BLOCK 3: INTERACTIVE TOOL WORKSPACE CANVAS
   ========================================== */
.workspace-card {
  padding: 2.25rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.input-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.input-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sample-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sample-chip {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--pill-radius);
  background: rgba(79, 70, 229, 0.06);
  color: var(--primary-start);
  border: 1px solid rgba(79, 70, 229, 0.12);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sample-chip:hover {
  background: var(--primary-start);
  color: #FFF;
}

.domain-input-box {
  position: relative;
  margin-bottom: 1.5rem;
}

.domain-input-box input {
  width: 100%;
  padding: 1.1rem 1.2rem 1.1rem 3.2rem;
  font-size: 1.05rem;
  font-family: var(--font-mono);
  border-radius: 12px;
  border: 2px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.domain-input-box input:focus {
  border-color: var(--primary-start);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.input-leading-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.input-clear-btn {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  display: none;
}

.action-trigger-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cta-check-btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ==========================================
   RESULT TABLE (MATCHING ATTACHED IMAGE)
   ========================================== */
.result-container {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.result-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  width: 100%;
  color: var(--text-main);
  position: relative;
}

/* Image-matching dark result table styling */
.hosting-result-table-wrapper {
  background: #1C1F26;
  border: 1px solid #333842;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.5rem;
}

.hosting-result-table {
  width: 100%;
  border-collapse: collapse;
  color: #E2E8F0;
  font-size: 0.95rem;
}

.hosting-result-table tr {
  border-bottom: 1px solid #2D323E;
  transition: background 0.15s ease;
}

.hosting-result-table tr:last-child {
  border-bottom: none;
}

.hosting-result-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.hosting-result-table td.field-key {
  width: 25%;
  padding: 1.1rem 1.5rem;
  font-weight: 700;
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid #2D323E;
}

.hosting-result-table td.field-value {
  width: 75%;
  padding: 1.1rem 1.5rem;
  color: #CBD5E1;
  font-family: var(--font-sans);
  word-break: break-all;
}

.hosting-result-table td.field-value.highlight-val {
  font-family: var(--font-mono);
  color: #38BDF8;
  font-weight: 600;
}

.table-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Real-Time Stream Ticker (Supabase Powered) */
.realtime-live-feed {
  margin-top: 2rem;
  padding: 1.25rem;
  background: rgba(79, 70, 229, 0.04);
  border: 1px dashed rgba(79, 70, 229, 0.25);
  border-radius: 12px;
}

.realtime-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-start);
}

.realtime-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 160px;
  overflow-y: auto;
}

.feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 0.4rem 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================
   BLOCK 4: EDUCATIONAL CONTENT & SEO SECTION
   ========================================== */
.seo-section {
  margin-bottom: 4rem;
}

.section-title {
  text-align: center;
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.step-card {
  padding: 1.75rem;
  text-align: center;
  position: relative;
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #FFF;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: var(--glow-shadow);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.feature-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary-start);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;

}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.4);
  color: var(--text-muted);
  font-size: 0.95rem;
}

[data-theme="dark"] .faq-answer {
  background: rgba(0, 0, 0, 0.3);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1rem 1.5rem 1.25rem;
}

/* ==========================================
   BLOCK 5: RELATED TOOLS CAROUSEL & FOOTER
   ========================================== */
.related-tools-carousel {
  margin-bottom: 4rem;
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.tool-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tool-card:hover {
  transform: translateY(-4px);
}

.footer {
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-col h4 {
  color: var(--text-main);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--primary-start);
}

/* Toast Notifications & Modal */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.85rem 1.25rem;
  background: var(--text-main);
  color: var(--text-inverse);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal Search Overlay */
.search-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}

.search-modal-card {
  width: 90%;
  max-width: 600px;
  padding: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title { font-size: 1.85rem; }
  .hosting-result-table td.field-key, .hosting-result-table td.field-value {
    display: block;
    width: 100%;
    border-right: none;
  }
  .hosting-result-table td.field-key {
    border-bottom: 1px solid #2D323E;
    padding-bottom: 0.5rem;
  }
  .hosting-result-table td.field-value {
    padding-top: 0.5rem;
  }
}
