/* ============================================================
   TheHostStop.com - Modern Stylesheet
   ============================================================ */

:root {
  --primary: #1565c0;
  --primary-dark: #003c8f;
  --primary-light: #5e92f3;
  --accent: #ff6f00;
  --accent-hover: #e65100;
  --text: #212121;
  --text-light: #757575;
  --text-muted: #9e9e9e;
  --bg: #fafafa;
  --bg-card: #ffffff;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --sidebar-bg: #f5f5f5;
  --header-bg: #0d47a1;
  --nav-bg: #1565c0;
  --table-alt: #f8f9ff;
  --star-color: #ffa000;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.16);
  --radius: 6px;
  --radius-lg: 10px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  color: var(--text);
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 60%, #1976d2 100%);
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  flex-direction: column;
}

.site-logo a {
  color: #fff;
  text-decoration: none;
}

.logo-name {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-name span {
  color: #ffd54f;
}

.logo-tagline {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 2px;
  font-style: italic;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,111,0,0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   NAVIGATION BAR
   ============================================================ */

.main-nav {
  background: var(--nav-bg);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
}

.nav-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0;
}

.nav-inner ul li a {
  display: block;
  padding: 0.75rem 1.1rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background 0.2s ease, color 0.2s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}

.nav-inner ul li a:hover,
.nav-inner ul li a.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
  border-bottom-color: #ffd54f;
}

/* ============================================================
   PAGE WRAPPER & LAYOUT
   ============================================================ */

.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  gap: 1.5rem;
  flex: 1;
  width: 100%;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
  width: 210px;
  min-width: 210px;
  flex-shrink: 0;
}

.sidebar-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.sidebar-title {
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.55rem 0.85rem;
}

.sidebar-links {
  list-style: none;
  padding: 0.4rem 0;
  margin: 0;
}

.sidebar-links li {
  border-bottom: 1px solid var(--border-light);
}

.sidebar-links li:last-child {
  border-bottom: none;
}

.sidebar-links li a {
  display: block;
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text);
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1.4;
}

