/* ============================================
   KOLOTOČÁŘ — style.css
   Brutalistická verze — diagonal hero, staggered cards
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* --- Reset & Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: #F0EBE0;
  font-family: 'IBM Plex Mono', monospace;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* --- CSS Variables --- */
:root {
  --paper:   #F0EBE0;
  --ink:     #0A0A0A;
  --orange:  #FF3D00;
  --mid:     #2A2A2A;
  --muted:   #888888;
  --light:   #D0CAC2;
}

/* ============================================
   MAIN WRAP
   ============================================ */
.wrap {
  background: var(--paper);
  overflow: hidden;
}

/* ============================================
   NAV — split personality
   ============================================ */
.nav {
  display: flex;
  height: 50px;
  border-bottom: 4px solid var(--ink);
}

.nav-half-a {
  background: var(--ink);
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-right: 4px solid var(--ink);
  flex-shrink: 0;
}

.nav-logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--paper);
  user-select: none;
}

.nav-logo span {
  color: var(--orange);
}

.nav-half-b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  padding: 0 22px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links li a {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #aaa;
  cursor: pointer;
  transition: color .1s;
}

.nav-links li a:hover {
  color: var(--ink);
}

.nav-issue {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: #ccc;
  font-style: italic;
}

.nav-admin-link {
  color: #ccc;
  transition: color .1s;
}

.nav-admin-link:hover {
  color: var(--orange);
}

