/* =========================================================
   YPYT — shared stylesheet
   Design system: coal-black surfaces / ember-orange accent
   (v2 — matches the BlackMC.eu reference the user provided)
   ========================================================= */

:root {
  /* --- surfaces --- */
  --bg-void: #0c0805;
  --bg-base: #110b07;
  --bg-surface: #1a130c;
  --bg-surface-2: #241b11;
  --bg-surface-3: #2f2318;

  /* --- ember (brand) --- */
  --ember-300: #ffcf8f;
  --ember-400: #ffab4d;
  --ember-500: #ff8f1e;
  --ember-600: #f66d0a;
  --ember-700: #c2530a;
  --ember-glow: #ff5e1a;

  /* --- text --- */
  --text-primary: #f8efe2;
  --text-secondary: #cabaa5;
  --text-muted: #8c7c69;

  /* --- borders --- */
  --border-subtle: rgba(255, 154, 30, 0.14);
  --border-strong: rgba(255, 154, 30, 0.38);
  --border-hair: rgba(255, 238, 214, 0.08);

  /* --- semantic --- */
  --ok: #5be07a;

  /* --- type --- */
  --font-display: "Kanit", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* --- layout --- */
  --container: 880px;
  --nav-h: 76px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  /* --- shadow --- */
  --shadow-ember: 0 10px 30px -8px rgba(255, 110, 10, 0.45);
  --shadow-deep: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse 1100px 700px at 18% 0%, rgba(255, 143, 30, 0.07), transparent 70%),
    radial-gradient(ellipse 900px 650px at 88% 28%, rgba(255, 94, 26, 0.05), transparent 65%),
    radial-gradient(ellipse 1000px 700px at 8% 70%, rgba(255, 143, 30, 0.055), transparent 68%),
    var(--bg-void);
  background-repeat: no-repeat;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; text-wrap: balance; }
p { margin: 0; }

::selection { background: var(--ember-500); color: #1a0f04; }
:focus-visible { outline: 2px solid var(--ember-400); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ember-400); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 16px; height: 2px; background: var(--ember-500); display: inline-block; }
.section { padding: 88px 0; position: relative; }
.section--tight { padding: 56px 0; }
.section-head { max-width: 560px; margin-bottom: 44px; }
.section-head.center { max-width: 520px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.1; }
.section-head p { margin-top: 14px; color: var(--text-secondary); font-size: 16px; }
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hair) 30%, var(--border-hair) 70%, transparent);
  border: none; margin: 0; opacity: 0.5;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-s);
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, filter .15s ease;
  white-space: nowrap; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--ember-400), var(--ember-600)); color: #1c0f03; box-shadow: var(--shadow-ember); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 14px 34px -10px rgba(255, 110, 10, 0.6); }
.btn-outline { background: rgba(255, 255, 255, 0.02); border-color: var(--border-strong); color: var(--text-primary); }
.btn-outline:hover { background: rgba(255, 154, 30, 0.08); border-color: var(--ember-400); }
.btn-ghost { background: transparent; color: var(--text-secondary); padding: 13px 18px; }
.btn-ghost:hover { color: var(--text-primary); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- generic surface primitives (also used in admin) ---------- */
.pixel-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-deep);
}
.pixel-slot {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-s);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(12, 8, 5, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-hair);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 18px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { width: 32px; height: 32px; border-radius: 8px; image-rendering: pixelated; }
.nav-brand .wordmark { color: var(--text-primary); font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: var(--radius-s);
  font-size: 14.5px; font-weight: 500; color: var(--text-secondary);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.03); }
@media (max-width: 560px) { .nav-links a { padding: 8px 10px; font-size: 13.5px; } }

