/* Strona współdzielonego adresu IP (sharedip.seohost.pl) */

:root {
  --green: #2db569;
  --green-rgb: 45, 181, 105;
  --mint: #dff3e8;
  --mint-rgb: 223, 243, 232;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background: #000;
  color: var(--green);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Wzór tła jak na pozostałych stronach seohost */
body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('bg.svg');
  opacity: 0.6;
  z-index: -1;
}

/* Delikatna poświata za grafiką, żeby lewa strona nie była płaska */
body::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(640px circle at 27% 46%, rgba(var(--green-rgb), 0.09), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem 1rem;
}

.layout {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 4.5rem;
  align-items: center;
}

/* ---------- Lewa kolumna: grafika, tytuł, adres ---------- */

.visual {
  text-align: center;
  animation: rise 0.9s ease-out both;
}

.visual-img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: min(44vh, 390px);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 28px rgba(var(--green-rgb), 0.22));
  animation: float 5s ease-in-out infinite;
}

.title {
  margin: 0;
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  text-shadow: 0 0 24px rgba(var(--green-rgb), 0.35);
}

.title::after {
  content: '';
  display: block;
  width: 60%;
  max-width: 240px;
  height: 2px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0.7;
}

.address {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 100%;
  margin-top: 1.25rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(var(--green-rgb), 0.25);
  border-radius: 999px;
  background: rgba(var(--green-rgb), 0.05);
}

.address[hidden] {
  display: none;
}

.address-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: ping 2s ease-out infinite;
}

.address code {
  font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  color: var(--mint);
  text-align: left;
  overflow-wrap: anywhere;
}

/* ---------- Prawa kolumna: wyjaśnienie i przyczyny ---------- */

.info {
  animation: slide 0.9s ease-out 0.15s both;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(var(--green-rgb), 0.8);
}

.kicker::before {
  content: '';
  flex-shrink: 0;
  width: 32px;
  height: 1px;
  background: rgba(var(--green-rgb), 0.5);
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(var(--mint-rgb), 0.85);
}

.lead strong {
  font-weight: 600;
  color: var(--green);
}

.reasons {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.75rem;
  border: 1px solid rgba(var(--green-rgb), 0.14);
  border-radius: 18px;
  background: rgba(var(--green-rgb), 0.035);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* Jaśniejsze narożniki ramki, ta sama sztuczka co na stronie suspended */
.reasons::before {
  content: '';
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(var(--green-rgb), 0.45), transparent 40%, transparent 60%, rgba(var(--green-rgb), 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.reason {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
}

.reason-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(var(--green-rgb), 0.22);
  border-radius: 12px;
  background: rgba(var(--green-rgb), 0.08);
  color: var(--green);
  transition: all 0.3s ease;
}

.reason-icon svg {
  width: 20px;
  height: 20px;
}

.reason-title {
  display: block;
  margin: 0.1rem 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--mint);
}

.reason-desc {
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(var(--green-rgb), 0.85);
}

/* Co zrobić: osobna, jaśniejsza linia, żeby nie ginęła w opisie */
.reason-action {
  display: block;
  margin-top: 0.2rem;
  color: rgba(var(--mint-rgb), 0.9);
}

/* Przyczyna w ramce, ikona mocniej podświetlona */
.reasons .reason-icon {
  border-color: rgba(var(--green-rgb), 0.5);
  background: rgba(var(--green-rgb), 0.18);
  box-shadow: 0 0 18px rgba(var(--green-rgb), 0.25);
}

/* Jedna strona, dwie wersje: po IP albo przez domenę; skrypt ustawia klasę na body */
.mode-ip [data-mode="domain"],
.mode-domain [data-mode="ip"] {
  display: none !important;
}

/* Brak SSL wchodzi w grę tylko przy wejściu przez https */
.reason-or,
.reason[data-https] {
  display: none;
}

.is-https .reason[data-https] {
  display: flex;
}

.is-https .reason-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: -0.4rem 0;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(var(--green-rgb), 0.6);
}

.reason-or::before,
.reason-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(var(--green-rgb), 0.15);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
  padding: 0 0.25rem;
}

.contact-text {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(var(--green-rgb), 0.8);
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.6rem;
  border: 1px solid rgba(var(--green-rgb), 0.45);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.contact-btn:hover,
.contact-btn:focus-visible {
  border-color: var(--green);
  background: var(--green);
  color: #000;
  box-shadow: 0 8px 24px rgba(var(--green-rgb), 0.3);
  outline: none;
}

.contact-btn:hover svg,
.contact-btn:focus-visible svg {
  transform: translateX(3px);
}

/* ---------- Stopka ---------- */

footer {
  padding: 1rem 1rem 1.5rem;
  text-align: center;
}

.logo {
  max-width: 120px;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 1;
}

/* ---------- Animacje ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes slide {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}

/* Grafika unosi się góra-dół, tak jak ikona na stronie domyślnej i suspended */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(var(--green-rgb), 0.6); }
  80%, 100% { box-shadow: 0 0 0 8px rgba(var(--green-rgb), 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Rozmiary ekranu ---------- */

/* Niskie ekrany laptopów: mniejsze odstępy, żeby całość mieściła się bez przewijania */
@media (min-width: 961px) and (max-height: 760px) {
  main { padding-top: 1.5rem; }
  .visual-img { height: min(40vh, 330px); margin-bottom: 1rem; }
  .lead { font-size: 1.05rem; margin-bottom: 1.25rem; }
  .reason { padding: 0.8rem 0; }
  .contact { margin-top: 1.1rem; }
}

/* Tablet i telefon: jedna kolumna, grafika nad tekstem */
@media (max-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    max-width: 620px;
  }
  .visual-img { height: min(34vh, 300px); }
  .info { animation-name: rise; }
  body::after { background: radial-gradient(420px circle at 50% 22%, rgba(var(--green-rgb), 0.09), transparent 70%); }
}

@media (max-width: 480px) {
  main { padding: 1.5rem 1rem 1rem; }
  .kicker { letter-spacing: 3px; }
  .lead { font-size: 1.05rem; }
  .reasons { padding: 0.25rem 1.1rem; }
  .reason-icon { width: 36px; height: 36px; border-radius: 10px; }
  .contact { justify-content: center; text-align: center; }
  .address { padding: 0.45rem 0.9rem; }
  .address code { font-size: 0.9rem; letter-spacing: 0; }
}