.admin-dot {
  color: var(--orange);
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============================================
   HERO — diagonal slash layout
   ============================================ */
.hero {
  position: relative;
  min-height: 320px;
  border-bottom: 4px solid var(--ink);
  display: grid;
  grid-template-columns: 55% 45%;
}

.hero-l {
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hero-overline {
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 16px;
}

.mega-title {
  font-family: 'Archivo Black', sans-serif;
  line-height: 0.82;
  letter-spacing: -0.04em;
  position: relative;
}

.mega-title .line1 {
  font-size: clamp(52px, 9vw, 96px);
  color: var(--ink);
  display: block;
}

.mega-title .line2 {
  font-size: clamp(52px, 9vw, 96px);
  color: var(--orange);
  display: block;
  transform: translateX(8px);
}

.mega-title .line3 {
  font-size: clamp(52px, 9vw, 96px);
  color: var(--ink);
  display: block;
  transform: translateX(-4px);
}

.hero-desc {
  font-size: 11px;
  color: #777;
  line-height: 1.9;
  max-width: 340px;
  margin-top: 20px;
}

/* Right side — stacked black boxes */
.hero-r {
  background: var(--ink);
  border-left: 4px solid var(--ink);
  display: flex;
  flex-direction: column;
}

.hero-r-box {
  flex: 1;
  padding: 20px 22px;
  border-bottom: 1px solid #1E1E1E;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-r-box:last-child {
  border-bottom: none;
}

.hrb-label {
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 6px;
}

.hrb-val {
  font-family: 'Archivo Black', sans-serif;
  font-size: 32px;
  color: var(--orange);
  line-height: 1;
}

.hrb-sub {
  font-size: 9px;
  color: #444;
  margin-top: 2px;
  letter-spacing: 0.08em;
}

.tw-area {
  flex: 1;
}

/* Hero Board — nástěnka */
.hero-board-main {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 22px;
}

.hero-board-headline {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--orange);
  line-height: 1.2;
  margin-bottom: 10px;
  border-left: 3px solid var(--orange);
  padding-left: 12px;
}

.hero-board-text {
  font-size: 12px;
  color: #ccc;
  line-height: 1.9;
}

.tw-txt {
  font-size: 11px;
  color: #666;
  font-style: italic;
  line-height: 1.9;
}

.tw-cur {
  display: inline-block;
  width: 2px;
  height: .9em;
  background: var(--orange);
  vertical-align: middle;
  margin-left: 1px;
  animation: bc .75s step-end infinite;
}

@keyframes bc {
  50% { opacity: 0; }
}

/* DIAGONAL DIVIDER — pure CSS */
.hero-slash {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(55% - 2px);
  width: 4px;
  background: var(--ink);
  transform: skewX(-2deg);
  z-index: 2;
}

/* ============================================
   RED BAND — full bleed ticker
   ============================================ */
.red-band {
  background: var(--orange);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  padding: 0;
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
}

.red-band-in {
  display: flex;
  white-space: nowrap;
  animation: rb 16s linear infinite;
}

.rb-item {
  font-family: 'Archivo Black', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0 30px;
  border-right: 2px solid rgba(0,0,0,0.18);
  height: 38px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.rb-item.rb-clickable {
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.rb-item.rb-clickable:hover {
  background-color: var(--ink);
  color: var(--orange);
}

/* Zastavit animaci při hover nad tickerem */
.red-band:hover .red-band-in {
  animation-play-state: paused;
}

@keyframes rb {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   BOOKS — overlapping cards, staggered
   ============================================ */
.books-zone {
  padding: 32px 28px;
  border-bottom: 4px solid var(--ink);
  position: relative;
}

.books-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.books-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ddd;
}

.books-stack {
  display: flex;
  gap: 0;
  position: relative;
  flex-wrap: wrap;
}

/* Každá karta je trochu jinak nakloněna */
.bk {
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: 0;
  width: calc(33.33% + 8px);
  margin-right: -8px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .2s, z-index .2s;
}

.bk:nth-child(1) {
  transform: rotate(-1.2deg);
  z-index: 1;
}

.bk:nth-child(2) {
  transform: rotate(0.6deg);
  z-index: 2;
  margin-top: 12px;
}

.bk:nth-child(3) {
  transform: rotate(-0.4deg);
  z-index: 3;
  margin-top: 6px;
}

.bk:hover {
  transform: rotate(0deg) translateY(-6px) !important;
  z-index: 10;
}

.bk-top {
  background: var(--ink);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bk-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: 11px;
  color: var(--paper);
  letter-spacing: 0.06em;
}

.bk-yr {
  font-size: 9px;
  color: #555;
  letter-spacing: 0.18em;
}

.bk-cover {
  padding: 20px 14px 14px;
  border-bottom: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bk-genre {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aaa;
}

.bk-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(18px, 3vw, 28px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.bk:nth-child(2) .bk-cover {
  background: var(--orange);
}

.bk:nth-child(2) .bk-title {
  color: var(--ink);
}

.bk:nth-child(2) .bk-genre {
  color: rgba(0,0,0,0.4);
}

/* Oranžové karty #4 a #6 */
.bk:nth-child(4) .bk-cover,
.bk:nth-child(6) .bk-cover {
  background: var(--orange);
}

.bk:nth-child(4) .bk-title,
.bk:nth-child(6) .bk-title {
  color: var(--ink);
}

.bk:nth-child(4) .bk-genre,
.bk:nth-child(6) .bk-genre {
  color: rgba(0,0,0,0.4);
}

.bk-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bk-excerpt {
  font-size: 11px;
  color: #666;
  font-style: italic;
  line-height: 1.75;
  flex: 1;
}

.bk-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1.5px solid #e0d8cc;
  font-size: 9px;
  color: #aaa;
}

.badge {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 7px;
}

.b-y {
  background: var(--ink);
  color: var(--paper);
}

.b-n {
  border: 1.5px solid #ccc;
  color: #aaa;
}

.b-txt {
  background: var(--orange);  
  color: var(--paper);
}

/* ============================================
   BOTTOM — 3-col editorial
   ============================================ */
.bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 4px solid var(--ink);
}

.bc {
  padding: 24px 22px;
  border-right: 3px solid var(--ink);
}

.bc:last-child {
  border-right: none;
}

.bc-label {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0d8cc;
}

/* Citát — big type */
.big-q {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(15px, 2.2vw, 21px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}

.big-q em {
  font-style: normal;
  background: var(--orange);
  color: var(--ink);
  padding: 0 3px;
}

.q-by {
  font-size: 9px;
  color: #aaa;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* About */
.about-txt {
  font-size: 11px;
  color: #777;
  line-height: 1.9;
}

/* Newsletter */
.nl-h {
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 6px;
}

.nl-s {
  font-size: 10px;
  color: #aaa;
  line-height: 1.7;
  margin-bottom: 14px;
}

.nl-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nl-email {
  background: var(--ink);
  border: none;
  color: var(--paper);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  padding: 9px 12px;
  outline: none;
  width: 100%;
}

.nl-email::placeholder {
  color: #444;
}

.nl-btn {
  background: var(--orange);
  border: none;
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 9px 12px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background .08s, color .08s;
}

.nl-btn:hover {
  background: var(--ink);
  color: var(--orange);
}

#newsletter-msg {
  margin-top: 8px;
  font-size: 10px;
  font-style: italic;
}

#newsletter-msg.success {
  color: var(--orange);
}

#newsletter-msg.error {
  color: #c00;
}

/* ============================================
   FOOTER
   ============================================ */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px;
}

.foot-l {
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  color: #ccc;
  letter-spacing: 0.08em;
}

.foot-l em {
  color: var(--orange);
  font-style: normal;
}

.foot-r {
  font-size: 9px;
  color: #ccc;
  letter-spacing: 0.12em;
}

/* ============================================
   DETAIL MODAL — neobrutalistický, čistý styl
   ============================================ */
.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(240, 235, 224, 0.98);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  backdrop-filter: blur(4px);
}

