/* =====================================================
   v2 – prvky inspirované ReuX / SideRP / GenK
   ===================================================== */

/* preloader */
.preloader {
  position: fixed; inset: 0; z-index: 999; background: var(--bg);
  display: grid; place-items: center; transition: opacity .6s, visibility .6s;
}
.preloader img { width: 110px; animation: pulse 1.4s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(255, 61, 187, .5)); }
.preloader.done { opacity: 0; visibility: hidden; }
@keyframes pulse { 50% { transform: scale(.9); opacity: .6; } }

/* nav dropdown */
.nav-links li { position: relative; }
.has-drop > a::after { content: "▾"; margin-left: 6px; font-size: 11px; opacity: .7; }
.drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px; list-style: none;
  background: rgba(14, 9, 28, .98); border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  opacity: 0; visibility: hidden; translate: 0 6px; transition: .18s;
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; translate: 0 0; }
.drop a { display: block; }

/* split hero */
.hero.split { text-align: left; place-items: center stretch; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 50px; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(139, 61, 255, .14); border: 1px solid rgba(139, 61, 255, .35);
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #d6bfff; margin-bottom: 20px;
}
.hero.split h1 { font-size: clamp(40px, 6.2vw, 78px); line-height: 1.02; letter-spacing: 0; font-weight: 900; }
.hero.split p.lead { margin: 20px 0 30px; }
.hero.split .connect-row { justify-content: flex-start; }
.hero-art { position: relative; }
.hero-art .big-logo {
  position: absolute; right: -60px; top: -150px; width: 400px; opacity: .2; z-index: -1;
  filter: drop-shadow(0 0 60px rgba(255, 61, 187, .5));
}

/* server status card */
.server-card {
  background: rgba(17, 11, 34, .82); border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.server-card .top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.server-card .top img { width: 52px; height: 52px; border-radius: 12px; background: rgba(0,0,0,.3); padding: 4px; }
.server-card .top h3 { font-size: 18px; line-height: 1.2; }
.server-card .top small { color: var(--muted); font-size: 13px; }
.server-card .badge { margin-left: auto; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.06); white-space: nowrap; }
.server-card .row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.server-card .row span:first-child { color: var(--muted); }
.server-card .row b { font-size: 15px; }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; margin: 4px 0 16px; }
.bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: inherit; transition: width 1s ease; }
.server-card .btn { width: 100%; justify-content: center; }
.server-card .btns2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

/* story */
.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.story-badge {
  aspect-ratio: 1; border-radius: 28px; position: relative; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(255,61,187,.35), transparent 60%), radial-gradient(circle at 80% 90%, rgba(139,61,255,.45), transparent 60%), #140b28;
  border: 1px solid rgba(255, 61, 187, .25);
}
.story-badge img { width: 62%; filter: drop-shadow(0 0 40px rgba(255, 61, 187, .5)); }
.story-badge .est { position: absolute; left: 22px; bottom: 18px; font-size: 13px; color: var(--muted); letter-spacing: 3px; }
.story-badge .est b { display: block; font-size: 40px; color: var(--text); letter-spacing: 0; line-height: 1; }
.story h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin-bottom: 18px; }
.story p { color: var(--muted); margin-bottom: 14px; }

/* info cards (pravidla / žádost) */
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card {
  position: relative; overflow: hidden; border-radius: 20px; padding: 34px; min-height: 230px; isolation: isolate;
  border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .2s, border-color .2s;
}
.info-card:hover { transform: translateY(-4px); border-color: rgba(255, 61, 187, .35); }
.info-card::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.info-card.a::before { background: radial-gradient(circle at 100% 0%, rgba(139,61,255,.4), transparent 60%); }
.info-card.b::before { background: radial-gradient(circle at 100% 0%, rgba(255,61,187,.35), transparent 60%); }
.info-card .num-bg { position: absolute; right: 24px; top: 6px; font-size: 120px; font-weight: 900; opacity: .06; line-height: 1; }
.info-card h3 { font-size: 24px; margin-bottom: 8px; }
.info-card p { color: var(--muted); margin-bottom: 20px; max-width: 420px; }
.info-card .btn { align-self: flex-start; }

/* 3 kroky strip */
.steps-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.steps-strip a {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); transition: background .2s, border-color .2s;
}
.steps-strip a:hover { background: var(--card-hover); border-color: rgba(139, 61, 255, .4); }
.steps-strip .n { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; font-weight: 800; }
.steps-strip b { display: block; font-size: 15px; }
.steps-strip small { color: var(--muted); font-size: 13px; }

