/* ==========================================================================
   VPSHosting.blog — Global Hosting Providers Directory (2026 Edition)
   Dedicated Stylesheet: /assets/css/providers.css
   ========================================================================== */

/* ---------- Hero Section ---------- */
.dir-hero {
  position: relative;
  background:
    radial-gradient(1000px 450px at 10% -10%, rgba(16, 185, 129, 0.22), transparent 70%),
    radial-gradient(800px 400px at 90% 15%, rgba(59, 130, 246, 0.18), transparent 70%),
    linear-gradient(180deg, #090e1a 0%, #0f172a 100%);
  color: #ffffff;
  padding: 18px 0 48px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dir-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.4), transparent);
}

/* Breadcrumb in Hero */
.dir-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 18px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.dir-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
}
.dir-breadcrumb a:hover {
  color: #10b981;
}
.dir-breadcrumb .separator {
  color: #64748b;
  font-size: 0.7rem;
}
.dir-breadcrumb .current {
  color: #ffffff;
  font-weight: 600;
}

/* Hero Badge Pill */
.dir-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.dir-badge-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: dirPulse 2s infinite;
}
@keyframes dirPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Hero Main Title & Lead */
.dir-hero h1 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #ffffff;
}
.dir-hero h1 .text-highlight {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dir-hero p.dir-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 680px;
  margin-bottom: 28px;
}

/* Hero Metrics Strip */
.dir-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 820px;
}
.dir-stat-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 14px 18px;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.dir-stat-box:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.35);
}
.dir-stat-box strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 850;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.dir-stat-box strong .plus {
  color: #10b981;
  font-size: 1.2rem;
}
.dir-stat-box span {
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
  display: block;
}

/* Hero Right Spotlight Card */
.dir-spotlight-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}
.dir-spotlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dir-spotlight-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dir-spotlight-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.2s ease;
}
.dir-spotlight-item:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  color: #ffffff;
  transform: translateX(3px);
}
.dir-spotlight-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.dir-spotlight-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.dir-spotlight-item h4 {
  font-size: 0.95rem;
  font-weight: 750;
  margin: 0 0 2px;
}
.dir-spotlight-item p {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
}
.dir-spotlight-price {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}
.dir-spotlight-price strong {
  display: block;
  font-size: 0.95rem;
  color: #34d399;
}
.dir-spotlight-price small {
  font-size: 0.65rem;
  color: #94a3b8;
}

/* ---------- Control Center / Filter Bar ---------- */
.providers-control-center {
  margin-top: -38px;
  position: relative;
  z-index: 15;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 20px 50px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.02);
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

[data-theme="dark"] .providers-control-center {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.5);
}

/* Category Filter Bar */
.category-pill-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
[data-theme="dark"] .category-pill-strip {
  border-bottom-color: #1e293b;
}