/* ---------- HERO ---------- */
.hero { position: relative; padding-top: 72px; padding-bottom: 80px; overflow: hidden; text-align: center; }
.hero-bg-glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(255, 143, 30, 0.18) 0%, rgba(255, 94, 26, 0.07) 40%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.embers { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.ember {
  position: absolute; bottom: -20px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--ember-400); box-shadow: 0 0 8px 2px rgba(255, 154, 30, 0.7);
  animation: rise linear infinite; opacity: 0;
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  8% { opacity: 0.9; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-520px) translateX(var(--drift, 30px)); opacity: 0; }
}
.hero-inner { position: relative; z-index: 2; }
.avatar-wrap { position: relative; display: inline-block; margin-bottom: 22px; }
.avatar-wrap::before {
  content: ""; position: absolute; inset: -22px;
  background: radial-gradient(circle, rgba(255, 143, 30, 0.35), transparent 70%);
  filter: blur(6px); animation: pulse-glow 3.6s ease-in-out infinite;
}
@keyframes pulse-glow { 0%, 100% { opacity: 0.65; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.avatar-wrap img {
  position: relative; width: 132px; height: 132px; border-radius: 50%;
  object-fit: cover; image-rendering: pixelated;
  border: 2px solid var(--border-strong);
  filter: drop-shadow(0 8px 24px rgba(255, 110, 10, 0.35));
}
.hero h1 { font-size: clamp(34px, 6vw, 52px); color: var(--text-primary); }
.hero .subtitle { margin: 18px auto 0; max-width: 480px; color: var(--text-secondary); font-size: 17px; }

.hero-actions { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- ABOUT ---------- */
.about-card {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px;
  align-items: stretch; padding: 40px;
}
.about-portrait {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 300px; border-radius: var(--radius-m); overflow: hidden;
  background: linear-gradient(165deg, var(--bg-surface-2), var(--bg-surface-3) 60%, var(--bg-surface));
  border: 1px solid var(--border-subtle);
}
.about-info { display: flex; flex-direction: column; justify-content: center; }
.about-name { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 18px; }
.about-features { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.about-features li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-secondary); }
.about-features .feat-icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px;
  background: rgba(255, 143, 30, 0.1); border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  color: var(--ember-500); margin-top: 1px;
}
.about-features b { color: var(--text-primary); }
@media (max-width: 780px) {
  .about-card { grid-template-columns: 1fr; gap: 32px; padding: 28px; }
  .about-portrait { min-height: 240px; }
}

/* ---------- skin glow + float (used in the about portrait) ---------- */
.skin-glow {
  position: absolute; inset: 10% 15%;
  background: radial-gradient(ellipse at center, rgba(255, 143, 30, 0.28), transparent 70%);
  filter: blur(18px); animation: pulse-glow 4.2s ease-in-out infinite;
}
.about-portrait img {
  position: relative; max-width: 220px; width: 55%;
  image-rendering: pixelated;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 26px rgba(255, 143, 30, 0.25));
  animation: skin-float 5s ease-in-out infinite;
}
@keyframes skin-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .skin-glow, .about-portrait img { animation: none; }
}

/* ---------- Minecraft servery (řádkový seznam) ---------- */
.server-list { display: flex; flex-direction: column; gap: 16px; }
.server-row { position: relative; padding: 22px 26px; overflow: hidden; transition: border-color .2s ease; }
.server-row::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 90px;
  background: radial-gradient(ellipse 260px 90px at 10% 0%, rgba(255, 143, 30, 0.08), transparent 70%);
  pointer-events: none;
}
.server-row:hover { border-color: var(--border-subtle); }
.server-head { display: flex; align-items: center; gap: 16px; position: relative; }
.server-logo {
  --logo-color: var(--ember-500);
  flex-shrink: 0; width: 52px; height: 52px; border-radius: var(--radius-s);
  background: color-mix(in srgb, var(--logo-color) 16%, var(--bg-surface-2));
  border: 1px solid color-mix(in srgb, var(--logo-color) 45%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--logo-color);
  text-transform: uppercase;
}
.server-info { flex: 1; min-width: 0; }
.server-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.server-name-row h3 { font-size: 18px; }
.server-period { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); display: block; margin-top: 3px; }
.server-desc { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--border-hair); color: var(--text-secondary); font-size: 14.5px; position: relative; }

.tag {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.tag-active { color: #0d2b12; background: var(--ok); }
.tag-idle { color: #3a1c02; background: var(--ember-400); }

.server-discord-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; position: relative;
  padding: 10px 18px; border-radius: 999px;
  background: var(--bg-void); border: 1px solid var(--border-hair);
  color: var(--text-primary); font-size: 13.5px; font-weight: 600;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.server-discord-btn:hover { background: var(--bg-surface-2); border-color: var(--border-subtle); transform: translateY(-2px); }
.placeholder-note { margin-top: 22px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); text-align: center; }

@media (max-width: 560px) {
  .server-head { flex-wrap: wrap; row-gap: 12px; }
  .server-info { flex: 1 1 auto; min-width: 0; }
}

/* ---------- CTA band (contact) ---------- */
.cta-band {
  padding: 48px; border-radius: var(--radius-l);
  background: linear-gradient(135deg, var(--bg-surface-2), var(--bg-surface));
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  position: relative; overflow: hidden; text-align: left;
}
.cta-band::before {
  content: ""; position: absolute; top: -60%; right: -10%; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,143,30,0.18), transparent 70%);
}
.cta-band h3 { font-size: 24px; margin-bottom: 8px; position: relative; }
.cta-band p { color: var(--text-secondary); font-size: 15px; position: relative; }
.cta-actions { display: flex; gap: 10px; position: relative; flex-shrink: 0; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-band { flex-direction: column; text-align: center; padding: 36px 26px; } .cta-actions { justify-content: center; } }

/* ---------- footer ---------- */
.footer { padding: 48px 0 32px; border-top: 1px solid var(--border-hair); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 26px; height: 26px; border-radius: 6px; image-rendering: pixelated; }
.footer-brand .wordmark { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; color: var(--text-primary); }
.footer small { color: var(--text-muted); font-size: 13px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-hair); color: var(--text-secondary);
  transition: all .15s ease;
}
.social-row a:hover { border-color: var(--ember-500); color: var(--ember-400); background: rgba(255,143,30,0.08); }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