.detail-overlay.active {
  opacity: 1;
  visibility: visible;
}

.detail-modal {
  background: #fff;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 4px 32px rgba(10, 10, 10, 0.12);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.detail-overlay.active .detail-modal {
  transform: translateY(0);
}

.detail-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #ccc;
  cursor: pointer;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 10;
}

.detail-close:hover {
  color: var(--orange);
}



.detail-content {
  padding: 48px 40px;
}

.detail-meta {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 12px;
}

.detail-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.detail-body {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.9;
  color: #444;
  white-space: pre-wrap;
  min-height: 400px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 12px;
}

.detail-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid #e0e0e0;
}

.page-nav-btn {
  background: #fff;
  border: 2px solid #ddd;
  color: #444;
  font-size: 18px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'IBM Plex Mono', monospace;
}

.page-nav-btn:hover:not(:disabled) {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.page-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-indicator {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #666;
  letter-spacing: 0.05em;
  min-width: 120px;
  text-align: center;
}

/* ============================================
   PAGE OVERLAY — slide-in stránky pro navigaci
   ============================================ */
.page-overlay {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 1500;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.page-overlay.active {
  transform: translateX(0);
}

.page-container {
  min-height: 100vh;
  padding: 60px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.page-close {
  position: fixed;
  top: 24px;
  right: 24px;
  background: var(--ink);
  border: none;
  color: var(--paper);
  font-size: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 100;
}

.page-close:hover {
  background: var(--orange);
  color: var(--ink);
}

.page-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(36px, 8vw, 72px);
  line-height: 0.9;
  color: var(--ink);
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.page-section {
  padding: 24px 0;
}

.page-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

.page-text {
  font-size: 13px;
  line-height: 1.9;
  color: #555;
}

.page-quote {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 16px;
  font-style: normal;
}

.page-author {
  font-size: 11px;
  color: #999;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Page list items */
.page-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-item {
  border: 2px solid #ddd;
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fff;
}

.page-item:hover {
  border-color: var(--orange);
  background: #fafafa;
}

.page-item-meta {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 8px;
}

.page-item-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-item-excerpt {
  font-size: 12px;
  line-height: 1.7;
  color: #666;
  font-style: italic;
}

.page-item-status {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.page-item-status.available {
  color: var(--orange);
}

.page-item-status.soon {
  color: #999;
}

.page-item.locked {
  opacity: 0.75;
  background: #f9f9f9;
}

.page-item.locked:hover {
  opacity: 1;
}

.page-item-locked {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
}

.locked-content {
  padding: 32px 0;
}

.register-form input[type="email"]:focus {
  outline: none;
  border-color: var(--orange);
}

.register-form button:hover {
  background: #d63d00 !important;
}

/* ============================================
   ADMIN LOGIN MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.88);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--paper);
  border: 4px solid var(--ink);
  width: 100%;
  max-width: 380px;
  transform: translateY(8px);
  transition: transform 0.2s;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-header {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--ink);
}

.modal-title {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.modal-close {
  background: none;
  border: none;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  transition: color 0.1s;
}

.modal-close:hover {
  color: var(--orange);
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: var(--ink);
  border: 2px solid var(--ink);
  color: var(--paper);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.1s;
}

.form-input:focus {
  border-color: var(--orange);
}

.login-error {
  font-size: 10px;
  color: #cc3333;
  min-height: 1.4em;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.btn {
  background: var(--orange);
  border: 2px solid var(--orange);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.08s, color 0.08s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--ink);
  color: var(--orange);
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  border: 2px solid #444;
  color: var(--paper);
}

.btn-ghost:hover {
  background: #444;
  color: var(--paper);
}

/* ============================================
   ADMIN DASHBOARD
   ============================================ */
#admin-dashboard {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 500;
  overflow-y: auto;
  display: none;
}

#admin-dashboard.active {
  display: block;
}

.dashboard-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: 48px;
  border-bottom: 3px solid var(--ink);
  background: var(--ink);
}

.dashboard-brand {
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  padding: 0 20px;
  color: var(--orange);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  border-right: 1px solid #222;
  white-space: nowrap;
}

.dashboard-actions {
  display: flex;
  height: 100%;
}

.dashboard-actions button {
  border: none;
  border-left: 1px solid #222;
  background: transparent;
  color: #888;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0 16px;
  cursor: pointer;
  height: 100%;
  transition: background 0.08s, color 0.08s;
  white-space: nowrap;
}

.dashboard-actions button:hover {
  background: #222;
  color: var(--paper);
}

.dashboard-actions button.btn-accent {
  color: var(--orange);
}

.dashboard-actions button.btn-accent:hover {
  background: var(--orange);
  color: var(--ink);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  height: calc(100vh - 48px);
}

.dash-sidebar {
  border-right: 3px solid var(--ink);
  overflow-y: auto;
  background: var(--paper);
}

.dash-sidebar-label {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 16px 8px;
  border-bottom: 1.5px solid var(--ink);
}

.dash-nav-item {
  padding: 12px 16px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: 0.5px solid #D0CAC2;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: color 0.08s, border-color 0.08s, background 0.08s;
}

.dash-nav-item:hover {
  color: var(--ink);
  background: #E8E3DB;
}

.dash-nav-item.active {
  color: var(--ink);
  border-left-color: var(--orange);
  background: #E8E3DB;
  font-weight: 700;
}

.dash-main {
  overflow-y: auto;
  padding: 24px;
}

.dash-section {
  display: none;
}

.dash-section.active {
  display: block;
}

.dash-section-title {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--ink);
}

.dash-section code {
  background: rgba(232, 73, 15, 0.15);
  color: var(--orange);
  padding: 2px 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  border-radius: 2px;
}

.qe-field {
  margin-bottom: 16px;
}

.qe-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.qe-input, .qe-textarea, .qe-select {
  width: 100%;
  background: var(--ink);
  border: 2px solid var(--ink);
  color: var(--paper);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  padding: 8px 10px;
  outline: none;
  transition: border-color 0.1s;
}

.qe-input:focus, .qe-textarea:focus, .qe-select:focus {
  border-color: var(--orange);
}

.qe-textarea {
  min-height: 80px;
  resize: vertical;
}

.qe-select {
  cursor: pointer;
}

.json-editor {
  width: 100%;
  min-height: 420px;
  background: var(--ink);
  border: 2px solid var(--ink);
  color: #a8cc8c;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  line-height: 1.8;
  padding: 14px;
  resize: vertical;
  outline: none;
  transition: border-color 0.1s;
}

.json-editor:focus {
  border-color: var(--orange);
}

.editor-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.editor-status {
  font-size: 10px;
  color: var(--muted);
  flex: 1;
  text-align: right;
  letter-spacing: 0.1em;
}

.editor-status.saved {
  color: var(--orange);
  font-weight: 700;
}

.editor-status.error {
  color: #cc3333;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: #D0CAC2;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--orange);
}

/* ============================================
   RESPONSIVITA
   ============================================ */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-r {
    border-left: none;
    border-top: 4px solid var(--ink);
  }
  .hero-slash {
    display: none;
  }
  .bottom {
    grid-template-columns: 1fr;
  }
  .bc {
    border-right: none;
    border-bottom: 3px solid var(--ink);
  }
  .bc:last-child {
    border-bottom: none;
  }
  .books-stack {
    flex-direction: column;
  }
  .bk {
    width: 100%;
    margin-right: 0;
    margin-bottom: 16px;
  }
  .bk:nth-child(1), .bk:nth-child(2), .bk:nth-child(3) {
    transform: rotate(0);
    margin-top: 0;
  }
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .dash-sidebar {
    display: none;
  }
  
  /* Detail modal responsive */
  .detail-content {
    padding: 32px 24px;
  }
  .detail-close {
    top: 12px;
    right: 12px;
    font-size: 24px;
    width: 32px;
    height: 32px;
  }
  .detail-share {
    top: 12px;
    right: 52px;
    padding: 6px 12px;
    font-size: 10px;
  }
  
  /* Page overlay responsive */
  .page-container {
    padding: 48px 24px 60px;
  }
  .page-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .page-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
  animation: blink 1.2s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================
   HERO
   ============================================ */
#hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
  border-bottom: var(--border);
}

