/* BarmanTalks.com — warstwa wizualna "Pro" (czytelność, ikony SVG, grafiki stref, przyciski mosiężne).
   Ładowana PO style.css. Zero inline CSS. Ikony: /static/assets/icons/*.svg (maski CSS). */

:root {
  --text: #f4efe4;
  --text-soft: #e0dacd;
  --muted: #b9c2bb;
  --border: #2f4136;
  --surface: #14201a;
  --bg-elevated: #0f1813;
  --brass-1: #f1cb82;
  --brass-2: #d49a45;
  --brass-3: #a8691f;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  --wood: url("../assets/bg-wood.jpg");
}

html { font-size: 17px; }

body {
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .hero-heading, .card-heading, .post-title, .brand-title { text-wrap: balance; }

/* ===== IKONY (maski SVG) ===== */
.ico,
[class*="ico-"]::before,
.btn-beer::before, .btn-comment-beer::before, .btn-comments-toggle::before,
.btn-bartender::before, .btn-bouncer::before, .btn-bouncer-submit::before,
.sort-pill::before, #trigger-night-shift-btn::before, #trigger-backup-btn::before,
#toggle-bar-audio-btn::before, #open-user-modal-btn::before,
.search-icon::before, .btn-secondary[href^="mailto"]::before,
.badge-hot::before, .badge-vip::before {
  content: "";
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: none;
  background-color: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
  vertical-align: -0.2em;
}

.btn-beer::before, .btn-comment-beer::before, .btn-comments-toggle::before,
.btn-bartender::before, .btn-bouncer::before, .btn-bouncer-submit::before,
.sort-pill::before, #trigger-night-shift-btn::before, #trigger-backup-btn::before,
#toggle-bar-audio-btn::before, #open-user-modal-btn::before,
.btn-secondary[href^="mailto"]::before,
.badge-hot::before, .badge-vip::before { margin-right: 0.5em; }

.btn-beer, .btn-comment-beer { --ico: url("../assets/icons/beer.svg"); }
.btn-comments-toggle { --ico: url("../assets/icons/chat.svg"); }
.btn-bartender { --ico: url("../assets/icons/bartender.svg"); }
.btn-bouncer, .btn-bouncer-submit { --ico: url("../assets/icons/shield.svg"); }
#trigger-night-shift-btn { --ico: url("../assets/icons/moon.svg"); }
#trigger-backup-btn { --ico: url("../assets/icons/archive.svg"); }
#open-user-modal-btn { --ico: url("../assets/icons/userplus.svg"); }
#toggle-bar-audio-btn { --ico: url("../assets/icons/volume.svg"); }
#toggle-bar-audio-btn[aria-pressed="false"] { --ico: url("../assets/icons/volume-off.svg"); }
.btn-secondary[href^="mailto"] { --ico: url("../assets/icons/mail.svg"); }
.badge-hot { --ico: url("../assets/icons/flame.svg"); }
.badge-vip { --ico: url("../assets/icons/key.svg"); }
.sort-pill[data-sort-mode="hot"] { --ico: url("../assets/icons/flame.svg"); }
.sort-pill[data-sort-mode="newest"] { --ico: url("../assets/icons/bolt.svg"); }
.sort-pill[data-sort-mode="comments"] { --ico: url("../assets/icons/chat.svg"); }
.sort-pill[data-sort-mode="entropy"] { --ico: url("../assets/icons/dice.svg"); }
.search-icon { font-size: 0; --ico: url("../assets/icons/search.svg"); }
.search-icon::before { font-size: 1rem; }

.category-icon { font-size: 0; width: 44px; height: 44px; border-radius: 12px; }
.category-icon::before { content: ""; width: 24px; height: 24px; background-color: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.ico-door { --ico: url("../assets/icons/door.svg"); }
.ico-pub { --ico: url("../assets/icons/pub.svg"); }
.ico-mordownia { --ico: url("../assets/icons/mordownia.svg"); }
.ico-kraftowe { --ico: url("../assets/icons/kraftowe.svg"); }
.ico-vip { --ico: url("../assets/icons/vip.svg"); }

/* ===== TOPBAR ===== */
.topbar { background: linear-gradient(180deg, rgba(8, 12, 10, 0.98), rgba(12, 19, 15, 0.94)); border-bottom: 1px solid var(--border-strong); }
.brand-logo { width: 56px; height: 56px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)); }
.brand-title { font-size: 1.55rem; background: linear-gradient(180deg, var(--brass-1), var(--brass-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-kicker { font-size: 0.72rem; color: var(--brass-2); }
.brand-tagline { font-size: 0.82rem; color: var(--muted); max-width: 46ch; }
.nav-pill { font-size: 0.95rem; padding: 0.55rem 1rem; color: var(--text-soft); }
.nav-pill:hover { background: rgba(212, 154, 69, 0.16); color: var(--brass-1); }
.patron-switcher-label { font-size: 0.72rem; color: var(--muted); }
.form-control-compact { font-size: 0.92rem; padding: 0.5rem 0.7rem; }

/* ===== PRZYCISKI (mosiądz) ===== */
.btn-primary, .btn-secondary, .btn-outline-compact, .btn-beer, .btn-comments-toggle, .btn-bartender,
.btn-bouncer, .btn-comment-beer, .btn-bouncer-submit, .sort-pill, .ranking-tab, .chip-filter {
  display: inline-flex; align-items: center; justify-content: center; line-height: 1.2;
}

.btn-primary, .btn-bouncer-submit {
  font-size: 1rem; padding: 0.8rem 1.4rem; border-radius: 12px; font-weight: 800; letter-spacing: 0.01em;
  background: linear-gradient(180deg, var(--brass-1) 0%, var(--brass-2) 55%, var(--brass-3) 100%);
  color: #1a1209; text-shadow: 0 1px 0 rgba(255, 235, 190, 0.55);
  border: 1px solid #f8dc9b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(90, 50, 10, 0.45), 0 6px 16px rgba(0, 0, 0, 0.5);
}
.btn-primary:hover { background: linear-gradient(180deg, #ffe0a0 0%, #e2a850 55%, #b9772a 100%); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(90, 50, 10, 0.6); }
.btn-bouncer-submit { background: linear-gradient(180deg, #e8805f, #cf6544 55%, #9f4529); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.35); border-color: #f09a7e; }

.btn-secondary {
  font-size: 0.98rem; padding: 0.78rem 1.3rem; border-radius: 12px; font-weight: 700; color: var(--brass-1);
  background: linear-gradient(180deg, rgba(212, 154, 69, 0.16), rgba(212, 154, 69, 0.05));
  border: 1.5px solid rgba(212, 154, 69, 0.65);
}
.btn-secondary:hover { background: rgba(212, 154, 69, 0.26); color: #fff; }

.btn-outline-compact { font-size: 0.9rem; padding: 0.52rem 0.85rem; border-radius: 10px; color: var(--brass-1); border: 1.5px solid rgba(212, 154, 69, 0.55); background: rgba(212, 154, 69, 0.07); }

.btn-beer, .btn-comments-toggle, .btn-bartender, .btn-bouncer { font-size: 0.95rem; padding: 0.6rem 1rem; border-radius: 11px; font-weight: 700; }
.btn-beer { background: linear-gradient(180deg, var(--brass-1), var(--brass-2)); color: #1a1209; border: 1px solid #f8dc9b; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 10px rgba(0,0,0,.4); }
.btn-beer:hover { background: linear-gradient(180deg, #ffe3a8, #e6ae55); color: #000; transform: translateY(-1px); }
.btn-comments-toggle { color: var(--text); background: rgba(255, 255, 255, 0.05); border: 1.5px solid #3b5143; }
.btn-comments-toggle:hover { border-color: var(--brass-2); }
.btn-bartender { color: #bfdcf5; background: rgba(99, 149, 199, 0.18); border: 1.5px solid rgba(99, 149, 199, 0.6); }
.btn-bouncer { color: #ffb29c; border: 1.5px solid rgba(207, 101, 68, 0.65); background: rgba(207, 101, 68, 0.1); }
.btn-comment-beer { font-size: 0.85rem; padding: 0.35rem 0.7rem; border-radius: 9px; color: var(--brass-1); border: 1.5px solid rgba(212, 154, 69, 0.5); }
.sort-pill { font-size: 0.9rem; padding: 0.55rem 0.9rem; border-radius: 10px; color: var(--text-soft); }
.ranking-tab { font-size: 0.85rem; padding: 0.55rem 0.6rem; }
.chip-filter { font-size: 0.86rem; padding: 0.4rem 0.8rem; }
.sort-pill::before { width: 1.05em; height: 1.05em; margin-right: 0.4em; }

/* ===== HERO ===== */
.hero-inner {
  background:
    radial-gradient(circle at 15% 0%, rgba(212, 154, 69, 0.18), transparent 28rem),
    linear-gradient(135deg, rgba(8, 12, 10, 0.55), rgba(8, 12, 10, 0.92)),
    var(--wood) center / 520px;
  padding: 2.6rem; gap: 2.6rem; border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.hero-heading { font-size: clamp(2.3rem, 4.2vw, 3.7rem); line-height: 1.08; background: linear-gradient(180deg, #fff6df, var(--brass-1) 60%, var(--brass-2)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hero-lead { font-size: 1.1rem; color: var(--text-soft); line-height: 1.7; max-width: 60ch; }
.eyebrow-pill { font-size: 0.78rem; padding: 0.4rem 0.95rem; }
.hero-stats-bar { gap: 0.9rem; }
.hero-stat-item { padding: 0.9rem 1rem; border-radius: 14px; background: rgba(8, 12, 10, 0.72); border: 1px solid var(--border-strong); }
.hero-stat-item strong { font-size: 1.65rem; font-family: var(--serif); color: var(--brass-1); line-height: 1.1; }
.hero-stat-item span { font-size: 0.85rem; color: var(--muted); }
.hero-door-frame { max-width: 420px; height: 330px; border: 2px solid var(--brass-2); box-shadow: 0 0 0 6px rgba(8, 12, 10, 0.8), 0 0 0 7px var(--border-strong), 0 20px 50px rgba(0, 0, 0, 0.7); }
.hero-door-caption { font-size: 0.78rem; }

/* ===== KARTY I TYPOGRAFIA ===== */
.card { background: linear-gradient(180deg, rgba(20, 32, 26, 0.97), rgba(14, 22, 18, 0.98)); border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem; }
.kicker-label { font-size: 0.78rem; letter-spacing: 0.16em; color: var(--brass-2); }
.card-heading { font-size: 1.5rem; line-height: 1.25; margin-bottom: 0.5rem; }
.card-subtext { font-size: 0.97rem; color: var(--text-soft); }
.layout-grid { grid-template-columns: 340px minmax(0, 1fr) 350px; gap: 1.6rem; }
.form-label { font-size: 0.82rem; color: var(--text-soft); letter-spacing: 0.06em; }
.form-control { font-size: 1rem; padding: 0.8rem 0.95rem; border: 1.5px solid #34493c; background: #0c140f; }
.form-control:focus { border-color: var(--brass-2); box-shadow: 0 0 0 3px rgba(212, 154, 69, 0.2); }
.form-textarea { min-height: 120px; }
.no-reels-reminder { font-size: 0.88rem; color: var(--muted); }
.composer-wordmark { height: 44px; }

/* ===== STREFY — KARTY Z GRAFIKAMI ===== */
.category-btn {
  position: relative; overflow: hidden; align-items: center; gap: 0.85rem;
  padding: 0.95rem 1rem; min-height: 86px; border: 1.5px solid var(--border); border-radius: 14px;
  background-size: cover; background-position: center;
}
.category-btn[data-zone-filter="all"] { background-image: linear-gradient(90deg, rgba(8, 12, 10, 0.94), rgba(8, 12, 10, 0.7)), url("../assets/bar.jpg"); }
.category-btn[data-zone-filter="pub"] { background-image: linear-gradient(90deg, rgba(8, 12, 10, 0.93) 30%, rgba(8, 12, 10, 0.45)), url("../assets/zone-pub.jpg"); }
.category-btn[data-zone-filter="mordownia"] { background-image: linear-gradient(90deg, rgba(8, 12, 10, 0.93) 30%, rgba(8, 12, 10, 0.45)), url("../assets/zone-mordownia.jpg"); }
.category-btn[data-zone-filter="kraftowe"] { background-image: linear-gradient(90deg, rgba(8, 12, 10, 0.93) 30%, rgba(8, 12, 10, 0.45)), url("../assets/zone-kraftowe.jpg"); }
.category-btn[data-zone-filter="vip"] { background-image: linear-gradient(90deg, rgba(8, 12, 10, 0.93) 30%, rgba(8, 12, 10, 0.45)), url("../assets/zone-vip.jpg"); }
.category-btn:hover, .category-btn.is-active { border-color: var(--brass-2); box-shadow: 0 0 0 1px var(--brass-2), 0 8px 22px rgba(0, 0, 0, 0.5); transform: translateY(-1px); }
.category-btn.is-active::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--brass-1), var(--brass-3)); }
.category-name { font-size: 1.02rem; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); }
.category-desc { font-size: 0.84rem; color: #d9d4c8; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9); line-height: 1.4; }
.icon-amber { background: rgba(8, 12, 10, 0.75); }
.icon-rust { background: rgba(8, 12, 10, 0.75); }
.icon-sage { background: rgba(8, 12, 10, 0.75); }
.icon-blue { background: rgba(8, 12, 10, 0.75); }
.badge-vip-small { font-size: 0.72rem; }
.subtables-label { font-size: 0.8rem; color: var(--muted); }

/* ===== STATUS BYWALCA ===== */
.status-username { font-size: 1.7rem; }
.status-rank-title { font-size: 1rem; }
.status-perk { font-size: 0.92rem; color: var(--text-soft); }
.vip-status-box { font-size: 0.9rem; }
.conditioning-note { font-size: 0.88rem; color: var(--text-soft); line-height: 1.55; }
.rank-pill { font-size: 0.9rem; }

/* ===== POSTY ===== */
.posts-stack { gap: 1.35rem; }
.post-card { padding: 1.5rem 1.6rem; background: linear-gradient(180deg, rgba(22, 35, 28, 0.98), rgba(15, 24, 19, 0.98)); border-radius: 18px; }
.post-card:hover { border-color: var(--brass-2); }
.accent-border-amber { border-left-width: 5px; }
.accent-border-rust { border-left-width: 5px; }
.accent-border-sage { border-left-width: 5px; }
.accent-border-blue { border-left-width: 5px; }
.post-title { font-size: 1.55rem; line-height: 1.25; margin-bottom: 0.7rem; color: #fff; }
.post-content { font-size: 1.05rem; line-height: 1.75; color: var(--text-soft); margin-bottom: 1.1rem; }
.author-avatar { width: 44px; height: 44px; font-size: 1.05rem; border-radius: 12px; }
.author-name { font-size: 1rem; }
.author-rank-tag { font-size: 0.78rem; }
.post-timestamp { font-size: 0.82rem; color: var(--muted); }
.badge-hot, .badge-vip, .badge-zone, .badge-table { font-size: 0.78rem; padding: 0.25rem 0.7rem; }
.badge-hot, .badge-vip { display: inline-flex; align-items: center; }
.badge-hot::before, .badge-vip::before { width: 0.95em; height: 0.95em; margin-right: 0.35em; }
.patrons-strip { font-size: 0.88rem; padding: 0.6rem 0.85rem; }
.post-actions-bar { padding-top: 1rem; gap: 0.8rem; }
.post-actions-left { gap: 0.65rem; }

.comments-drawer { margin-top: 1.1rem; padding-top: 1.1rem; }
.comment-item { padding: 0.9rem 1.05rem; border-radius: 13px; background: #0e1712; }
.comment-header { font-size: 0.88rem; }
.comment-author-avatar { width: 30px; height: 30px; font-size: 0.82rem; border-radius: 8px; }
.comment-rank { font-size: 0.78rem; }
.comment-time { font-size: 0.78rem; }
.comment-text { font-size: 1rem; line-height: 1.65; color: var(--text); }
.comment-input { font-size: 0.97rem; padding: 0.7rem 0.9rem; }
.bounced-notice { font-size: 0.92rem; }

/* ===== PRAWY PANEL ===== */
.user-item { padding: 0.75rem 0.9rem; }
.user-item-name { font-size: 1rem; }
.user-item-title { font-size: 0.8rem; }
.user-points-val { font-size: 1rem; }
.user-given-val { font-size: 0.78rem; }
.user-rank-pos { font-size: 0.85rem; }
.ledger-item { padding: 0.75rem 0.9rem; font-size: 0.88rem; }
.ledger-sub { font-size: 0.8rem; }
.rule-box { padding: 0.95rem 1.05rem; }
.rule-code { font-size: 0.74rem; }
.rule-title { font-size: 1.02rem; }
.rule-body { font-size: 0.9rem; color: var(--text-soft); line-height: 1.6; }
.night-gazette-box { font-size: 0.9rem; line-height: 1.6; }
.backroom-actions { gap: 0.7rem; }
.btn-full { padding: 0.8rem 1rem; }
.vip-curtain-title { font-size: 1.9rem; }
.vip-curtain-desc { font-size: 1rem; }
.vip-curtain-hint { font-size: 0.92rem; }

/* ===== MODALE ===== */
.modal-card { max-width: 560px; padding: 1.9rem; }
.modal-title { font-size: 1.6rem; }
.modal-subtitle { font-size: 0.95rem; color: var(--text-soft); }
.modal-target-label { font-size: 0.95rem; }
.bouncer-reason-copy strong { font-size: 0.98rem; }
.bouncer-reason-copy small { font-size: 0.85rem; color: var(--muted); }
.bt-toast { font-size: 1rem; padding: 1rem 1.25rem; }
.site-footer-inner { font-size: 0.9rem; color: var(--muted); }

@media (max-width: 1180px) {
  .layout-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; padding: 1.6rem; }
  .hero-door-frame { max-width: 100%; height: 260px; }
  .hero-stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .topbar {
    padding: 0.5rem 0.75rem;
  }
  .topbar-inner {
    gap: 0.6rem;
  }
  .main-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    padding-bottom: 2px;
    gap: 0.35rem;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar {
    display: none;
  }
  .nav-pill {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    flex-shrink: 0;
  }
  .patron-switcher {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
  }
  .patron-switcher-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: 100%;
  }
  .patron-switcher-controls .form-control-compact {
    flex: 1 1 180px;
  }
}

@media (max-width: 640px) {
  html { font-size: 16px; }
  .form-row-grid { grid-template-columns: 1fr; }
  .brand-tagline { display: none; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-title { font-size: 1.25rem; }
  .topbar { padding: 0.4rem 0.5rem; }
}
