/* =========================================================
   APP.CSS — sjednocený styl pro celý projekt
   Obsahuje: globální, homepage a register sekce
   ========================================================= */

.homepage-logo {
  position: absolute;
  top: 20%;
  left: 5%;               /* dříve např. 25% — posun víc doleva */
  transform: translateY(-50%);
  z-index: 2;
}
.homepage-logo img {
  width: 320px;            /* zvětšeno z 220px */
  height: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(0,0,0,0.7));
  opacity: 0.95;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.homepage-logo img:hover {
  transform: scale(1.05);
  opacity: 1;
}

.online-count
{
  font-size: 1.25rem;
  position: absolute;
  top: 300px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* === 1) GLOBÁLNÍ STYLY === */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #020202;
  background: #f5f5f5;
}

.bg-image {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  transform: scale(1.02);
  filter: saturate(105%) contrast(105%);
}

/* Top bar / logo */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  pointer-events: auto;
}
.brand img {
  height: 44px; width: auto; display: block;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.6));
}
.brand-fallback {
  font-weight: 800; letter-spacing: 0.02em; font-size: 22px; opacity: .9;
}

/* Centered card (hero) */
.hero {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(560px, 92vw);
  padding: clamp(20px, 4vw, 40px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
  text-align: center;
  color: #000;
}

/* Buttons */
.actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700; letter-spacing: .04em;
  text-decoration: none;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid transparent;
  min-width: 180px;
  cursor: pointer;
}

/* === UNIVERZÁLNÍ HOVER EFEKT PRO VŠECHNA TLAČÍTKA === */
.btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.25);
  box-shadow:
    0 0 12px rgba(66,133,244,0.8),
    0 0 28px rgba(66,133,244,0.7),
    0 0 60px rgba(66,133,244,0.6);
  transition: all 0.25s ease-in-out;
}

.btn:active {
  transform: translateY(0);
  filter: brightness(1);
  box-shadow:
    0 0 8px rgba(66,133,244,0.6),
    0 0 18px rgba(66,133,244,0.4);
}

.btn-primary {
  background: rgba(66, 133, 244, 0.92);
  border-color: rgba(66,133,244,0.6);
  color: #fff;
  box-shadow: 0 8px 30px rgba(66,133,244,0.35);
}
.btn-primary:hover { background: rgba(66, 133, 244, 1); }

.btn-secondary {
  background: rgba(26, 32, 44, 0.8);
  border-color: rgba(255,255,255,0.08);
  color: #dbe2ef;
}
.btn-secondary:hover { background: rgba(26, 32, 44, 0.92); }

.title {
  margin: 0 0 8px 0;
  font-weight: 800;
  letter-spacing: .02em;
}

.subtitle {
  margin: 0 0 7px 0;
  opacity: 0.9;
  font-weight: 500;
}

/* === ÚPRAVA HERO TEXTU (nadpis + odstavec) === */
body.home-page .p-hero .hero-inner h1 {
  font-size: 3.75rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 14px rgba(0,0,0,0.9);
}

body.home-page .p-hero .hero-inner .subtitle {
  font-size: 1.25rem; 
  line-height: 1.8;
  max-width: 1000px;
  margin: 0 auto 2rem auto;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

/* === 2) HOMEPAGE SPECIFICKÉ STYLY === */
body.home-page, html.home-page {
  background: #f4f4f4;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.6;
}

.stack { height: 400vh; position: relative; }

.panel {
  position: sticky;
  top: 0;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.panel::before {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.15),
    rgba(255,255,255,0.25)
  );
}

.hero-inner {
  text-align: center;
  z-index: 2;
  position: relative;
}

.hero-inner h1 { font-size: 3.75rem; margin-bottom: 1.25rem; }
.hero-inner .subtitle {
  font-size: 1.25rem;
  line-height: 1.8;
  opacity: 0.95;
  max-width: 900px;
  margin: 0 auto;
}

/* === HOMEPAGE PANELY (nové pořadí) === */