.hero-left {
  padding: 32px;
  border-right: var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-eyebrow {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(52px, 9vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.01em;
}

.hero-title-accent {
  display: block;
  color: var(--orange);
  font-size: clamp(68px, 12vw, 124px);
}

.hero-right {
  background: var(--ink);
  display: grid;
  grid-template-rows: 1fr auto auto;
}

.hero-meta {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--mid);
}

.hero-meta-row {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-meta-row span { color: #cccccc; font-weight: 700; }

.hero-typewriter-wrap {
  padding: 16px 24px;
  border-top: 1px solid var(--mid);
  border-bottom: 1px solid var(--mid);
}

.hero-tw-label {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

#hero-typewriter {
  font-size: 11px;
  color: var(--orange);
  font-style: italic;
  min-height: 3em;
  line-height: 1.7;
  border-right: 2px solid var(--orange);
  padding-right: 3px;
  animation: blink-caret 0.8s step-end infinite;
  display: block;
}
@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--orange); }
}

.hero-count {
  padding: 12px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.hero-count span {
  font-family: var(--font-title);
  font-size: 72px;
  color: var(--mid);
  line-height: 1;
}

/* ============================================
   TICKER
   ============================================ */
.ticker {
  background: var(--orange);
  height: 38px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: var(--border);
  border-top: var(--border);
}

.ticker-inner {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 22s linear infinite;
}

.ticker-item {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0 32px;
  color: var(--ink);
  border-right: 2px solid var(--ink);
  height: 38px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   MAIN GRID
   ============================================ */
.main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  border-bottom: var(--border);
  min-height: 1px;
}

/* ============================================
   SLOUPEC HEADER
   ============================================ */
.col-header {
  padding: 8px 16px;
  border-bottom: var(--border-t);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.col-header-accent { color: var(--orange); font-weight: 700; }

/* ============================================
   KNIHY
   ============================================ */
.books-col { border-right: var(--border); }

.book-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  border-bottom: var(--border-t);
  cursor: pointer;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s, transform 0.4s, background 0.08s;
}
.book-row:last-child { border-bottom: none; }
.book-row:hover { background: var(--surface); }
.book-row.visible { opacity: 1; transform: translateX(0); }

.book-num {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 40px;
  border-right: var(--border-t);
  transition: background 0.08s, color 0.08s;
  min-height: 130px;
}
.book-row:hover .book-num { background: var(--orange); color: var(--ink); }

.book-info {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.book-genre {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.book-title-text {
  font-family: var(--font-title);
  font-size: 30px;
  letter-spacing: 0.02em;
  line-height: 1;
}

.book-tagline {
  font-size: 10px;
  font-style: italic;
  color: var(--orange);
  font-weight: 700;
}

.book-excerpt {
  font-size: 11px;
  line-height: 1.75;
  color: #555;
  border-left: 2px solid var(--orange);
  padding-left: 10px;
  font-style: italic;
}

.book-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.book-status {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
}
.book-status.available { background: var(--orange); color: var(--ink); }
.book-status.soon { border: 1px solid var(--muted); color: var(--muted); }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar { display: flex; flex-direction: column; }

.sidebar-block {
  padding: 20px 18px;
  border-bottom: var(--border-t);
}
.sidebar-block:last-child { border-bottom: none; }

.sidebar-label {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.sidebar-quote {
  font-size: 11px;
  line-height: 1.8;
  color: #333;
  font-style: italic;
}
.sidebar-quote::before {
  content: '// ';
  color: var(--orange);
  font-style: normal;
  font-weight: 700;
}

.sidebar-about {
  font-size: 11px;
  line-height: 1.8;
  color: #555;
}

/* Statistiky */
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: var(--border-h);
}
.stat-row:last-child { border-bottom: none; }
.stat-key { font-size: 10px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.stat-val { font-family: var(--font-title); font-size: 26px; color: var(--orange); line-height: 1; }

/* ============================================
   NEWSLETTER (v sidebaru)
   ============================================ */
.nl-heading {
  font-family: var(--font-title);
  font-size: 20px;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.nl-sub {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.nl-form { display: flex; flex-direction: column; }

.nl-form input[type="email"] {
  background: var(--ink);
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.1s;
}
.nl-form input[type="email"]::placeholder { color: var(--muted); }
.nl-form input[type="email"]:focus { border-bottom-color: var(--orange); }

.nl-btn {
  background: var(--orange);
  border: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.08s, color 0.08s;
}
.nl-btn:hover { background: var(--ink); color: var(--orange); }

#newsletter-msg {
  font-size: 10px;
  margin-top: 8px;
  min-height: 1.2em;
  letter-spacing: 0.08em;
}
#newsletter-msg.success { color: var(--orange); }
#newsletter-msg.error   { color: #cc3333; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  border-top: var(--border);
  height: 46px;
}
.footer-cell {
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.12em;
  border-right: var(--border-t);
}
.footer-cell:last-child { border-right: none; justify-content: flex-end; }
.footer-brand { font-family: var(--font-title); font-size: 20px; color: var(--ink); margin-right: 10px; }
.footer-dot { color: var(--orange); font-size: 16px; }

/* ============================================
   ADMIN DASHBOARD
   ============================================ */
#admin-dashboard {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 500;
  overflow-y: auto;
  display: none;
}
#admin-dashboard.active { display: block; }

.dashboard-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: 48px;
  border-bottom: var(--border);
  background: var(--ink);
}

.dashboard-brand {
  font-family: var(--font-title);
  font-size: 18px;
  padding: 0 20px;
  color: var(--orange);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--mid);
  white-space: nowrap;
}

.dashboard-actions {
  display: flex;
  height: 100%;
}
.dashboard-actions button {
  border: none;
  border-left: 1px solid var(--mid);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0 16px;
  cursor: pointer;
  height: 100%;
  transition: background 0.08s, color 0.08s;
  white-space: nowrap;
}
.dashboard-actions button:hover { background: var(--mid); color: var(--paper); }
.dashboard-actions button.btn-accent { color: var(--orange); }
.dashboard-actions button.btn-accent:hover { background: var(--orange); color: var(--ink); }

.dashboard-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  height: calc(100vh - 48px);
}

