/* ==================================================
   WSPOMINAWKA – BAZA WIEDZY CSS
================================================== */
:root {
  --wsp-primary: #2f2559;
  --wsp-accent: #6c5ce7;
  --wsp-bg: #f8f7fc;
  --wsp-card-bg: #fff;
  --wsp-border: #e0ddf0;
  --wsp-text: #333;
  --wsp-muted: #8888a0;
  --wsp-gap: 24px;
  --wsp-radius: 12px;
}

/* ======================================================
   NAGŁÓWEK
====================================================== */
.wsp-header {
  text-align: center;
  padding: 2rem 0 1.5rem;
}
.wsp-title {
  font-size: 2rem;
  color: var(--wsp-primary);
  margin: 0 0 .5rem;
}
.wsp-icon {
  font-size: 1.5em;
  margin-right: .3em;
  vertical-align: middle;
}
.wsp-subtitle {
  color: var(--wsp-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ======================================================
   FILTRY KATEGORII
====================================================== */
.wsp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0 0 1.5rem;
}
.wsp-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--wsp-card-bg);
  border: 1px solid var(--wsp-border);
  color: var(--wsp-text);
  font-size: .88rem;
  text-decoration: none;
  transition: all .2s;
}
.wsp-filter-btn:hover {
  border-color: var(--wsp-accent);
  color: var(--wsp-accent);
}
.wsp-filter-btn.active {
  background: var(--wsp-accent);
  border-color: var(--wsp-accent);
  color: #fff;
}
.wsp-filter-sub {
  font-size: .82rem;
  padding: 4px 10px;
}
.wsp-filter-count {
  font-size: .75rem;
  background: rgba(0,0,0,.08);
  border-radius: 10px;
  padding: 1px 6px;
}
.wsp-filter-btn.active .wsp-filter-count {
  background: rgba(255,255,255,.2);
}

/* ======================================================
   SEKCJA POLECANE
====================================================== */
.wsp-polecane {
  margin-bottom: 2rem;
}
.wsp-section-title {
  font-size: 1.2rem;
  color: var(--wsp-primary);
  margin: 0 0 1rem;
}
.wsp-polecane-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--wsp-gap);
}
.wsp-polecane-card {
  display: flex;
  flex-direction: column;
  background: var(--wsp-card-bg);
  border-radius: var(--wsp-radius);
  border: 1px solid var(--wsp-border);
  overflow: hidden;
  text-decoration: none;
  color: var(--wsp-text);
  transition: box-shadow .2s, transform .2s;
}
.wsp-polecane-card:hover {
  box-shadow: 0 4px 20px rgba(47,37,89,.12);
  transform: translateY(-2px);
}
.wsp-polecane-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.wsp-polecane-noimg {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: var(--wsp-bg);
}
.wsp-polecane-body {
  padding: 12px;
}
.wsp-polecane-kat {
  font-size: .75rem;
  color: var(--wsp-accent);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.wsp-polecane-body h3 {
  font-size: .95rem;
  margin: 4px 0 0;
  line-height: 1.3;
}
.wsp-era {
  font-size: .8rem;
  color: var(--wsp-muted);
}

/* ======================================================
   GRID WPISÓW
====================================================== */
.wsp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--wsp-gap);
}

/* ======================================================
   KARTA WPISU
====================================================== */
.wsp-card {
  display: flex;
  flex-direction: column;
  background: var(--wsp-card-bg);
  border-radius: var(--wsp-radius);
  border: 1px solid var(--wsp-border);
  overflow: hidden;
  transition: box-shadow .2s, transform .15s;
  height: 100%;
}
.wsp-card {
  text-decoration: none;
  color: inherit;
}
.wsp-card:hover {
  box-shadow: 0 6px 24px rgba(47,37,89,.10);
  transform: translateY(-2px);
}

.wsp-thumb {
  display: block;
  height: 180px;
  overflow: hidden;
  background: var(--wsp-bg);
}
.wsp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.wsp-card:hover .wsp-thumb img {
  transform: scale(1.05);
}
.wsp-thumb-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--wsp-bg), #e8e5f5);
}

