/* ======================================================================
   css/mh-servers.css (Moon-Host v2.4)
   FIX: "csíkosodás" (full-width background bands)
   - Ambient BG same technique as mh-faq (body::before + body::after)
   - Remove template section backgrounds ONLY on servers page
   - Scoped via body.mh-servers OR body:has(.server-grid)
   ====================================================================== */

:root{
  /* ✅ Landing v2 background */
  --mh-bg: #07080c;
  --mh-bg2:#0b0d12;

  /* ✅ Accent: RED (no yellow/orange) */
  --mh-red: #ff4a4a;
  --mh-red2:#e83a3a;
  --mh-accent-rgb: 255, 74, 74;

  /* ✅ Blue ambient */
  --mh-blue-rgb: 130, 160, 255;

  /* glass */
  --glass: rgba(255,255,255,.14);
  --glass-strong: rgba(255,255,255,.22);
  --glass-border: rgba(var(--mh-accent-rgb), .45);

  /* ✅ ONLY BUTTONS: minimal round */
  --mh-btn-radius: 8px;
  --mh-btn-radius-sm: 6px;
}

/* ==========================================================
   BASE
   ========================================================== */
html, body { background: var(--mh-bg); }

body{
  color: rgba(255,255,255,.92);
  overflow-x: hidden;
  background: var(--mh-bg);
}

a{ text-decoration: none !important; }

/* Font */
body, h1, h2, h3, h4, h5, h6, p, a, button, input, select,
.supporty, .footery, .footer-bottom, .server-box, .terms-box,
.features, .faq, .card-body, .navbar-brand, .btn{
  font-family: 'Poppins', sans-serif;
}

/* ==========================================================
   ✅ SERVERS PAGE SCOPE (no HTML change needed in Chrome)
   - If you can, add: <body class="mh-servers">
   ========================================================== */
body.mh-servers,
body:has(.server-grid){
  position: relative;
  isolation: isolate; /* saját stacking context */
  background: var(--mh-bg) !important;
}

/* ✅ Ambient (BEHIND everything) */
body.mh-servers::before,
body:has(.server-grid)::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;

  /* Noise (very subtle) + Ambient gradients */
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22260%22%20height%3D%22260%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.8%22%20numOctaves%3D%223%22%20stitchTiles%3D%22stitch%22/%3E%3C/filter%3E%3Crect%20width%3D%22260%22%20height%3D%22260%22%20filter%3D%22url(%23n)%22%20opacity%3D%220.10%22/%3E%3C/svg%3E"),
    radial-gradient(1200px 640px at 18% 25%, rgba(var(--mh-accent-rgb), .22), transparent 60%),
    radial-gradient(1000px 620px at 82% 18%, rgba(var(--mh-blue-rgb), .16), transparent 62%),
    radial-gradient(900px 520px at 50% 85%, rgba(var(--mh-accent-rgb), .10), transparent 65%),
    linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,.86)),
    var(--mh-bg);

  background-size: 260px 260px, auto, auto, auto, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}

/* ✅ Vignette (still behind content) */
body.mh-servers::after,
body:has(.server-grid)::after{
  content:"";
  position: fixed;
  inset: -40px;
  pointer-events: none;
  z-index: -1;
  opacity: .72;
  background:
    radial-gradient(circle at 50% 35%,
      transparent 0 55%,
      rgba(0,0,0,.55) 78%,
      rgba(0,0,0,.90) 100%);
}

/* ==========================================================
   ✅ KILL THE STRIPE: template full-width wrappers
   (ONLY on servers page scope)
   ========================================================== */
body.mh-servers #content,
body:has(.server-grid) #content,
body.mh-servers .npage,
body:has(.server-grid) .npage,
body.mh-servers .heading,
body:has(.server-grid) .heading,
body.mh-servers .main-two,
body:has(.server-grid) .main-two,
body.mh-servers main,
body:has(.server-grid) main,
body.mh-servers .container-fluid,
body:has(.server-grid) .container-fluid{
  background: transparent !important;
}

/* gyakran a csíkot pseudo overlay adja */
body.mh-servers .heading::before,
body:has(.server-grid) .heading::before,
body.mh-servers .heading::after,
body:has(.server-grid) .heading::after,
body.mh-servers .main-two::before,
body:has(.server-grid) .main-two::before,
body.mh-servers .main-two::after,
body:has(.server-grid) .main-two::after,
body.mh-servers .npage::before,
body:has(.server-grid) .npage::before,
body.mh-servers .npage::after,
body:has(.server-grid) .npage::after{
  background: transparent !important;
}