.dash-sidebar {
  border-right: var(--border);
  overflow-y: auto;
  background: var(--paper);
}

.dash-sidebar-label {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 16px 8px;
  border-bottom: var(--border-t);
}

.dash-nav-item {
  padding: 12px 16px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: var(--border-h);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: color 0.08s, border-color 0.08s, background 0.08s;
}
.dash-nav-item:hover { color: var(--ink); background: var(--surface); }
.dash-nav-item.active { color: var(--ink); border-left-color: var(--orange); background: var(--surface); font-weight: 700; }

.dash-main { overflow-y: auto; padding: 24px; }

.dash-section { display: none; }
.dash-section.active { display: block; }

.dash-section-title {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: var(--border-t);
}

.qe-field { margin-bottom: 16px; }
.qe-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.qe-input, .qe-textarea, .qe-select {
  width: 100%;
  background: var(--ink);
  border: 2px solid var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 10px;
  outline: none;
  transition: border-color 0.1s;
}
.qe-input:focus, .qe-textarea:focus, .qe-select:focus { border-color: var(--orange); }
.qe-textarea { min-height: 80px; resize: vertical; }
.qe-select { cursor: pointer; }

.json-editor {
  width: 100%;
  min-height: 420px;
  background: var(--ink);
  border: 2px solid var(--ink);
  color: #a8cc8c;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  padding: 14px;
  resize: vertical;
  outline: none;
  transition: border-color 0.1s;
}
.json-editor:focus { border-color: var(--orange); }

