:root {
  --red: #D73232;
  --dark: #1E1E1E;
  --paper: #FBF6F0;
  --radius: 16px;
  --shadow: 0 10px 25px rgba(0, 0, 0, .08);
  --muted: #666;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  color: var(--dark);
  background: #fff;
  line-height: 1.6;
}
h1, h2, h3 { font-family: Montserrat, sans-serif; margin: 0; }

/* HERO (shared) */
.hero {
  position: relative;
  color: #fff;
  padding: 125px 20px 50px 20px;
  text-align: center;
  background-position: center;
  background-size: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.hero-content { position: relative; z-index: 1; }
.brand { display:flex; flex-direction:column; align-items:center; gap:16px; }
.brand svg { width:56px; height:56px; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.06); } }

.tagline { font-size: 1.25rem; opacity: .95; margin-top: 8px; }
.sub { opacity: .85; font-size: .95rem; font-style: italic; margin-top: 4px; }

.cta-row { display:flex; flex-wrap:wrap; gap:14px; justify-content:center; margin-top:28px; }
.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease;
  background: #fff;
  color: var(--red);
  box-shadow: var(--shadow);
  text-decoration: none;
  display: inline-block;
}
.btn:hover { transform: translateY(-2px); }

/* CONTENT UNDER HERO */
.content {
  background: var(--paper);
  padding: 22px 18px 40px 18px;
}
.layout { max-width: 1000px; margin: 0 auto; padding: 0 18px; }
.grid { display:grid; grid-template-columns: 1fr 360px; gap:20px; align-items:start; margin-top:20px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }

.card { background:#fff; border-radius:var(--radius); padding:16px; box-shadow:var(--shadow); }

/* Centering container used on the login page — limit width so card is not too wide */
.center-box {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  padding: 8px; /* small internal spacing so card doesn't touch edges on very small screens */
}

/* About / pills */
.about { background: var(--paper); padding: 20px 20px; text-align: center; }
.pill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 30px; max-width: 900px; margin-left: auto; margin-right: auto; }
.pill { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.pill strong { display: block; font-weight: 700; margin-bottom: 4px; }

/* Q/A */
.qa { margin-bottom:14px; border-radius:12px; padding:14px; background:#fff; box-shadow:0 6px 18px rgba(0,0,0,0.04); }
.qa .q { font-weight:600; margin-bottom:8px; }
.qa .meta { color:var(--muted); font-size:.9rem; margin-bottom:8px; }
.qa .a { background:#f8f8f8; padding:10px; border-radius:10px; }

/* Forms */
/* Include password inputs so they share the same styling as text/email/textarea */
form .field { margin-bottom:12px; text-align:left; }
label { display:block; font-weight:600; margin-bottom:6px; font-size:.95rem; }
input[type="text"], input[type="email"], input[type="password"], textarea {
  width:100%;
  padding:10px;
  border:1px solid #eee;
  border-radius:8px;
  font-size:1rem;
  background: #fff;
  color: var(--dark);
}
/* consistent focus style for all inputs */
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus {
  outline: none;
  border-color: rgba(215,50,50,0.9); /* a subtle red accent matching theme */
  box-shadow: 0 0 0 4px rgba(215,50,50,0.06);
}
textarea { min-height:120px; resize:vertical; }

.small { font-size:.9rem; color:var(--muted); }

.flash { background:#f0ffef; border:1px solid #c6f0c6; padding:10px; border-radius:8px; color:#064; margin-bottom:12px; }

footer { background:#0f0f0f; color:#eee; padding:28px 0; text-align:center; font-size:.9rem; margin-top:0; }

/* Footer login - subdued, less prominent (still accessible) */

.footer-login {
  color: rgba(255,255,255,0.55);
  font-size: .88rem;
  text-decoration: none;
  margin-left:4px;
}
.footer-login:hover { color: rgba(255,255,255,0.8); }

/* Hide logout link visually for logged-in users (present in DOM but not visible) */
.footer-logout { display: none !important; }

/* misc */
.login-box { max-width:420px; margin:28px auto; background:#fff;padding:18px;border-radius:12px;box-shadow:0 8px 30px rgba(0,0,0,0.06) }
.endora-panel, .endora-panel.bottom { display:none !important; visibility:hidden !important; }
/* --- Ensure hero H1 is white (targeted class) --- */
.hero .hero-title,
.hero .brand .hero-title,
.header-hero .hero-title {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

/* Fallback: pokud by někde bylo přidáno agressivní pravidlo, můžeme zvýšit specificitu */
.hero .hero-title { color: #fff !important; }

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  flex-wrap: wrap;
}
.pagination .btn {
  text-decoration: none;
}
.pagination .btn-active {
  background: var(--red);
  color: #fff;
}
.pagination .btn-muted {
  background: #eee;
  color: var(--dark);
}
.pagination .btn-muted:hover {
  background: #ddd;
}

/* Recordings grid - compact layout */
@media (max-width: 768px) {
  .recordings-grid {
    grid-template-columns: 1fr !important;
  }
}