/* news / articles */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; transition: transform .2s, border-color .2s;
}
.article:hover { transform: translateY(-4px); border-color: rgba(255, 61, 187, .35); }
.article .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #2a0f55, #6b1475); position: relative; overflow: hidden; display: grid; place-items: center; font-size: 46px; }
.article .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article .thumb .cat {
  position: absolute; left: 12px; top: 12px; z-index: 1; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px; background: rgba(10, 7, 20, .75); backdrop-filter: blur(6px);
}
.cat.update { color: #c9a8ff; } .cat.oznameni { color: #ff8ad8; } .cat.event { color: #8affb9; }
.article .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.article .date { color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }
.article h3 { font-size: 17px; line-height: 1.35; margin-bottom: 8px; }
.article .perex { color: var(--muted); font-size: 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article .more { color: var(--pink); font-weight: 600; font-size: 14px; margin-top: 12px; }
.article .full { display: none; }
.modal { position: fixed; inset: 0; z-index: 150; background: rgba(5, 3, 10, .85); display: none; place-items: center; padding: 20px; backdrop-filter: blur(6px); }
.modal.open { display: grid; }
.modal-box { width: min(720px, 100%); max-height: 88vh; overflow: auto; background: #120b24; border: 1px solid var(--line); border-radius: 20px; padding: 32px; position: relative; }
.modal-box .date { color: var(--pink); font-size: 13px; font-weight: 700; }
.modal-box h2 { font-size: 26px; line-height: 1.25; margin: 6px 40px 16px 0; }
.modal-box p, .modal-box li { color: #cfc8e6; margin-bottom: 12px; }
.modal-box ul { padding-left: 20px; }
.modal-close { position: absolute; right: 14px; top: 14px; background: var(--card-hover); border: 1px solid var(--line); color: var(--text); width: 34px; height: 34px; border-radius: 9px; cursor: pointer; font-size: 18px; }

/* team preview */
.team-preview { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px 36px; }
.team-preview h3 { font-size: 24px; margin-bottom: 6px; }
.team-preview p { color: var(--muted); max-width: 480px; }
.team-preview .right { display: flex; align-items: center; gap: 24px; }
.avatars { display: flex; align-items: center; padding-left: 12px; }
.avatars span {
  width: 52px; height: 52px; border-radius: 50%; margin-left: -12px; display: grid; place-items: center; font-weight: 800;
  background: var(--grad); border: 3px solid var(--bg);
}
.avatars span:nth-child(2) { background: linear-gradient(135deg, #5b2bd9, #8b3dff); }
.avatars span:nth-child(3) { background: linear-gradient(135deg, #ff3dbb, #ff7a59); }
.avatars span.plus { background: #1d1336; color: var(--muted); font-size: 14px; }

/* final CTA */
.final-cta { text-align: center; padding: 80px 30px; border-radius: 28px; position: relative; overflow: hidden; border: 1px solid rgba(255, 61, 187, .25);
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 61, 255, .4), transparent 60%), radial-gradient(ellipse at 50% 120%, rgba(255, 61, 187, .3), transparent 60%), #120a24; }
.final-cta h2 { font-size: clamp(30px, 5vw, 54px); line-height: 1.1; margin: 8px 0 26px; }
.final-cta .connect-row { justify-content: center; }

/* cookie bar */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; max-width: 760px; margin-inline: auto;
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px;
  background: rgba(17, 11, 34, .96); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted);
}
.cookie b { color: var(--text); }
.cookie .btn { flex: none; }

@media (max-width: 980px) {
  .hero-grid, .story { grid-template-columns: 1fr; gap: 34px; }
  .hero-art .big-logo { display: none; }
  .news { grid-template-columns: 1fr 1fr; }
  .story-badge { max-width: 360px; }
}
@media (max-width: 760px) {
  .info-cards, .steps-strip, .news { grid-template-columns: 1fr; }
  .team-preview { flex-direction: column; align-items: flex-start; }
  .drop { position: static; opacity: 1; visibility: visible; translate: 0; background: none; border: 0; padding: 0 0 0 12px; }
  .has-drop > a::after { display: none; }
  .cookie { flex-direction: column; align-items: stretch; }
  .server-card { padding: 18px; }
  .server-card .top h3 { font-size: 16px; }
  .server-card .connect-box { font-size: 12px; }
}