.editor-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.editor-status {
  font-size: 10px;
  color: var(--muted);
  flex: 1;
  text-align: right;
  letter-spacing: 0.1em;
}
.editor-status.saved { color: var(--orange); font-weight: 700; }
.editor-status.error { color: #cc3333; }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--light); }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ============================================
   COOKIE CONSENT BANNER (GDPR) — Brutalist
   ============================================ */
.cookie-brutalist {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  border-bottom: 4px solid var(--orange);
  z-index: 9999;
  animation: cookieSlideDown 0.3s ease;
}

@keyframes cookieSlideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.cookie-line {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 22px;
  flex-wrap: wrap;
}

.cookie-label {
  font-family: 'Archivo Black', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--orange);
  flex-shrink: 0;
}

.cookie-msg {
  font-size: 9px;
  color: var(--paper);
  letter-spacing: 0.03em;
  flex: 1;
  min-width: 250px;
}

.cookie-info {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light);
  border-bottom: 1px solid var(--light);
  padding: 2px 0;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.cookie-info:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.cookie-action {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 8px 16px;
  border: 2px solid var(--paper);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
  flex-shrink: 0;
}

.cookie-ok {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.cookie-ok:hover {
  background: var(--paper);
  border-color: var(--paper);
}

.cookie-no:hover {
  background: var(--paper);
  color: var(--ink);
}

#cookie-settings-footer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
}