.wsp-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wsp-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.wsp-kat-badge {
  font-size: .73rem;
  background: var(--wsp-accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.wsp-era-badge {
  font-size: .73rem;
  background: var(--wsp-bg);
  color: var(--wsp-muted);
  padding: 2px 8px;
  border-radius: 10px;
}
.wsp-date-badge {
  font-size: .73rem;
  color: var(--wsp-muted);
  padding: 2px 8px;
}
.wsp-source-badge {
  font-size: .73rem;
  color: var(--wsp-muted);
  font-style: italic;
}

.wsp-card-title {
  font-size: 1.05rem;
  margin: 0 0 8px;
  line-height: 1.35;
}
.wsp-card-title a {
  color: var(--wsp-primary);
  text-decoration: none;
}
.wsp-card-title a:hover {
  color: var(--wsp-accent);
}

.wsp-excerpt {
  font-size: .88rem;
  color: var(--wsp-muted);
  line-height: 1.5;
  margin: 0 0 12px;
  flex: 1;
}

/* ======================================================
   ARTYKUŁ (WPIS POJEDYNCZY) – styl produkt
====================================================== */

/* ── TOPBAR (purple hero) ── */
/* ── BREADCRUMB BAR (ciemny fiolet, jak kategoria) ── */
.wsp-breadcrumb-bar{
  background:#2f2559;
  padding:6px 0;
}
.wsp-breadcrumb-in{
  max-width:1200px;
  margin:0 auto;
  padding:0 14px;
  font-size:13px;
  color:rgba(255,255,255,.6);
}
.wsp-breadcrumb-in a{
  color:rgba(255,255,255,.8);
  text-decoration:none;
  transition:color .2s;
}
.wsp-breadcrumb-in a:hover{
  color:#fff;
  text-decoration:underline;
}
.wsp-breadcrumb-in .sep{
  margin:0 6px;
  opacity:.4;
}
.wsp-breadcrumb-current{
  color:#fff;
  font-weight:600;
}

/* ── TITLE BAR (gradient fioletowy, jak kategoria) ── */
.wsp-title-bar{
  background:linear-gradient(135deg,#3b2f7f 0%,#2f2559 100%);
  padding:24px 14px;
  position:relative;
  overflow:hidden;
}
.wsp-title-bar--photo{
  padding:24px 14px 18px;
  min-height:120px;
}
.wsp-hero-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  z-index:0;
}
.wsp-hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(47,37,89,.85) 0%,rgba(59,47,127,.7) 100%);
  z-index:1;
}
.wsp-title-bar--photo .wsp-title-in{
  position:relative;
  z-index:2;
}
.wsp-title-in{
  max-width:1200px;
  margin:0 auto;
  color:#fff;
}
.wsp-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}
.wsp-title-left{
  flex:1;
  min-width:0;
}
.wsp-title-bar h1{
  margin:0 0 8px 0;
  font-size:26px;
  line-height:1.2;
  font-weight:800;
  color:#fff;
}

/* ── GWIAZDKI ── */
.wsp-stars{
  display:flex;
  align-items:center;
  gap:2px;
  margin-bottom:10px;
}
.wsp-star{
  font-size:20px;
  color:rgba(255,255,255,.3);
  line-height:1;
  cursor:pointer;
  transition:color .15s, transform .15s;
  user-select:none;
}
.wsp-star:hover{
  transform:scale(1.15);
}
.wsp-star.filled{
  color:#fbbf24;
}
.wsp-stars-voted .wsp-star{
  cursor:default;
}
.wsp-stars-voted .wsp-star:hover{
  transform:none;
}
.wsp-stars-note{
  margin-left:8px;
  font-size:13px;
  font-weight:600;
  color:rgba(255,255,255,.7);
}
.wsp-stars-note small{
  font-weight:400;
  opacity:.7;
}

/* ── BADGE (na ciemnym tle) ── */
.wsp-topbar-meta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.wsp-topbar-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 12px;
  border-radius:999px;
  font-weight:600;
  font-size:12px;
  white-space:nowrap;
}
.wsp-topbar-badge.accent{
  background:rgba(255,255,255,.18);
  color:#fff;
  border:1px solid rgba(255,255,255,.25);
}
.wsp-topbar-badge.light{
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.2);
  color:rgba(255,255,255,.85);
}
.wsp-topbar-badge.light svg{
  opacity:.85;
  stroke:rgba(255,255,255,.8);
}