.sidebar-links li a:hover {
  background: var(--table-alt);
  color: var(--primary);
  text-decoration: none;
  padding-left: 1.1rem;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.main-content {
  flex: 1;
  min-width: 0;
}

/* ============================================================
   PAGE HERO / BANNER
   ============================================================ */

.page-hero {
  background: linear-gradient(135deg, #e3f2fd 0%, #e8eaf6 100%);
  border: 1px solid #bbdefb;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.page-hero h1 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */

.content-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.content-section h2 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.content-section h3 {
  font-size: 1rem;
  color: var(--primary);
  margin: 1rem 0 0.5rem;
}

.content-section p {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.content-section ul,
.content-section ol {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.content-section li {
  margin-bottom: 0.3rem;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1rem 0;
}

.comparison-table thead tr {
  background: var(--primary);
  color: #fff;
}

.comparison-table thead th {
  padding: 0.65rem 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s ease;
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--table-alt);
}

.comparison-table tbody tr:hover {
  background: #e8eaf6;
}

.comparison-table tbody td {
  padding: 0.65rem 0.75rem;
  vertical-align: middle;
}

.comparison-table tbody td a {
  font-weight: 600;
  color: var(--primary);
}

.price-tag {
  font-weight: 700;
  color: #2e7d32;
  white-space: nowrap;
}

.free-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

.review-link {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.2s;
}

.review-link:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   PROVIDER CARDS
   ============================================================ */

.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.provider-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.provider-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.provider-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.provider-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.provider-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #2e7d32;
  white-space: nowrap;
}

.provider-price small {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light);
}

.provider-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.spec-value {
  color: var(--text);
  font-weight: 600;
}

.provider-desc {
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.5;
}

.provider-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.btn-visit {
  background: var(--primary);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
  text-align: center;
  flex: 1;
}

.btn-visit:hover {
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
}

.btn-review {
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
  text-align: center;
}

.btn-review:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   TOP 10 LIST
   ============================================================ */

.top-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.top-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
  background: var(--bg-card);
}

.top-list-item:last-child {
  border-bottom: none;
}

.top-list-item:hover {
  background: var(--table-alt);
}

.rank-badge {
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.rank-badge.gold { background: #f9a825; }
.rank-badge.silver { background: #78909c; }
.rank-badge.bronze { background: #a1887f; }

.top-item-info {
  flex: 1;
}

.top-item-name {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.top-item-price {
  font-size: 0.82rem;
  color: var(--text-light);
}

.stars {
  color: var(--star-color);
  font-size: 0.9rem;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ============================================================
   RATING STARS (review pages)
   ============================================================ */

.rating-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fffde7;
  border: 1px solid #ffe082;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.rating-stars {
  font-size: 1.5rem;
  color: var(--star-color);
  letter-spacing: 2px;
}

.rating-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

/* ============================================================
   PLAN TABLE (company pages)
   ============================================================ */

.plan-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.875rem;
}

.plan-table th {
  background: var(--primary-dark);
  color: #fff;
  padding: 0.6rem 0.85rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
}

.plan-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.plan-table tr:nth-child(even) td {
  background: var(--table-alt);
}

.plan-table tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   ARTICLE CONTENT
   ============================================================ */

.article-content {
  line-height: 1.75;
}

.article-content h2 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin: 1.5rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--border);
}

.article-content h3 {
  font-size: 1rem;
  color: var(--primary);
  margin: 1.25rem 0 0.4rem;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1rem;
}

.article-content li {
  margin-bottom: 0.4rem;
}

/* ============================================================
   LINK LISTS (resource/info pages)
   ============================================================ */

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.link-list li:last-child {
  border-bottom: none;
}

.link-list li::before {
  content: "→";
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.link-list li a {
  font-weight: 600;
  color: var(--primary);
}

.link-list-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  display: block;
  margin-top: 0.1rem;
}

/* ============================================================
   GLOSSARY
   ============================================================ */

.glossary dt {
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.glossary dd {
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ============================================================
   PROMO / AD BOXES
   ============================================================ */

.promo-box {
  background: linear-gradient(135deg, #e3f2fd 0%, #e8eaf6 100%);
  border: 1px solid #90caf9;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.promo-box p {
  margin: 0;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

/* ============================================================
   SITE MAP
   ============================================================ */

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.sitemap-section h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--border);
}

.sitemap-section ul {
  list-style: none;
  padding: 0;
}

.sitemap-section ul li {
  padding: 0.2rem 0;
  font-size: 0.85rem;
}

.sitemap-section ul li a {
  color: var(--text);
}

.sitemap-section ul li a:hover {
  color: var(--primary);
}

/* ============================================================
   COMPANY PAGE HERO
   ============================================================ */

.company-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #e3f2fd, #e8eaf6);
  border: 1px solid #bbdefb;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.company-hero-info h1 {
  font-size: 1.5rem;
  color: var(--primary-dark);
}

.company-hero-info .tagline {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.company-hero-price {
  text-align: center;
}

.big-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2e7d32;
  line-height: 1;
}

.big-price small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
}

/* ============================================================
   FEATURES LIST
   ============================================================ */

.features-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.features-list li {
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.features-list li::before {
  content: "✓";
  color: #2e7d32;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   ALERT / INFO BOXES
   ============================================================ */

.alert-info {
  background: #e3f2fd;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-size: 0.875rem;
}

.alert-success {
  background: #e8f5e9;
  border-left: 4px solid #2e7d32;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-size: 0.875rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: #263238;
  color: #b0bec5;
  padding: 1.5rem 0 1rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.footer-links a {
  color: #90caf9;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-divider {
  color: #546e7a;
}

.footer-copyright {
  font-size: 0.8rem;
  color: #78909c;
  padding-top: 0.75rem;
  border-top: 1px solid #37474f;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */

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

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

.breadcrumb-sep {
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .page-wrapper {
    flex-direction: column;
    padding: 1rem;
  }

  .sidebar {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
  }

  .provider-grid {
    grid-template-columns: 1fr;
  }

  .features-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .logo-name {
    font-size: 1.35rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-inner ul {
    flex-wrap: wrap;
  }

  .nav-inner ul li a {
    padding: 0.55rem 0.65rem;
    font-size: 0.8rem;
  }

  .company-hero {
    flex-direction: column;
    text-align: center;
  }

  .promo-box {
    flex-direction: column;
  }

  .comparison-table {
    font-size: 0.8rem;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 0.5rem;
  }

  .sitemap-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  .sitemap-grid {
    grid-template-columns: 1fr;
  }
}