.cookie-settings-trigger {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.15em;
  padding: 8px 12px;
  background: var(--ink);
  border: 2px solid var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: all 0.15s;
}

.cookie-settings-trigger:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

/* ============================================
   ANTI-SCRAPING PROTECTION
   ============================================ */
/* Disable text selection (lze obejít, ale ztěžuje kopírování) */
.protected-content {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Watermark overlay */
.watermark-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-family: 'Archivo Black', sans-serif;
  font-size: 120px;
  color: rgba(10, 10, 10, 0.02);
  pointer-events: none;
  z-index: 9997;
  white-space: nowrap;
  user-select: none;
}

/* ============================================
   RESPONSIVITA
   ============================================ */
@media (max-width: 768px) {
  #hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .main-grid { grid-template-columns: 1fr; }
  .sidebar { border-top: var(--border); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  footer { grid-template-columns: 1fr; height: auto; }
  .footer-cell { border-right: none; border-bottom: var(--border-t); padding: 10px 16px; }
  .footer-cell:last-child { border-bottom: none; }
  
  /* Cookie banner responsivita */
  .cookie-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .cookie-msg {
    min-width: 100%;
  }
  
  .cookie-action {
    width: 100%;
  }
  
  .watermark-overlay {
    font-size: 60px;
  }
}
