/* =============== */
/*  Cisza – UI     */
/*  app.css        */
/* =============== */

:root{
  --bg: #fafafa;
  --card: #ffffff;
  --text: #141414;
  --muted: #5a5a5a;
  --muted2:#7a7a7a;
  --line: #e7e7e7;

  --accent: #111111;
  --accent2:#2a2a2a;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.06);

  --maxw: 900px;

  --pad: 22px;
  --pad2: 14px;

  --focus: 3px solid #111111;
}

/* Base reset */
*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

/* Links */
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

/* Focus (WCAG) */
:focus-visible{
  outline: var(--focus);
  outline-offset: 3px;
  border-radius: 10px;
}
button:focus-visible, select:focus-visible, a:focus-visible{
  outline: var(--focus);
}

/* Skip link */
.skip-link{
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-200%);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 999;
}
.skip-link:focus{
  transform: translateY(0);
}

/* Layout */
.topbar{
  position: sticky;
  top: 0;
  background: rgba(250,250,250,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}
.brand__link{
  font-weight: 650;
  letter-spacing: .2px;
}
.brand__sub{
  font-size: 13px;
  color: var(--muted2);
}

.today-mini{
  display: flex;
  align-items: baseline;
  gap: 8px;
  max-width: 520px;
}
.today-mini__label{
  font-size: 12px;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.today-mini__text{
  font-size: 13px;
  color: var(--muted);
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Main */
.main{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px var(--pad) 40px;
}

/* Quote card */
.quote-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 44px);
}

/* Tags */
.tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.tag{
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  background: #fcfcfc;
}

/* Quote text */
.quote-text{
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: clamp(26px, 4.2vw, 48px);
  line-height: 1.18;
  text-wrap: balance;
}

/* Empty */
.quote-text--empty{
  font-weight: 600;
  color: var(--muted);
}

/* Original */
.quote-original{
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

/* Source */
.quote-source{
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted2);
}
.quote-source__label{
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}
.quote-source__ref{
  margin-left: 6px;
  color: var(--muted);
}

/* Share */
.share{
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Buttons */
.btn{
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: transform .06s ease, border-color .2s ease, background-color .2s ease;
}
.btn:hover{
  border-color: #d6d6d6;
  text-decoration: none;
}
.btn:active{
  transform: translateY(1px);
}
.btn--primary{
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover{
  background: var(--accent2);
  border-color: var(--accent2);
}
.btn--ghost{
  background: transparent;
}

/* Controls */
.controls{
  margin-top: 16px;
}
.controls__form{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--pad2);
}
.controls__row{
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 12px;
  align-items: center;
}
.controls__label{
  font-size: 13px;
  color: var(--muted2);
}
.controls__select{
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
  min-height: 40px;
}
.controls__hint{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted2);
}

/* Cookie banner */
.cookie-banner{
  margin-top: 16px;
  border: 1px dashed #d8d8d8;
  border-radius: var(--radius);
  background: #ffffff;
  padding: 14px;
}
.cookie-banner__inner{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner__text{
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.cookie-banner__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Footer */
.footer{
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding: 18px var(--pad);
  color: var(--muted2);
}
.footer__inner{
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.footer__link{
  font-size: 13px;
  color: var(--muted2);
}
.footer__sep{
  color: #c3c3c3;
}

/* Screen-reader only */
.sr-only{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Responsive */
@media (max-width: 720px){
  .topbar__inner{
    flex-direction: column;
    align-items: stretch;
  }
  .today-mini{
    max-width: none;
  }
  .today-mini__text{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .controls__row{
    grid-template-columns: 1fr;
  }
  .btn{
    width: 100%;
    justify-content: center;
  }
  .share .btn{
    width: 100%;
  }
}

.actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
}

.action-btn .count {
  font-size: 13px;
}

.action-btn:active {
  transform: scale(0.95);
}

/* desktop – możesz pokazać tekst, jeśli chcesz */
@media (min-width: 768px) {
  .action-btn {
    width: auto;
    padding: 0 14px;
    border-radius: 22px;
  }
}