.cat-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] .cat-pill-btn {
  background: #1e293b;
  color: #cbd5e1;
  border-color: #334155;
}
.cat-pill-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}
[data-theme="dark"] .cat-pill-btn:hover {
  background: #334155;
  color: #ffffff;
}
.cat-pill-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}
[data-theme="dark"] .cat-pill-btn.active {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.cat-pill-btn .pill-count {
  font-size: 0.68rem;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.14);
  color: inherit;
}
.cat-pill-btn.active .pill-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Search Box */
.dir-search-wrap {
  position: relative;
  width: 100%;
}
.dir-search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
}
.dir-search-input {
  width: 100%;
  height: 44px;
  padding: 10px 40px 10px 42px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
[data-theme="dark"] .dir-search-input {
  background: #1e293b;
  border-color: #334155;
  color: #ffffff;
}
.dir-search-input:focus {
  outline: none;
  border-color: #10b981;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
[data-theme="dark"] .dir-search-input:focus {
  background: #0f172a;
}
.dir-search-wrap .search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  display: none;
}
.dir-search-wrap .search-clear-btn:hover {
  color: #0f172a;
}

/* Custom Select Dropdowns */
.dir-filter-select {
  height: 44px;
  padding: 9px 34px 9px 12px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background-color: #f8fafc;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
[data-theme="dark"] .dir-filter-select {
  background-color: #1e293b;
  border-color: #334155;
  color: #ffffff;
}
.dir-filter-select:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Toggles & Feature Checkboxes */
.filter-chip-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.76rem;
  font-weight: 650;
  color: #475569;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}
[data-theme="dark"] .filter-chip-checkbox {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}
.filter-chip-checkbox:hover {
  border-color: #10b981;
  color: #10b981;
}
.filter-chip-checkbox input[type="checkbox"] {
  accent-color: #10b981;
  cursor: pointer;
}
.filter-chip-checkbox.active {
  background: rgba(16, 185, 129, 0.08);
  border-color: #10b981;
  color: #059669;
}
[data-theme="dark"] .filter-chip-checkbox.active {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}

/* Status Bar & View Switcher */
.dir-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}
[data-theme="dark"] .dir-status-bar {
  border-top-color: #1e293b;
}

.dir-count-pill {
  font-size: 0.86rem;
  color: #64748b;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dir-count-pill strong {
  color: #0f172a;
  font-weight: 750;
}
[data-theme="dark"] .dir-count-pill strong {
  color: #ffffff;
}

.dir-view-toggles {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
[data-theme="dark"] .dir-view-toggles {
  background: #1e293b;
  border-color: #334155;
}
.btn-view-toggle {
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 650;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-view-toggle:hover {
  color: #0f172a;
}
[data-theme="dark"] .btn-view-toggle:hover {
  color: #ffffff;
}
.btn-view-toggle.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .btn-view-toggle.active {
  background: #0f172a;
  color: #34d399;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.btn-dir-reset {
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 650;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-dir-reset:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Active Filter Badges */
.active-filters-deck {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.active-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
}
.active-filter-badge button {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
}

/* ---------- Table Mode Customization ---------- */
.providers-table-wrap {
  background: var(--card, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px -15px rgba(15, 23, 42, 0.08);
}
.providers-table-wrap table {
  margin: 0;
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}
.providers-table-wrap thead th {
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 14px;
  border: none;
  white-space: nowrap;
}
.providers-table-wrap tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  vertical-align: middle;
}
.providers-table-wrap tbody tr {
  transition: background-color 0.15s ease;
}
.providers-table-wrap tbody tr:hover {
  background-color: rgba(16, 185, 129, 0.035);
}

/* Sticky Actions on Desktop Table */
@media (min-width: 992px) {
  .providers-table-wrap th.col-actions-sticky,
  .providers-table-wrap td.col-actions-sticky {
    position: sticky;
    right: 0;
    z-index: 5;
  }
  .providers-table-wrap th.col-actions-sticky {
    background: #0f172a !important;
    box-shadow: -6px 0 14px rgba(0, 0, 0, 0.2);
  }
  .providers-table-wrap td.col-actions-sticky {
    background: #ffffff;
    box-shadow: -6px 0 14px rgba(15, 23, 42, 0.06);
  }
  .providers-table-wrap tbody tr:hover td.col-actions-sticky {
    background: #f8fafc;
  }
  [data-theme="dark"] .providers-table-wrap td.col-actions-sticky {
    background: #1e293b;
    box-shadow: -6px 0 14px rgba(0, 0, 0, 0.4);
  }
}

/* Provider Table Row Item */
.table-provider-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.table-provider-logo {
  width: 38px;
  height: 38px;
  min-width: 38px;
  max-width: 38px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.table-provider-logo img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block;
}
.table-provider-name {
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--ink, #0f172a);
  text-decoration: none;
}
.table-provider-name:hover {
  color: #10b981;
}

/* ---------- Empty State ---------- */
.dir-empty-state {
  text-align: center;
  padding: 60px 24px;
  background: var(--card, #ffffff);
  border: 1.5px dashed var(--border, #e2e8f0);
  border-radius: 20px;
  margin: 30px 0;
}
.dir-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  font-size: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.dir-empty-state h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.dir-empty-state p {
  color: #64748b;
  max-width: 480px;
  margin: 0 auto 20px;
  font-size: 0.92rem;
}

/* ---------- Provider Onboarding Callout ---------- */
.dir-onboarding-callout {
  background:
    radial-gradient(600px 250px at 80% 20%, rgba(16, 185, 129, 0.18), transparent 70%),
    linear-gradient(135deg, #090e1a 0%, #111c33 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 24px;
  padding: 42px 40px;
  color: #ffffff;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.4);
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}
.dir-onboarding-callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #34d399, #10b981);
}
.dir-onboarding-callout h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 850;
  margin-bottom: 10px;
}
.dir-onboarding-callout p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 0;
}
.btn-onboarding-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 24px -6px rgba(16, 185, 129, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn-onboarding-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(16, 185, 129, 0.6);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* ---------- Directory FAQ Section ---------- */
.dir-faq-section {
  padding: 56px 0 32px;
}
.dir-faq-card {
  background: var(--card, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.dir-faq-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
}
.dir-faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 750;
  color: var(--ink, #0f172a);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.dir-faq-question i.chevron {
  transition: transform 0.25s ease;
  font-size: 0.85rem;
  color: #94a3b8;
}
.dir-faq-card.open .dir-faq-question i.chevron {
  transform: rotate(180deg);
  color: #10b981;
}
.dir-faq-answer {
  padding: 0 24px 20px;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.65;
  display: none;
}
.dir-faq-card.open .dir-faq-answer {
  display: block;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 991px) {
  .dir-hero {
    padding: 24px 0 45px;
  }
  .dir-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .providers-control-center {
    margin-top: -30px;
    padding: 16px;
  }
  .dir-onboarding-callout {
    padding: 30px 24px;
  }
}

@media (max-width: 576px) {
  .dir-hero h1 {
    font-size: 1.85rem;
  }
  .dir-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .dir-stat-box {
    padding: 10px 14px;
  }
  .dir-stat-box strong {
    font-size: 1.35rem;
  }
  .providers-control-center {
    margin-top: -24px;
    border-radius: 16px;
  }
  .dir-status-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .dir-view-toggles {
    width: 100%;
    justify-content: space-around;
  }
}
