/* ============================================================
   Bohemian Worms — style.css
   Sdílený základ pro všechny stránky webu
   Načíst jako první: <link rel="stylesheet" href="/style.css">
   ============================================================ */

:root {
  --gold:         #c9a84c;
  --gold-dim:     #9a7a34;
  --gold-bright:  #e8c46a;
  --teal:         #1faa77;
  --teal-dim:     #157a56;
  --teal-bright:  #2fd494;
  --black:        #0a0a0a;
  --surface:      #111111;
  --surface2:     #1a1a1a;
  --text:         #d8d8d8;
  --text-muted:   #888888;
  --border:       #2a2a2a;
  --font-mono:    'Share Tech Mono', 'Courier New', monospace;
  --font-display: 'Orbitron', var(--font-mono);
  --max-width:    1600px;
  --padding-x:    clamp(12px, 3vw, 40px);
  --text-sm:   clamp(13px, 1.1vw, 15px);
  --text-base: clamp(15px, 1.3vw, 18px);
  --text-md:   clamp(17px, 1.5vw, 21px);
  --text-lg:   clamp(20px, 1.8vw, 26px);
  --text-xl:   clamp(24px, 2.2vw, 34px);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-mono);
  font-size: clamp(16px, 1.6vw, 28px);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--black);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; color: var(--gold); letter-spacing: 0.04em; }
h1 { font-size: var(--text-xl); }
h2 { font-size: var(--text-lg); }
h3 { font-size: var(--text-md); }
h4 { font-size: clamp(16px, 1.6vw, 28px); }

p { margin-bottom: 0.85em; font-size: clamp(16px, 1.6vw, 28px); line-height: 1.65; }

a { color: var(--teal); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--teal-bright); text-decoration: underline; }

.container,.bw-container { width: 100%; max-width: var(--max-width); margin-left: auto; margin-right: auto; padding-left: var(--padding-x); padding-right: var(--padding-x); }
#main,.main,.page-content { max-width: var(--max-width); margin-left: auto; margin-right: auto; padding: 0 var(--padding-x); }

nav,.bw-nav,#nav { position: static !important; display: flex !important; justify-content: flex-start !important; align-items: center; flex-wrap: wrap; gap: 0; background: var(--surface); border-bottom: 1px solid var(--gold-dim); padding: 0 var(--padding-x); width: 100%; }
nav a,.bw-nav a,#nav a { display: inline-block; padding: 10px 14px; font-family: var(--font-display); font-size: var(--text-sm); letter-spacing: 0.06em; color: var(--text-muted); border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; white-space: nowrap; }
nav a:hover,.bw-nav a:hover,#nav a:hover { color: var(--gold); border-bottom-color: var(--gold-dim); text-decoration: none; }
nav a.active,.bw-nav a.active,#nav a.active { color: var(--gold); border-bottom-color: var(--gold); }

.linkbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px var(--padding-x); background: var(--surface2); border-bottom: 1px solid var(--border); }
.linkbar-cube { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; font-size: 16px; background: var(--surface); border: 1px solid var(--gold-dim); color: var(--gold); border-radius: 3px; transition: background 0.15s, border-color 0.15s; text-decoration: none; }
.linkbar-cube:hover { background: var(--gold-dim); border-color: var(--gold); color: var(--black); text-decoration: none; }

@media (max-width: 600px) {
  .linkbar-cube { width: 54px; height: 54px; font-size: 24px; }
  .linkbar { gap: 10px; padding: 10px 12px; }
}

table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
th { font-family: var(--font-display); font-size: var(--text-sm); color: var(--gold); letter-spacing: 0.05em; text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--gold-dim); background: var(--surface); }
td { padding: 5px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:hover td { background: var(--surface2); }

.btn,button.bw,input[type="submit"].bw { display: inline-block; padding: 7px 18px; font-family: var(--font-display); font-size: var(--text-sm); letter-spacing: 0.06em; background: transparent; border: 1px solid var(--gold-dim); color: var(--gold); border-radius: 3px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.btn:hover,button.bw:hover,input[type="submit"].bw:hover { background: var(--gold-dim); color: var(--black); }
.btn-teal { border-color: var(--teal-dim); color: var(--teal); }
.btn-teal:hover { background: var(--teal-dim); color: var(--black); }

input[type="text"],input[type="password"],input[type="search"],textarea,select { font-family: var(--font-mono); font-size: var(--text-sm); background: var(--surface2); border: 1px solid var(--border); color: var(--text); padding: 6px 10px; border-radius: 3px; outline: none; transition: border-color 0.15s; }
input[type="text"]:focus,input[type="password"]:focus,input[type="search"]:focus,textarea:focus,select:focus { border-color: var(--teal-dim); }

.gold { color: var(--gold); }
.teal { color: var(--teal); }
.muted { color: var(--text-muted); }
.text-sm { font-size: var(--text-sm); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.hide-desktop { display: none; }
.hide-mobile { display: block; }

@media (max-width: 768px) {
  .hide-mobile { display: none; }
  .hide-desktop { display: block; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ------------------------------------------------------------
   OPRAVY — karty, linkbar, kill feed
   Používáme 'a.trida' aby pravidlo bylo silnější než 'a:hover'
   ------------------------------------------------------------ */
a.fc, a.fc:hover, a.fc:visited, a.fc:active, a.fc:focus {
  text-decoration: none !important;
  color: inherit !important;
}

a.lb, a.lb:hover, a.lb:visited, a.lb:active, a.lb:focus {
  text-decoration: none !important;
}

a.kf-row, a.kf-row:hover, a.kf-row:visited, a.kf-row:active {
  text-decoration: none !important;
  color: inherit !important;
}