/* =========================================================
   Polar Servers - polar.css
   ========================================================= */

:root {
  --polar-navy:      #0d2550;
  --polar-navy-mid:  #1a3a6e;
  --polar-blue:      #1b7fd4;
  --polar-blue-light:#e8f3fc;
  --polar-ice:       #f4f8fc;
  --polar-white:     #ffffff;
  --polar-border:    #dde8f5;
  --polar-text:      #1a2b45;
  --polar-muted:     #6b7f99;
}

/* ---- Base ---- */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--polar-text);
  background: var(--polar-white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* ---- SEO content section (below grid) ---- */
.seo-content-section {
  background: var(--polar-ice);
  border-top: 1px solid var(--polar-border);
  padding: 3rem 0;
  margin-top: 1rem;
}

.seo-content-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--polar-navy);
  margin-bottom: 1rem;
}

.seo-content-section h3 {
  color: var(--polar-navy);
  font-weight: 600;
}

.seo-content-section p {
  line-height: 1.7;
}

/* ---- Navbar ---- */
.polar-navbar {
  background: var(--polar-white);
  border-bottom: 2px solid var(--polar-blue);
  box-shadow: 0 2px 12px rgba(13, 37, 80, .07);
}

.polar-navbar .nav-link {
  color: var(--polar-navy);
  font-weight: 500;
  padding: .5rem 1rem;
  border-radius: 6px;
  transition: background .15s, color .15s;
}

.polar-navbar .nav-link:hover,
.polar-navbar .nav-link.active {
  color: var(--polar-blue);
  background: var(--polar-blue-light);
}

/* ---- Hero ---- */
.polar-hero {
  background: linear-gradient(135deg, var(--polar-navy) 0%, var(--polar-navy-mid) 60%, #1b5fa0 100%);
  color: var(--polar-white);
  padding: 4rem 0 3.5rem;
}

.polar-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.polar-hero .lead {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
}

.hero-search {
  max-width: 560px;
  margin: 0 auto;
}

.hero-search .form-control {
  border: none;
  border-radius: 8px 0 0 8px;
  padding: .75rem 1.25rem;
  font-size: 1rem;
  box-shadow: none;
}

.hero-search .btn {
  background: var(--polar-blue);
  border: none;
  border-radius: 0 8px 8px 0;
  padding: .75rem 1.5rem;
  color: #fff;
  font-weight: 600;
}

.hero-search .btn:hover {
  background: #1668b0;
  color: #fff;
}

/* ---- Filter bar ---- */
.filter-bar {
  background: var(--polar-ice);
  border-bottom: 1px solid var(--polar-border);
  padding: 1rem 0;
  position: sticky;
  top: 64px;
  z-index: 100;
}

.filter-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--polar-muted);
  margin-bottom: .35rem;
}

.filter-btn {
  font-size: .82rem;
  font-weight: 500;
  padding: .3rem .75rem;
  border-radius: 20px;
  border: 1.5px solid var(--polar-border);
  background: var(--polar-white);
  color: var(--polar-navy);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--polar-blue);
  color: var(--polar-blue);
}

.filter-btn.active {
  background: var(--polar-blue);
  border-color: var(--polar-blue);
  color: #fff;
}

.filter-select {
  font-size: .85rem;
  padding: .3rem .75rem;
  border: 1.5px solid var(--polar-border);
  border-radius: 6px;
  background: var(--polar-white);
  color: var(--polar-navy);
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--polar-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(27,127,212,.15);
}

/* ---- Results bar ---- */
.results-bar {
  padding: .85rem 0;
  font-size: .9rem;
  color: var(--polar-muted);
}

.results-bar strong {
  color: var(--polar-navy);
}

/* ---- Server cards ---- */
.server-card {
  border: 1.5px solid var(--polar-border);
  border-radius: 10px;
  transition: box-shadow .2s, border-color .2s, transform .15s;
  background: var(--polar-white);
  overflow: hidden;
  cursor: pointer;
}

.server-card:hover {
  box-shadow: 0 6px 24px rgba(13, 37, 80, .12);
  border-color: var(--polar-blue);
  transform: translateY(-2px);
}