/* === 1) PROJECT INTRODUCTION === */
.p-4 
{ 
  background-image: url('/img/bg_isles.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 8vh 0;
}

.project-inner
{
  background: none;
  text-align: center;
  color: #fff;
  padding: 3rem;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  max-width: 900px;
  width: 90%;
  margin: 0 auto;
}

.project-title
{
  font-size: 3.75rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

.project-text
{
  font-size: 1.25rem;
  color: #eee;
  line-height: 1.8;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

/* === 2) HERO === */
.p-hero 
{ 
  font-size: 1.25rem;
  background-image: url('/img/bg_hero.jpg');
}
.p-hero::after
{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.1));
  z-index: 1;
}

/* === 3) WHY US === */
.p-3 
{ 
  background-image: url('/img/bg_commu.jpg');
}
.whyus-inner
{  
  padding: 3.75rem;
  text-align: center;
  color: #fff;
  max-width: 900px;
  width: 90%;
}
.whyus-title
{
  font-size: 3.75rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}
.whyus-text
{
  font-size: 1.25rem;
  color: #eee;
  line-height: 1.5;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

/* === 4) LATEST NEWS === */
.p-2
{ 
  font-size: 1.25rem;
  background-image: url('/img/df_4.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 8vh 0;
}

.p-2 .news-inner
{
  padding: 3.75rem;
  text-align: center;
  color: #fff;
  max-width: 900px;
  width: 90%;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

.p-2 .news-title
{
  font-size: 3.75rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

.p-2 .news-text
{
  font-size: 1.25rem;
  color: #eee;
  line-height: 1.5;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
} 

/* === ZBYTEK === */

.home-copy {
  width: 100vw;
  margin: 0;
  padding: 4rem 0;
  background: linear-gradient(to bottom, rgba(172, 51, 199, 0.85), #000);
  color: #121212;
  text-align: center;
  box-sizing: border-box;
}

.home-copy h2 { font-size: 3.75rem; margin-bottom: 1rem; }
.home-copy p { font-size: 1.25rem; line-height: 1.8; }

h1, h2, h3, h4, h5, h6, p, span, a, li, label, div { color: inherit; }

/* === 3) REGISTER PAGE STYLY === */
body.register-page {
  background-image: url('/img/emerald_2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
}

.register {
  background: rgba(255,255,255,0.9);
  max-width: 560px;
  width: 100%;
  margin: 40px auto;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-family: system-ui, Arial, sans-serif;
}

.register h1 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.25rem;
}

.register .form { display: grid; gap: 14px; }
.register label { display: grid; gap: 6px; font-weight: 600; }

.register input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}
.register input:focus {
  border-color: #00b894;
  box-shadow: 0 0 0 3px rgba(0,184,148,0.2);
  outline: none;
}

.register .btn {
  padding: 12px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg,#00b894,#2ecc71);
  transition: background 0.3s, transform 0.1s;
}
.register .btn:hover {
  background: linear-gradient(90deg,#2ecc71,#00b894);
  transform: translateY(-1px);
}

.flash {
  max-width: 560px;
  margin: 12px auto;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}
.flash-success {
  background: #e9f9ef;
  border: 1px solid #b8e7c8;
  color: #207a3b;
}
.flash-error {
  background: #ffefef;
  border: 1px solid #ffc8c8;
  color: #a30000;
}

.muted {
  color: #555;
  font-size: 1.25rem;
  text-align: center;
  margin-top: 15px;
}

/* =========================================================
   PAGE COLOR CONFIGURATION
   Každá stránka má vlastní třídu na <body>
   ========================================================= */

/* === Defaultní barvy (fallback) === */
body {
  color: #222;
  background-color: #f5f5f5;
}

/* === Homepage (vylepšený kontrast a čitelnost) === */
body.home-page,
body.home-page h1,
body.home-page h2,
body.home-page h3,
body.home-page p,
body.home-page span,
body.home-page li,
body.home-page a {
  color: #ffffff !important;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.8),
    0 2px 10px rgba(0, 0, 0, 0.9);
}

body.home-page a:hover {
  color: #cce0ff;
}

/* === Register Page === */
body.register-page {
  color: #222;
}
body.register-page a {
  color: #007bff;
}

/* === Login Page === */
body.login-page {
  color: #333;
}
body.login-page a {
  color: #5a8fff;
}

/* =========================================================
   USER CONTROL PANEL (UCP)
   ========================================================= */

body.ucp-page {
  background: url('/img/ucp_horde.png') no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #1e1e1e;
  margin: 0;
  padding: 0;
}

/* === HLAVNÍ OBSAH PANELU === */
body.ucp-page .container.ucp {
  max-width: 960px;
  margin: 3rem auto;
  padding: 2.5rem 3rem;
  border-radius: 14px;

  /* Jemný „mléčné sklo“ efekt s teplejším tónem */
  background: rgba(240, 240, 230, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* === NADPISY === */
body.ucp-page h1,
body.ucp-page h2,
body.ucp-page h3 {
  color: #111;
  margin-top: 0;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
}

body.ucp-page h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

/* === TEXT A ODKAZY === */
body.ucp-page p,
body.ucp-page td,
body.ucp-page th,
body.ucp-page strong {
  color: #222;
  text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}

body.ucp-page a {
  color: #0044aa;
  text-decoration: none;
}
body.ucp-page a:hover {
  text-decoration: underline;
}

/* === TABULKA POSTAV === */
body.ucp-page table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(206, 204, 204, 0.85);
  box-shadow: 0 3px 25px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

body.ucp-page th {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(206, 204, 204, 0.85);
  box-shadow: 0 3px 25px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

body.ucp-page td {
  padding: 12px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.ucp-page tr:nth-child(even) {
  background: none;
}

/* === IKONY === */
body.ucp-page img {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
  vertical-align: middle;
}

/* === Fixní šířky sloupců v tabulce postav === */
body.ucp-page table {
  table-layout: fixed; /* důležité, aby respektoval pevné šířky */
  width: 100%;
}

body.ucp-page th:nth-child(1),
body.ucp-page td:nth-child(1) {
  width: 10%; /* Name */
}

body.ucp-page th:nth-child(2),
body.ucp-page td:nth-child(2) {
  width: 10%; /* Level */
}

body.ucp-page th:nth-child(3),
body.ucp-page td:nth-child(3) {
  width: 10%; /* Race */
}

body.ucp-page th:nth-child(4),
body.ucp-page td:nth-child(4) {
  width: 10%; /* Class */
}

/* === TLAČÍTKA === */
body.ucp-page .btn-secondary {
  background: rgba(48, 48, 48, 0.85);
  color: #ffffff;
  border: 1px solid rgba(0,0,0,0.5);
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  transition: background 0.25s, transform 0.1s, box-shadow 0.25s;
}

body.ucp-page .btn-secondary:hover {
  background: rgba(65, 65, 65, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

/* === ODDĚLENÍ ČÁR === */
body.ucp-page hr {
  border: none;
  height: 1px;
  background: rgba(160, 160, 160, 0.5);
  margin: 2rem 0;
}

/* Footer */
.site-footer {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  font-size: 1.25rem;
  opacity: 0.9;
  z-index: 1000;
}

.back-button {
  display: inline-block;
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08),
              0 0 6px rgba(0, 0, 0, 0.7);
}

form[action="https://www.paypal.com/donate"] .btn {
  display: inline-block;
  width: 260px;
  padding: 14px 0;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border: none;
  border-radius: 12px;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}
form[action="https://www.paypal.com/donate"] .btn:hover {
  background: linear-gradient(180deg, #60a5fa, #1d4ed8);
  transform: translateY(-2px);
}

/* CTA section (homepage buttons) */
.cta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.cta .btn,
.cta form .btn {
  min-width: 220px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.cta .btn:hover {
  background: linear-gradient(180deg, #60a5fa, #1d4ed8);
  transform: translateY(-2px);
}

/* Fix aby Donate (form) měl stejnou šířku a flex chování jako ostatní tlačítka */
.cta form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Donutí tlačítka být v jedné řadě v Project Introduction */
.p-4 .cta {
    flex-wrap: nowrap !important;
}

body.howto-page .back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 99999;
    color: #fff !important;
}

/* How-To page – bílé písmo s tmavým stínem */
body.howto-page {
    font-family: 'Inter', sans-serif;
    color: #ffffff;      /* bílé písmo */
    line-height: 1.6;
}

/* Nadpisy */
body.howto-page h1,
body.howto-page h2,
body.howto-page h3 {
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 1);   /* černý stín */
}

/* Odstavce a položky listu */
body.howto-page p,
body.howto-page li {
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 1);   /* černý stín */
    font-size: 1.15rem;
}

/* Seznam */
body.howto-page ol {
    padding-left: 20px;
}

