/* ========================================================= */
/* ROOT / THEME VARIABLES                                    */
/* ========================================================= */
:root{
  /* tło */
  --bg0:#070b18;
  --bg1:#0b1330;

  /* panele */
  --panel-a:.97;
  --panel-a-hero:.96;
  --row-a:.97;

  /* GALERIA */
  --bg-gallery-a:.45;
  --bg-gallery-h:520px;
  --bg-shot-w:760px;
  --bg-shot-h:430px;
  --bg-shot-radius:28px;

  /* LOGO TOPBAR */
  --brand-logo-size:170px;
  --brand-logo-pad:28px;
  --brand-logo-radius:14px;

  /* kolory */
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.10);
  --stroke: rgba(255,255,255,.14);
  --text:#eaf0ff;
  --muted: rgba(234,240,255,.72);
  --muted2: rgba(234,240,255,.55);
  --brand:#4da3ff;
  --brand2:#b04dff;
  --ok:#38d39f;

  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 24px;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* LIGHT THEME: tło jasne, tekst nadal biały, topbar ciemny, galeria mocniejsza */
html[data-theme="light"]{
  --bg0:#f4f7ff;
  --bg1:#e9efff;

  /* biały tekst zostaje */
  --text:#eaf0ff;
  --muted: rgba(234,240,255,.78);
  --muted2: rgba(234,240,255,.62);

  /* ramki bardziej widoczne */
  --stroke: rgba(0,0,0,.22);

  /* cień delikatniejszy */
  --shadow: 0 18px 60px rgba(0,0,0,.18);

  /* galeria w light ma być czytelna */
  --bg-gallery-a:.42;
}

/* ========================================================= */
/* BASE                                                      */
/* ========================================================= */
*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background:
    radial-gradient(1000px 600px at 18% 20%, rgba(77,163,255,.25), transparent 60%),
    radial-gradient(900px 560px at 78% 15%, rgba(176,77,255,.20), transparent 60%),
    radial-gradient(1200px 700px at 50% 110%, rgba(56,211,159,.12), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  overflow-x:hidden;
}

/* ========================================================= */
/* FULLSCREEN BACKGROUND GALLERY                             */
/* ========================================================= */
.fullscreen-gallery{
  position:fixed;
  left:0;
  right:0;
  top:50%;
  transform:translateY(-50%);
  height: var(--bg-gallery-h);
  z-index:1;
  pointer-events:none;
  overflow:hidden;

  /* ✅ zawsze widoczna */
  opacity: var(--bg-gallery-a) !important;
  visibility: visible !important;

  contain: layout paint;
}

/* tor animacji */
.fullscreen-track{
  display:flex;
  align-items:center;
  height:100%;
  width:max-content;
  will-change: transform;
  transform: translateZ(0);

  /* ✅ najważniejsze: start w kadrze, bez “czekania aż wjedzie” */
  animation: ptwSlide 200s linear infinite;
}

/* dwie identyczne pętle */
.fullscreen-loop{
  display:flex;
  align-items:center;
  gap:18px;
  height:100%;
  padding:0 24px;
}

/* kafel */
.fullscreen-shot{
  width: var(--bg-shot-w);
  height: var(--bg-shot-h);
  border-radius: var(--bg-shot-radius);
  overflow:hidden;

  background:
    radial-gradient(600px 220px at 20% 30%, rgba(77,163,255,.22), transparent 60%),
    radial-gradient(520px 200px at 80% 20%, rgba(176,77,255,.18), transparent 60%),
    rgba(255,255,255,.06);

  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 30px 90px rgba(0,0,0,.55);
  flex:0 0 auto;
}

.fullscreen-shot img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:saturate(1.12) contrast(1.10);
  transform: scale(1.02);
  backface-visibility: hidden;
}

html[data-theme="light"] .fullscreen-shot img{
  filter:saturate(1.25) contrast(1.18);
}

/* ✅ klucz: przesuwamy o szerokość 1 pętli (połowa toru) */
@keyframes ptwSlide{
  from{ transform:translateX(0); }
  to  { transform:translateX(-50%); }
}

/* ========================================================= */
/* TOPBAR                                                    */
/* ========================================================= */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background:linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.18));
  border-bottom:1px solid var(--stroke);
}

/* w light topbar ma zostać ciemny bo tekst biały */
html[data-theme="light"] .topbar{
  background:linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,.40));
  border-bottom:1px solid rgba(0,0,0,.28);
}

.topbar-inner{
  max-width:1200px;
  margin:0 auto;
  padding:12px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:900;
  letter-spacing:.3px;
  color: var(--text);
}

.brand-logo{
  width: var(--brand-logo-size);
  height: var(--brand-logo-size);
  padding: var(--brand-logo-pad);
  border-radius: var(--brand-logo-radius);
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.20);
  object-fit:contain;
  filter:
    drop-shadow(0 0 20px rgba(77,163,255,.60))
    drop-shadow(0 0 30px rgba(176,77,255,.40));
}

html[data-theme="light"] .brand-logo{
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.28);
}

.actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

/* ========================================================= */
/* BUTTONS                                                   */
/* ========================================================= */
.btn{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.08);
  color:var(--text);
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  text-decoration:none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background:rgba(255,255,255,.14);
}

.btn.primary{
  background:linear-gradient(90deg, rgba(77,163,255,.30), rgba(176,77,255,.30));
  border-color:rgba(77,163,255,.45);
}

/* ========================================================= */
/* LAYOUT                                                    */
/* ========================================================= */
.container{
  max-width:1200px;

  /* było: margin:0 0 0 auto; */
  margin: -100px 0 0 auto;   /*  podnosi wszystko w górę */

  padding: 0 40px 80px 28px; /* usuwamy górny padding */
  position:relative;
  z-index:10;
}


/* ========================================================= */
/* HERO                                                      */
/* ========================================================= */
.hero{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:18px;
  align-items:stretch;
}

.hero-card{
  background:rgba(12,16,34,var(--panel-a-hero));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius:var(--radius2);
  border:10px solid var(--stroke);
  padding:1px;
  box-shadow:var(--shadow);
  position:relative;
}

.hero-title{
  margin:10 20 20px;
  font-size:33px;
  font-weight:900;
  text-transform:uppercase;
}

.hero-sub{
  margin:10 10 28px;
  color:var(--muted);
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:18px;
  padding:30px 22px;
  border-radius:999px;
  background:rgba(0,0,0,.35);
  border:1px solid var(--stroke);
  font-size:12px;
}

html[data-theme="light"] .pill{
  background: rgba(0,0,0,.35);
}

/* ========================================================= */
/* SIDE CARD                                                 */
/* ========================================================= */
.side-card{
  background:rgba(12,16,34,var(--panel-a-hero));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius:var(--radius2);
  border:1px solid var(--stroke);
  padding:18px;
  box-shadow:var(--shadow);
}

.wizard-info{
  background:linear-gradient(180deg, rgba(77,163,255,.18), rgba(176,77,255,.14));
  border-radius:18px;
  padding:16px;
}

/* ========================================================= */
/* GRID / CARDS                                              */
/* ========================================================= */
.grid{
  margin-top:20px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}

.card{
  background:rgba(12,16,34,var(--panel-a));
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius:var(--radius);
  border:1px solid var(--stroke);
  padding:10px;
  box-shadow:var(--shadow);
}

.card h3{
  margin:0 0 10px;
  font-size:14px;
  color:var(--muted);
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.list{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.row{
  background:rgba(8,12,28,var(--row-a));
  border-radius:14px;
  border:1px solid var(--stroke);
  padding:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.left{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.badge{
  display:inline-flex;
  align-items:center;
  font-size:11px;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid var(--stroke);
  color:var(--muted);
  width:fit-content;
}

.url{
  font-family:var(--mono);
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}

.right{
  display:flex;
  gap:8px;
  flex-shrink:0;
}

.mini{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.08);
  color:var(--text);
  padding:8px 10px;
  border-radius:12px;
  cursor:pointer;
  text-decoration:none;
  transition: transform .15s ease, background .15s ease;
  font-size:12px;
}
.mini:hover{
  transform: translateY(-1px);
  background:rgba(255,255,255,.14);
}

/* ========================================================= */
/* WATERMARK LOGO                                            */
/* ========================================================= */
#ptw-flying-logo{
  position:fixed;
  left:24px;
  bottom:24px;
  width:clamp(1px,14vw,200px);
  height:auto;
  opacity:.92;
  pointer-events:none;
  z-index:5;
  animation:none!important;
  transform:none!important;
  transition:none!important;
  filter:
    drop-shadow(0 10px 35px rgba(0,0,0,.35))
    drop-shadow(0 0 18px rgba(77,163,255,.25));
}

/* ========================================================= */
/* TOAST                                                     */
/* ========================================================= */
.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.72);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  display:none;
  align-items:center;
  gap:10px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  z-index: 999;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: min(720px, calc(100vw - 26px));
}
.toast.show{ display:flex; }
.toast .okdot{
  width:9px;
  height:9px;
  border-radius:999px;
  background: var(--ok);
  box-shadow: 0 0 16px rgba(56,211,159,.7);
}

/* ========================================================= */
/* RESPONSIVE                                                */
/* ========================================================= */
@media (max-width:980px){
  .hero{ grid-template-columns:1fr; }
  .grid{ grid-template-columns:1fr; }

  :root{
    --bg-gallery-h:260px;
    --bg-shot-w:360px;
    --bg-shot-h:210px;
    --brand-logo-size:44px;
    --brand-logo-pad:6px;
    --bg-gallery-a:.30;
  }

  html[data-theme="light"]{
    --bg-gallery-a:.34;
  }

  .container{
    padding:22px 18px 70px 18px;
  }
}

/* ========================================================= */
/* REDUCED MOTION                                            */
/* ========================================================= */
@media (prefers-reduced-motion: reduce){
  .fullscreen-track{ animation:none!important; }
  *{ transition:none!important; }
}
