/* ═══════════════════════════════════════════════════════
   FOURTH WING – BASGIATH WAR COLLEGE
   SunLight CMS 8  |  style.css
   Fonty: Cinzel Decorative, Cinzel, IM Fell English
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Cinzel+Decorative:wght@700&family=IM+Fell+English:ital@0;1&display=swap');

:root {
  --gold:         #c8a84b;
  --gold-light:   #e8d08a;
  --dark-bg:      #0a0a0f;
  --panel-bg:     rgba(10, 8, 5, 0.82);
  --panel-border: rgba(180, 140, 60, 0.35);
  --text-light:   #e8dcc8;
  --text-muted:   #a09070;
  --nav-shadow:   #5a3e10;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--dark-bg);
  color: var(--text-light);
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
  /* Pro vlastní pozadí celé stránky odkomentuj:
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-attachment: fixed; */
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(80, 40, 0, 0.6) 0%, transparent 65%),
    radial-gradient(ellipse at 0% 60%, rgba(120, 20, 10, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, #0f0c08 0%, #080508 60%, #05030a 100%);
  background-attachment: fixed;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); text-decoration: underline; }

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
  position: relative;
  width: 100%;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  /* Pro obrázek hradu odkomentuj:
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center top; */
  background:
    radial-gradient(ellipse at 50% 20%, rgba(100, 60, 10, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(140, 20, 0, 0.3) 0%, transparent 50%),
    linear-gradient(180deg, #1a0f04 0%, #0d0804 50%, #080508 100%);
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0)   40%,
    rgba(5,3,2,0.8) 85%,
    rgba(5,3,2,1)   100%);
  pointer-events: none;
  z-index: 1;
}

.dragon {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 45%;
  max-width: 520px;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
}
.dragon img { width: 100%; height: 100%; object-fit: contain; }
.dragon-left  { left: 0;  background-position: bottom left; }
.dragon-right { right: 0; background-position: top right; }

.site-title-wrap {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  animation: fadeDown 1.2s ease both;
}

.crown-icon {
  display: block;
  color: var(--gold);
  font-size: 1.8rem;
  letter-spacing: 0.5em;
  text-shadow: 0 0 20px rgba(200,168,75,0.8);
  margin-bottom: 0.25rem;
  animation: glowPulse 3s ease-in-out infinite;
}

.site-title {
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
}
.site-title a {
  color: var(--gold-light);
  text-decoration: none;
  text-shadow:
    0 0 30px rgba(200,168,75,0.7),
    0 2px 8px rgba(0,0,0,0.9),
    0 0 60px rgba(200,120,30,0.4);
  letter-spacing: 0.08em;
}
.site-title a:hover { color: #fff; text-decoration: none; }

.site-subtitle {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.75rem, 2vw, 1rem);
  color: var(--gold);
  letter-spacing: 0.35em;
  margin-top: 0.4rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

/* ── NAVIGACE ───────────────────────────────────────── */
.main-nav { padding: 0.6rem 1rem; }

.main-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav li a,
.main-nav li span {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: clamp(0.7rem, 1.4vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: #3a2200;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  background: linear-gradient(180deg, #e8d5a0 0%, #cda856 40%, #b8963c 65%, #9a7c2a 100%);
  border: 2px solid var(--nav-shadow);
  box-shadow: 0 2px 6px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,245,210,0.5);
  transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
}

.main-nav li a:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  text-decoration: none;
  color: #3a2200;
  box-shadow: 0 4px 12px rgba(0,0,0,0.8), 0 0 18px rgba(200,168,75,0.4);
}

.main-nav li.active > a,
.main-nav li.current > a {
  background: linear-gradient(180deg, #f0e0b0 0%, #d4b060 40%, #c09840 65%, #a88030 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 0 20px rgba(220,180,80,0.5);
}

/* ── LAYOUT ─────────────────────────────────────────── */
.site-wrapper {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
  align-items: start;
}

/* Pokud není sidebar, obsah zabere celou šířku */
.site-wrapper:not(:has(.sidebar)) {
  grid-template-columns: 1fr;
}

/* ── SIDEBAR ─────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1rem; }

.sidebar > div {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.sidebar h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(200,168,75,0.3);
  letter-spacing: 0.06em;
}

/* ── OBSAH ───────────────────────────────────────────── */
.content-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 2rem 2.2rem 1.8rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.7), inset 0 1px 0 rgba(200,168,75,0.1);
  position: relative;
}

.content-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 2rem; right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.content-panel h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
  text-shadow: 0 0 15px rgba(200,168,75,0.4);
  letter-spacing: 0.05em;
}
.content-panel h2 { font-family: 'Cinzel', serif; font-size: 1.25rem; color: var(--gold); margin: 1.5rem 0 0.75rem; }
.content-panel h3 { font-family: 'Cinzel', serif; font-size: 1.05rem; color: var(--gold); margin: 1.2rem 0 0.5rem; }
.content-panel p  { margin-bottom: 1rem; }
.content-panel img { max-width: 100%; height: auto; border-radius: 4px; }

.content-panel table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.content-panel th, .content-panel td { padding: 0.5rem 0.8rem; border: 1px solid var(--panel-border); }
.content-panel th { background: rgba(200,168,75,0.1); font-family: 'Cinzel', serif; font-size: 0.85rem; color: var(--gold); }

/* SunLight systémové třídy */
.message { padding: 0.75rem 1rem; border-radius: 4px; margin-bottom: 1rem; }
.message.success { background: rgba(50,120,50,0.25); border: 1px solid #3a8a3a; }
.message.error   { background: rgba(160,30,30,0.25); border: 1px solid #8b1a1a; }
.message.warning { background: rgba(160,120,20,0.25); border: 1px solid #8a7a1a; }

input[type="text"], input[type="email"], input[type="password"], textarea, select {
  background: rgba(20,15,5,0.8);
  border: 1px solid var(--panel-border);
  color: var(--text-light);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-family: 'IM Fell English', serif;
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(200,168,75,0.25);
}

button, input[type="submit"], .btn {
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  background: linear-gradient(180deg, #3a8a3a 0%, #2d6e2d 50%, #245224 100%);
  border: 1px solid #1a4a1a;
  border-radius: 4px;
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover, input[type="submit"]:hover { background: linear-gradient(180deg, #48a048 0%, #3a8a3a 50%, #2d6e2d 100%); }

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  border-top: 1px solid rgba(180,140,60,0.12);
}

.footer-links { list-style: none; display: flex; justify-content: center; gap: 1.5rem; padding: 0; margin: 0; }
.footer-links li a { color: var(--text-muted); }
.footer-links li a:hover { color: var(--gold); }

/* ── ANIMACE ─────────────────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(200,168,75,0.8); }
  50%       { text-shadow: 0 0 35px rgba(220,190,100,1), 0 0 60px rgba(200,120,30,0.5); }
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .site-wrapper { grid-template-columns: 1fr; padding: 0 1rem; }
  .site-header  { min-height: 240px; }
  .main-nav li a { padding: 0.5rem 0.8rem; font-size: 0.7rem; }
  .content-panel { padding: 1.2rem 1rem; }
}
