/* ============================================================
   Linux Dedicated Server - Modern Stylesheet
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #f0f4ff;
  --surface:    #ffffff;
  --surface2:   #f8faff;
  --primary:    #1d4ed8;
  --primary-dk: #1e3a8a;
  --accent:     #f97316;
  --accent-dk:  #ea580c;
  --success:    #16a34a;
  --text:       #1e293b;
  --text-muted: #64748b;
  --border:     #e2e8f0;
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
  --radius:     10px;
  --radius-lg:  16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Container --- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: var(--primary-dk);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.navbar-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  letter-spacing: -.3px;
}
.navbar-brand span { color: var(--accent); }
.navbar-brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-links li a {
  color: #cbd5e1;
  font-size: .82rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-links li a:hover,
.nav-links li a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

/* ============================================================
   HERO / PAGE HEADER
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 100%);
  color: #fff;
  padding: 60px 0 48px;
  text-align: center;
}
.hero h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.hero p { font-size: 1.1rem; color: #bfdbfe; max-width: 680px; margin: 0 auto; }

.page-header {
  background: linear-gradient(135deg, var(--primary-dk) 0%, #2563eb 100%);
  color: #fff;
  padding: 40px 0 32px;
}
.page-header h1 { font-size: 1.9rem; font-weight: 700; margin-bottom: 6px; }
.page-header p { color: #bfdbfe; font-size: .95rem; }

.breadcrumb { font-size: .82rem; color: #93c5fd; margin-bottom: 10px; }
.breadcrumb a { color: #93c5fd; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #bfdbfe; }

/* ============================================================
   MAIN CONTENT LAYOUT
   ============================================================ */
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding: 40px 0 64px;
}
.content-wrap.full-width {
  grid-template-columns: 1fr;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
}
.card + .card { margin-top: 24px; }
.card h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 14px; color: var(--primary-dk); }
.card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison-section { padding: 48px 0; }
.comparison-section h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary-dk);
  margin-bottom: 6px;
}
.comparison-section .subtitle {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
table.comparison {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  min-width: 640px;
}
table.comparison thead { background: var(--primary-dk); color: #fff; }
table.comparison thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
table.comparison tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
table.comparison tbody tr:hover { background: var(--surface2); }
table.comparison tbody tr:last-child { border-bottom: none; }
table.comparison td {
  padding: 16px;
  vertical-align: middle;
  font-size: .9rem;
}
table.comparison td.provider-logo img {
  width: 100px;
  height: 36px;
  object-fit: contain;
}
table.comparison td ul {
  list-style: none;
  padding: 0;
}
table.comparison td ul li {
  padding: 2px 0;
  font-size: .85rem;
  color: var(--text-muted);
}
table.comparison td ul li::before {
  content: "✓ ";
  color: var(--success);
  font-weight: 700;
}
td.price { font-weight: 700; color: var(--primary-dk); font-size: .95rem; }
td.price .price-note { font-size: .75rem; color: var(--text-muted); font-weight: 400; }

/* --- Stars --- */
.stars { display: inline-flex; gap: 2px; }
.stars .star { color: #fbbf24; font-size: 1.05rem; }
.stars .star.empty { color: #d1d5db; }
.stars .star.half { position: relative; }
.stars .star.half::after {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #fbbf24;
}

/* --- CTA buttons --- */
.btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dk);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249,115,22,.3);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

.btn-group { display: flex; flex-direction: column; gap: 8px; }

/* ============================================================
   PROVIDER PAGE
   ============================================================ */
.provider-hero {
  background: linear-gradient(135deg, var(--primary-dk) 0%, #2563eb 100%);
  color: #fff;
  padding: 48px 0;
}
.provider-hero-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.provider-hero-logo {
  width: 180px;
  height: 70px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  flex-shrink: 0;
}
.provider-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.provider-hero .rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .88rem;
}

.provider-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.spec-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.spec-box .spec-icon { font-size: 1.6rem; margin-bottom: 8px; }
.spec-box .spec-label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.spec-box .spec-value { font-size: .9rem; font-weight: 600; color: var(--text); margin-top: 4px; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid { display: flex; flex-direction: column; gap: 24px; }
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.blog-card h2 { font-size: 1.2rem; margin-bottom: 6px; }
.blog-card h2 a { color: var(--primary-dk); }
.blog-card h2 a:hover { color: var(--accent); text-decoration: none; }
.blog-meta { font-size: .78rem; color: var(--text-muted); margin-bottom: 10px; }
.blog-meta a { color: var(--primary); }
.blog-excerpt { color: var(--text-muted); font-size: .88rem; line-height: 1.7; }
.read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
}
.read-more:hover { text-decoration: underline; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
}
.widget h3 {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.widget ul { list-style: none; }
.widget ul li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--primary); text-decoration: none; }

.provider-list-widget li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-submit:hover { background: var(--primary-dk); transform: translateY(-1px); }

/* ============================================================
   SITEMAP
   ============================================================ */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.sitemap-section h3 { font-size: 1rem; font-weight: 700; color: var(--primary-dk); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.sitemap-section ul { list-style: none; }
.sitemap-section ul li { padding: 4px 0; font-size: .87rem; }
.sitemap-section ul li a { color: var(--text-muted); }
.sitemap-section ul li a:hover { color: var(--primary); }

/* ============================================================
   TAG / CATEGORY PAGES
   ============================================================ */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag-pill {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: .82rem;
  color: var(--text-muted);
  transition: all .15s;
}
.tag-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }
.tag-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--primary-dk);
  color: #94a3b8;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-brand p { font-size: .85rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #cbd5e1; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 4px 0; }
.footer-col ul li a { font-size: .85rem; color: #94a3b8; }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .8rem;
}
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   NOTICE / ALERT
   ============================================================ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: .88rem;
}
.alert-info { background: #dbeafe; color: #1e40af; border-left: 4px solid var(--primary); }
.alert-success { background: #dcfce7; color: #15803d; border-left: 4px solid var(--success); }

/* ============================================================
   PROSE (article content)
   ============================================================ */
.prose p { margin-bottom: 16px; color: var(--text); line-height: 1.75; }
.prose h2 { font-size: 1.4rem; font-weight: 700; color: var(--primary-dk); margin: 28px 0 12px; }
.prose h3 { font-size: 1.1rem; font-weight: 600; margin: 20px 0 10px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; }
.prose li { margin-bottom: 6px; line-height: 1.65; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose strong { color: var(--text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .provider-hero-inner { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 1.7rem; }
  .page-header h1 { font-size: 1.4rem; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .navbar-inner { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .comparison-section h2 { font-size: 1.3rem; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .06em;
}
.badge-accent { background: var(--accent); }
.badge-success { background: var(--success); }