/* ==========================================================
   SQUARED UI + BORDER OFF
   ========================================================== */

/* Cím alatti AGB box */
.terms-box{
  display: inline-block;
  position: relative;
  padding: 10px 14px;
  background: rgba(0,0,0,.35);
  border: 0;
  border-radius: 0;
  backdrop-filter: blur(10px);
}
.terms-box a{
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.terms-box a:hover{ color: var(--mh-red); }

/* Search + select (glass strip) */
.search-container{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 18px auto 10px;
  padding: 14px 16px;
  width: fit-content;
  background: rgba(0,0,0,.25);
  border: 0;
  border-radius: 0;
  backdrop-filter: blur(10px);
}

#searchInput, #categorySelect{
  outline: none;
  padding: 10px 14px;
  border-radius: 0;
  border: 0 !important;
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
  transition: box-shadow .2s, background .2s, filter .2s;
}

#searchInput{ width: 320px; }
#searchInput::placeholder{ color: rgba(255,255,255,.60); }

#searchInput:focus, #categorySelect:focus{
  box-shadow: 0 0 0 3px rgba(var(--mh-accent-rgb), .12);
  background: rgba(255,255,255,.08) !important;
  filter: brightness(1.02);
}

#categorySelect{ color-scheme: dark; }

#categorySelect option{
  background: #101317;
  color: #fff;
}
#categorySelect option:checked{
  background: var(--mh-red);
  color: #fff;
}
#categorySelect option:hover{
  background: rgba(var(--mh-accent-rgb), .18);
}

/* GRID container */
.server-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 12px 40px;
  background: transparent;
}

/* Server card */
.server-box{
  height: 300px;
  border-radius: 0;
  background-image: none !important; /* smart image mode */
  color: #fff;
  text-align: center;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  transform: translateZ(0);
}

.server-box:hover{
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,.40);
}

/* SMART IMAGE MODE */
.server-box::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--bg);
  background-size: cover;
  background-position: var(--pos, center);
  background-repeat: no-repeat;
  filter: blur(6px) saturate(1.15) contrast(1.10) brightness(1.08);
  transform: scale(1.08);
  z-index: 0;
}

.server-box::after{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--bg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.08) contrast(1.08) brightness(1.05);
  z-index: 1;
}

/* Overlay */
.server-box .overlay{
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.18) 55%,
    rgba(0,0,0,.10) 100%
  );
}

/* Content */
.server-box .content{
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  z-index: 3;
  padding: 0 14px;
}
.server-box .content h4{
  font-size: 20px;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}

/* BUTTONS (only rounded elements) */
.btn, .btn-primary{
  border-radius: var(--mh-btn-radius) !important;
}

.btn.btn-primary{
  font-size: 14px;
  font-weight: 800;
  padding: 8px 14px;
  border: 0 !important;
  background: linear-gradient(90deg, var(--mh-red), var(--mh-red2));
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(var(--mh-accent-rgb), .18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn.btn-primary:hover{
  transform: translateY(-2px);
  filter: brightness(1.06) saturate(1.02);
  box-shadow:
    0 18px 44px rgba(var(--mh-accent-rgb), .22),
    0 0 0 3px rgba(var(--mh-accent-rgb), .10);
}
.btn.btn-primary:focus{
  outline: none;
  box-shadow:
    0 18px 44px rgba(var(--mh-accent-rgb), .22),
    0 0 0 3px rgba(var(--mh-accent-rgb), .12);
}

/* Ár badge */
.best-offer{
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  border-radius: 0;
  white-space: nowrap;
  background: rgba(15, 17, 21, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border: 0;
  box-shadow:
    0 10px 18px rgba(0,0,0,.30),
    0 0 0 3px rgba(var(--mh-accent-rgb), .10);
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  z-index: 4;
}

span.TableText{ font-size: 15px !important; }
.spricing .table-dark td{ padding: 15px; }

/* Responsive */
@media (max-width: 768px){
  .search-container{
    width: calc(100% - 24px);
    justify-content: center;
  }
  #searchInput{ width: 100%; max-width: 420px; }
}

@media (max-width: 480px){
  .search-container{
    flex-direction: column;
    border-radius: 0;
    padding: 12px;
    gap: 10px;
  }
  #searchInput, #categorySelect{
    width: 100% !important;
  }
}