.card-region-bar {
  padding: .5rem 1rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.region-us   { background: #dbeafe; color: #1e40af; }
.region-ca   { background: #fee2e2; color: #991b1b; }
.region-eu   { background: #fef9c3; color: #713f12; }
.region-other{ background: #f3f4f6; color: #374151; }

.card-body-inner {
  padding: 1rem 1.1rem;
}

.spec-row {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .3rem 0;
  font-size: .87rem;
  border-bottom: 1px solid var(--polar-border);
}

.spec-row:last-of-type {
  border-bottom: none;
}

.spec-icon {
  color: var(--polar-blue);
  font-size: 1rem;
  margin-top: .05rem;
  flex-shrink: 0;
}

.spec-label {
  color: var(--polar-muted);
  font-size: .75rem;
  display: block;
  line-height: 1.2;
}

.spec-value {
  font-weight: 500;
  color: var(--polar-text);
  line-height: 1.3;
}

.storage-badge {
  font-size: .68rem;
  font-weight: 700;
  padding: .15rem .4rem;
  border-radius: 3px;
  margin-left: .3rem;
  vertical-align: middle;
}

.badge-ssd { background: #d1fae5; color: #065f46; }
.badge-hdd { background: #fef3c7; color: #92400e; }

.card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.1rem;
  border-top: 1.5px solid var(--polar-border);
  background: var(--polar-ice);
}

.price-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--polar-navy);
  line-height: 1;
}

.price-period {
  font-size: .8rem;
  color: var(--polar-muted);
  font-weight: 400;
}

.price-was {
  font-size: .8rem;
  color: var(--polar-muted);
  text-decoration: line-through;
}

.btn-details {
  background: var(--polar-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .4rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  transition: background .15s;
}

.btn-details:hover {
  background: #1668b0;
  color: #fff;
}

/* ---- Modal ---- */
.modal-header {
  background: var(--polar-navy);
  color: #fff;
  border-bottom: none;
}

.modal-header .btn-close {
  filter: invert(1);
}

.modal-region-badge {
  font-size: .8rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 20px;
  background: rgba(255,255,255,.15);
  color: #fff;
}

.modal-spec-table td:first-child {
  color: var(--polar-muted);
  font-size: .85rem;
  white-space: nowrap;
  padding-right: 1.25rem;
  vertical-align: top;
  font-weight: 500;
}

.modal-spec-table td:last-child {
  font-weight: 500;
  color: var(--polar-text);
}

.modal-price-block {
  background: var(--polar-ice);
  border: 1.5px solid var(--polar-border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}

.modal-price-big {
  font-size: 2rem;
  font-weight: 700;
  color: var(--polar-navy);
  line-height: 1;
}

.modal-price-sub {
  font-size: .85rem;
  color: var(--polar-muted);
}

.btn-order {
  background: var(--polar-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  width: 100%;
  transition: background .15s;
  text-decoration: none;
  display: block;
  text-align: center;
}

.btn-order:hover {
  background: #1668b0;
  color: #fff;
}

/* ---- No results ---- */
#no-results {
  display: none;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--polar-muted);
}

#no-results i {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  opacity: .4;
}

/* ---- Footer ---- */
.polar-footer {
  background: var(--polar-navy);
  color: #fff;
  margin-top: auto;
}

.polar-footer h6 {
  color: rgba(255,255,255,.9);
}

.polar-footer .text-muted {
  color: rgba(255,255,255,.5) !important;
}

.footer-link {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .15s;
}

.footer-link:hover {
  color: #fff;
}

/* ---- Page hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--polar-navy) 0%, var(--polar-navy-mid) 100%);
  color: #fff;
  padding: 3rem 0;
}

.page-hero h1 {
  font-weight: 700;
}

.page-hero p {
  color: rgba(255,255,255,.75);
}

/* ---- Contact form ---- */
.contact-card {
  border: 1.5px solid var(--polar-border);
  border-radius: 12px;
  padding: 2rem;
  background: var(--polar-white);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--polar-blue);
  box-shadow: 0 0 0 3px rgba(27,127,212,.15);
}

/* ---- About page ---- */
.about-lead {
  font-size: 1.15rem;
  color: var(--polar-muted);
  line-height: 1.7;
}

.about-feature {
  padding: 1.5rem;
  border: 1.5px solid var(--polar-border);
  border-radius: 10px;
  background: var(--polar-ice);
}

.about-feature i {
  font-size: 1.75rem;
  color: var(--polar-blue);
}

/* ---- Utilities ---- */
.gpu-badge {
  font-size: .68rem;
  background: #ede9fe;
  color: #4c1d95;
  padding: .15rem .5rem;
  border-radius: 3px;
  font-weight: 700;
}