/* ── SHARE BUTTONS ── */
.wsp-share-buttons{
  flex-shrink:0;
  display:flex;
  align-items:center;
  gap:8px;
}
.wsp-share-label{
  font-size:12px;
  font-weight:600;
  color:rgba(255,255,255,.6);
  margin-right:4px;
}
.wsp-share-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:50%;
  background:rgba(255,255,255,.15);
  color:#fff;
  border:1px solid rgba(255,255,255,.2);
  cursor:pointer;
  transition:all .2s;
  text-decoration:none;
}
.wsp-share-btn:hover{
  background:rgba(255,255,255,.25);
  transform:translateY(-1px);
}
.wsp-share-fb:hover{ background:#1877f2; border-color:#1877f2; }
.wsp-share-tw:hover{ background:#000; border-color:#000; }
.wsp-share-copy.copied{
  background:#22c55e;
  border-color:#22c55e;
}

/* ── PASEK STATYSTYK ── */
.wsp-stats-bar{
  background:linear-gradient(135deg,#3b2f7f 0%,#2f2559 40%,#4a3d99 100%);
  color:#fff;
}
.wsp-stats-inner{
  display:flex;
  align-items:center;
  justify-content:center;
  max-width:1200px;
  margin:0 auto;
  padding:10px 14px;
  flex-wrap:wrap;
  gap:0;
}
.wsp-stats-item{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
}
.wsp-stats-icon{
  display:flex;
  align-items:center;
  opacity:.85;
}
.wsp-stats-text{
  display:flex;
  align-items:baseline;
  gap:5px;
}
.wsp-stats-value{
  font-size:14px;
  font-weight:700;
}
.wsp-stats-label{
  font-size:12px;
  opacity:.7;
  font-weight:400;
}
.wsp-stats-sep{
  width:1px;
  height:24px;
  background:linear-gradient(transparent 5%,rgba(255,255,255,.2) 50%,transparent 95%);
  margin:0 4px;
}

/* ── WRAPPER ── */
.wsp-wrapper{
  max-width:1200px;
  margin:0 auto;
  padding:28px 20px 40px;
}

/* ── MAIN GRID ── */
.wsp-main-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:28px;
  align-items:start;
}
.wsp-content-col{
  min-width:0;
}

/* ── TABS ── */
.wsp-tabs{
  display:flex;
  gap:4px;
  margin-bottom:24px;
  border-bottom:2px solid #eee;
  padding-bottom:0;
  overflow-x:auto;
}
.wsp-tab{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 20px;
  border:none;
  background:transparent;
  color:#666;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  transition:all .2s;
  border-bottom:3px solid transparent;
  margin-bottom:-2px;
  white-space:nowrap;
  font-family:inherit;
}
.wsp-tab svg{
  flex-shrink:0;
  opacity:.6;
  transition:opacity .2s;
}
.wsp-tab:hover{
  color:#3b2f7f;
  background:rgba(59,47,127,.04);
}
.wsp-tab:hover svg{
  opacity:.8;
}
.wsp-tab.active{
  color:#3b2f7f;
  border-bottom-color:#3b2f7f;
}
.wsp-tab.active svg{
  opacity:1;
  color:#3b2f7f;
}

/* TAB PANELS */
.wsp-tab-panel{
  display:none;
}
.wsp-tab-panel.active{
  display:block;
  animation:wspFadeIn .3s ease;
}
@keyframes wspFadeIn{
  from{ opacity:0; transform:translateY(6px); }
  to{ opacity:1; transform:translateY(0); }
}

/* ── CARD ── */
.wsp-card{
  background:#fff;
  border-radius:16px;
  padding:24px;
  box-shadow:0 4px 24px rgba(0,0,0,.06);
  margin-bottom:24px;
}

/* Summary box */
.wsp-summary-box{
  background:#f8f7fc;
  border-left:4px solid var(--wsp-accent);
  padding:16px 20px;
  border-radius:0 12px 12px 0;
  margin-bottom:20px;
  font-size:15px;
  line-height:1.6;
  color:#444;
}
.wsp-summary-box p{ margin:0; }

/* Description content */
.wsp-description-content{
  font-size:15px;
  line-height:1.7;
  color:#444;
}
.wsp-description-content h2,
.wsp-description-content h3{
  color:#222;
  margin-top:24px;
}
.wsp-description-content p{
  margin:0 0 1em;
}
.wsp-description-content img{
  max-width:100%;
  height:auto;
  border-radius:10px;
  margin:12px 0;
}

.wsp-empty-state{
  text-align:center;
  color:#999;
  font-size:15px;
  padding:30px 20px;
  font-style:italic;
}

/* Tags grid */
.wsp-tags-grid{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.wsp-tag-pill{
  display:inline-block;
  padding:8px 16px;
  background:#f8f7fc;
  border:1px solid #e0ddf0;
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  color:#3b2f7f;
  transition:all .2s;
}
.wsp-tag-pill:hover{
  background:#e9e6f5;
  border-color:#c5bde5;
}

/* Source info */
.wsp-source-info{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:8px 0;
}
.wsp-source-info svg{
  flex-shrink:0;
  margin-top:2px;
}
.wsp-source-label{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.8px;
  color:#999;
  font-weight:700;
  margin-bottom:6px;
}
.wsp-source-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:700;
  font-size:15px;
  color:#3b2f7f;
  text-decoration:none;
  transition:gap .2s;
}
.wsp-source-link:hover{
  gap:10px;
  text-decoration:underline;
}

/* ── SIDEBAR COL ── */
.wsp-sidebar-col{
  position:sticky;
  top:20px;
  min-width:0;
}

/* Sidebar image */
.wsp-sidebar-img-wrap img{
  width:100%;
  border-radius:12px;
  box-shadow:0 4px 20px rgba(0,0,0,.1);
  object-fit:contain;
  background:#f8f7fc;
}
.wsp-sidebar-placeholder{
  width:100%;
  height:260px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#e9e6f5,#d4cff0);
  border-radius:12px;
}

/* Info card */
.wsp-info-card{
  background:#fff;
  border-radius:16px;
  padding:16px;
  box-shadow:0 4px 24px rgba(0,0,0,.06);
  margin-top:16px;
}
.wsp-info-card-title{
  color:#2f2559;
  margin:0 0 12px;
  font-size:14px;
  display:flex;
  align-items:center;
  gap:6px;
}
.wsp-info-rows{
  display:flex;
  flex-direction:column;
}
.wsp-info-row{
  display:flex;
  justify-content:space-between;
  font-size:13px;
  padding:8px 0;
  border-bottom:1px solid #f0eef5;
}
.wsp-info-row:last-child{
  border-bottom:none;
}
.wsp-info-label{
  color:#64748b;
}
.wsp-info-value{
  font-weight:600;
  color:#1a1a2e;
  text-align:right;
  max-width:60%;
}

/* ── POLECANE (pod zakładkami) ── */

/* ── RESPONSYWNOŚĆ (wpis) ── */
@media(max-width:900px){
  .wsp-main-grid{
    grid-template-columns:1fr;
  }
  .wsp-sidebar-col{
    position:static;
  }
}
@media(max-width:640px){
  .wsp-title-bar h1{
    font-size:20px;
  }
  .wsp-title-row{
    flex-direction:column;
    gap:12px;
  }
  .wsp-card{
    padding:16px;
  }
  .wsp-stats-inner{
    justify-content:flex-start;
  }
  .wsp-grid{
    grid-template-columns:1fr;
  }
  .wsp-polecane-grid{
    grid-template-columns:repeat(2,1fr);
  }
  .wsp-title{
    font-size:1.5rem;
  }
}

/* ======================================================
   PAGINACJA
====================================================== */
.wsp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}
.wsp-page-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--wsp-accent);
  color: #fff;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s;
}
.wsp-page-btn:hover {
  background: var(--wsp-primary);
  color: #fff;
}
.wsp-page-info {
  font-size: .88rem;
  color: var(--wsp-muted);
}
