/* HytHost.pl — Bootstrap theme overrides + custom components */
:root{
  --hh-bg: #07040f;
  --hh-panel: rgba(12,6,32,.55);
  --hh-panel-2: rgba(12,6,32,.35);
  --hh-text: #f3f0ff;
  --hh-muted: rgba(243,240,255,.72);
  --hh-muted2: rgba(243,240,255,.55);
  --hh-stroke: rgba(210,180,255,.16);
  --hh-stroke2: rgba(210,180,255,.26);
  --hh-shadow: rgba(0,0,0,.45);
  --hh-accent: #a855f7;
  --hh-accent2: #8b5cf6;
  --hh-cyan: #22d3ee;
  --hh-radius: 1.1rem;
}

/* ---- GLOBAL / FIX: prevent horizontal overflow ---- */
html{
  scroll-behavior:smooth;
  overflow-x: clip; /* nowocześniej niż hidden (gdy wspierane) */
}
body{
  background: var(--hh-bg);
  color: var(--hh-text);
  overflow-x: hidden; /* fallback + pewność */
}

a{color: inherit}
.text-muted{color: var(--hh-muted)!important}

/* Background */
.hh-bg{
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden; /* KLUCZ: ujemne left/right nie generują scrolla */
}

.hh-bg__grid{
  position:absolute;
  inset: 0; /* było -2px => potrafi robić overflow */
  background:
    radial-gradient(circle at 20% 10%, rgba(168,85,247,.18), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(34,211,238,.10), transparent 46%),
    radial-gradient(circle at 40% 85%, rgba(139,92,246,.12), transparent 48%),
    linear-gradient(to bottom, rgba(255,255,255,.05), transparent 35%);
  filter:saturate(1.2);
}

.hh-bg__orb{
  position:absolute;
  width:520px;
  height:520px;
  max-width: 100vw;
  max-height: 100vh;
  border-radius:999px;
  filter: blur(55px);
  opacity:.55;
  animation: hh-float 10s ease-in-out infinite;
}
.hh-bg__orb--a{left:-160px; top:-200px; background:rgba(168,85,247,.55)}
.hh-bg__orb--b{right:-180px; top:160px; background:rgba(34,211,238,.22); animation-delay:-3s}
.hh-bg__orb--c{left:30%; bottom:-260px; background:rgba(139,92,246,.35); animation-delay:-6s}

@keyframes hh-float{
  0%,100%{transform: translate3d(0,0,0) scale(1)}
  50%{transform: translate3d(0,-18px,0) scale(1.03)}
}

/* Accessibility */
.skip-link{
  position:absolute;
  left:-999px;
  top:0;
  z-index: 1050;
  padding:.75rem 1rem;
  border-radius: .75rem;
  background: rgba(12,6,32,.9);
  border: 1px solid var(--hh-stroke2);
  color: var(--hh-text);
}
.skip-link:focus{left: .75rem; top:.75rem}

:focus-visible{
  outline: 3px solid rgba(34,211,238,.55);
  outline-offset: 2px;
  border-radius: .6rem;
}

/* Navbar */
.hh-navbar{
  width: 100%;
  backdrop-filter: blur(14px);
  background: rgba(7,4,15,.62);
  border-bottom: 1px solid var(--hh-stroke);
}

.hh-brand-logo{height: 34px; width: auto}

/* Pozwala łamać linki w navbarze (zamiast wypychać ekran) */
.hh-nav-wrap{
  flex-wrap: wrap;
  row-gap: .25rem;
  column-gap: .25rem;
}

/* Buttons */
.btn-hh-primary{
  --bs-btn-color: #fff;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(168,85,247,.35);
  --bs-btn-hover-border-color: rgba(210,180,255,.32);
  background: linear-gradient(135deg, rgba(168,85,247,.95), rgba(34,211,238,.35));
  box-shadow: 0 12px 30px var(--hh-shadow);
  border-radius: .95rem;
}
.btn-hh-ghost{
  --bs-btn-color: var(--hh-text);
  --bs-btn-bg: rgba(12,6,32,.18);
  --bs-btn-border-color: var(--hh-stroke);
  --bs-btn-hover-bg: rgba(12,6,32,.28);
  --bs-btn-hover-border-color: var(--hh-stroke2);
  box-shadow: 0 12px 30px var(--hh-shadow);
  border-radius: .95rem;
}

/* Cards / panels */
.hh-card{
  background: rgba(12,6,32,.22);
  border: 1px solid var(--hh-stroke);
  border-radius: var(--hh-radius);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.hh-card-soft{
  background: rgba(12,6,32,.28);
}
.hh-pill{
  border-radius: 999px;
  border: 1px solid rgba(34,211,238,.25);
  background: rgba(34,211,238,.10);
  color: rgba(243,240,255,.92);
  font-weight: 800;
}
.hh-pill-soft{
  border-color: rgba(168,85,247,.28);
  background: rgba(168,85,247,.10);
  color: rgba(243,240,255,.92);
}

/* Hero */
.hh-hero{
  padding-top: 4.25rem;
  padding-bottom: 1.25rem;
}
.hh-badge{
  border-radius: 999px;
  border: 1px solid rgba(168,85,247,.35);
  background: rgba(168,85,247,.10);
  color: rgba(243,240,255,.92);
  font-weight: 800;
  letter-spacing: .2px;
}
.hh-glow{
  text-shadow:
    0 0 22px rgba(168,85,247,.65),
    0 0 42px rgba(34,211,238,.22);
}
.hh-hero-fade{
  height: 70px;
  background: linear-gradient(to bottom, transparent, rgba(7,4,15,.92));
}

/* Range + value */
.hh-val{
  color: rgba(34,211,238,.95);
  font-weight: 900;
  text-shadow: 0 0 18px rgba(34,211,238,.25);
}

/* Pricing highlight */
.hh-featured{
  border-color: rgba(168,85,247,.45)!important;
  background:
    radial-gradient(circle at 50% 0%, rgba(168,85,247,.18), transparent 55%),
    rgba(12,6,32,.26) !important;
  transform: translateY(-6px);
}
@media (max-width: 992px){
  .hh-featured{transform:none}
}

/* Accordion dark */
.accordion.hh-acc .accordion-item{
  border: 1px solid var(--hh-stroke);
  background: rgba(12,6,32,.22);
  border-radius: var(--hh-radius);
  overflow: hidden;
}
.accordion.hh-acc .accordion-button{
  background: transparent;
  color: var(--hh-text);
  font-weight: 800;
}
.accordion.hh-acc .accordion-button:focus{
  box-shadow: none;
}
.accordion.hh-acc .accordion-button:not(.collapsed){
  background: rgba(168,85,247,.10);
  color: var(--hh-text);
}
.accordion.hh-acc .accordion-body{
  color: var(--hh-muted);
}

/* Footer */
.hh-footer{
  border-top: 1px solid rgba(210,180,255,.14);
  background: rgba(7,4,15,.78);
}

/* Cookie banner */
.hh-cookie{
  background: rgba(7,4,15,.86);
  border-top: 1px solid rgba(210,180,255,.18);
  backdrop-filter: blur(12px);
}

/* Helpers */
.hh-border{border:1px solid var(--hh-stroke)!important}
.hh-muted2{color: var(--hh-muted2)}
