/* style.css */
:root{
  --pad: 14px;
  --radius: 0px;

  /* DARK UI */
  --bg: #000000;
  --surface: #000000;
  --border: #ffffff;
  --text: #f2f2f3;
  --muted: rgba(242,242,243,.68);
  --btnbgr: #ffffff;
  --btntext: #000000;

  --max: 760px;
}

*{ box-sizing: border-box; }

body{
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.topbar__title{
  font-size: 16px;
  margin: 0;
  letter-spacing: .2px;
  font-weight: 700;
}

.btn{
  border: 1px solid var(--border);
  background: var(--btnbgr);
  color: var(--btntext);
  border-radius: 0;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
}

.btn:active{
  transform: translateY(1px);
}

.container{
  padding: var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.list{
  padding-bottom: 12px;
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin: 12px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.35);
  page-break-inside: avoid;
}

.card__head{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card__title{
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  text-transform: uppercase;
}

.card__meta{
  font-size: 12px;
  color: var(--muted);
}

.card__msg{
  margin-top: 10px;
  line-height: 1.5;
  font-size: 14px;
}

.card__actions{
  margin-top: 12px;
}

.btn--link{
  display: inline-block;
  text-decoration: none;
  animation: none; /* CTA tlačítka jsou statická */
}

/* stavy */
.status{
  padding: 14px;
  border-radius: var(--radius);
}

.status--empty{
  background: var(--surface);
  border: 1px dashed var(--border);
  color: var(--muted);
}

.status--error{
  background: #2a1010;
  border: 1px solid #5a2222;
  color: #ffd0d0;
}

/* load more */
.load-more-wrap{
  display: flex;
  justify-content: center;
  padding: 10px 0 18px;
}

/* footer */
.footer{
  margin-top: 18px;
  padding: 10px 0 24px;
  font-size: 12px;
  color: var(--muted);
}

/* Jemný pohyb jen pro tlačítko "Zobrazit další" */
.btn--loadmore{
  animation: hop 1s ease-in-out 1s infinite both;
  transform-origin: center;
}

@keyframes hop{
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}

@media (prefers-reduced-motion: reduce){
  .btn--loadmore{ animation: none; }
}

/* PRINT */
@media print{
  .topbar{ display:none; }
  #loadMoreWrap{ display:none !important; }

  body{
    background:#fff;
    color:#000;
  }

  .container{
    max-width:none;
    margin:0;
    padding: 10mm;
  }

  .card{
    background:#fff;
    border:1px solid #000;
    box-shadow:none;
  }

  .btn{
    color:#000;
    border-color:#000;
  }

  .footer{
    color:#000;
    opacity:.75;
  }
}