/* ============================================================
   PreuzmiLeasing Blog — pl-blog.css  v1.0.0
   Brend: tamna siva + narančasta + bijela
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Inter:wght@400;500&display=swap');

/* ── CSS varijable ─────────────────────────────────────────── */
:root {
  --pl-darker:  #141414;
  --pl-dark:    #1e1e1e;
  --pl-darkest: #0d0d0d;
  --pl-orange:  #e8611a;
  --pl-orange2: #f07230;
  --pl-surface: #252525;
  --pl-border:  rgba(255,255,255,0.08);
  --pl-text:    #f0f0f0;
  --pl-muted:   #a0a0a0;
  --pl-white:   #ffffff;
  --pl-green:   #4ade80;
  --pl-red:     #f87171;
  --pl-amber:   #fbbf24;
  --pl-blue:    #60a5fa;
  --pl-font-display: 'Sora', sans-serif;
  --pl-font-body:    'Inter', sans-serif;
  --pl-radius:  8px;
  --pl-radius-lg: 10px;
}

/* ── Base ──────────────────────────────────────────────────── */
.pl-blog {
  font-family: var(--pl-font-body);
  background: var(--pl-darker);
  color: var(--pl-text);
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Hero ──────────────────────────────────────────────────── */
.pl-hero {
  background: var(--pl-darkest);
  padding: 52px 40px 46px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--pl-orange);
}
.pl-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(232,97,26,0.07);
}
.pl-hero__tag {
  display: inline-block;
  background: rgba(232,97,26,0.15);
  color: var(--pl-orange2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 3px;
  margin-bottom: 18px;
  font-family: var(--pl-font-display);
  border-left: 3px solid var(--pl-orange);
}
.pl-hero__title {
  font-family: var(--pl-font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--pl-white);
  line-height: 1.2;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.pl-hero__title span { color: var(--pl-orange2); }
.pl-hero__sub {
  color: var(--pl-muted);
  font-size: 15px;
  max-width: 560px;
  position: relative;
  z-index: 1;
  line-height: 1.65;
}
.pl-hero__meta {
  display: flex;
  gap: 24px;
  margin-top: 26px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.pl-hero__meta span { color: #666; font-size: 12px; display: flex; align-items: center; gap: 5px; }
.pl-hero__meta b { color: #999; font-weight: 500; }

/* ── TOC ────────────────────────────────────────────────────── */
.pl-toc {
  background: var(--pl-surface);
  border-left: 3px solid var(--pl-orange);
  padding: 18px 24px;
}
.pl-toc__title {
  font-family: var(--pl-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pl-orange2);
  margin-bottom: 10px;
}
.pl-toc__list { padding-left: 18px; }
.pl-toc__list li { margin: 5px 0; }
.pl-toc__list a { color: #c8c8c8; font-size: 13.5px; text-decoration: none; transition: color .15s; }
.pl-toc__list a:hover { color: var(--pl-orange2); }

/* ── Sections ───────────────────────────────────────────────── */
.pl-section {
  padding: 38px 40px;
  border-bottom: 1px solid var(--pl-border);
  background: var(--pl-darker);
}
.pl-section--alt { background: var(--pl-dark); }
.pl-section:last-child { border-bottom: none; }

.pl-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232,97,26,0.12);
  color: var(--pl-orange2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
  font-family: var(--pl-font-display);
}

.pl-section h2 {
  font-family: var(--pl-font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--pl-white);
  margin-bottom: 14px;
  line-height: 1.3;
}
.pl-section h3 {
  font-family: var(--pl-font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--pl-white);
  margin: 22px 0 10px;
}
.pl-section p {
  font-size: 15px;
  color: #c0c0c0;
  margin-bottom: 12px;
}
.pl-section strong { color: var(--pl-white); font-weight: 600; }

/* ── Info boxes ─────────────────────────────────────────────── */
.pl-info-box {
  background: rgba(232,97,26,0.08);
  border: 1px solid rgba(232,97,26,0.25);
  border-left: 3px solid var(--pl-orange);
  border-radius: var(--pl-radius);
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 14px;
  color: #d0c0b8;
  line-height: 1.6;
}
.pl-info-box strong { color: var(--pl-orange2); }

.pl-ibox-blue {
  background: rgba(96,165,250,0.07);
  border: 1px solid rgba(96,165,250,0.15);
  border-left: 3px solid var(--pl-blue);
  border-radius: var(--pl-radius);
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 13px;
  color: #c0d0e0;
  line-height: 1.6;
}
.pl-ibox-blue strong { color: var(--pl-blue); }

.pl-ibox-green {
  background: rgba(74,222,128,0.06);
  border: 1px solid rgba(74,222,128,0.15);
  border-left: 3px solid var(--pl-green);
  border-radius: var(--pl-radius);
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 13px;
  color: #c0e8d0;
  line-height: 1.6;
}
.pl-ibox-green strong { color: var(--pl-green); }

/* ── Steps ──────────────────────────────────────────────────── */
.pl-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.pl-step {
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.pl-step__num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--pl-orange);
  color: var(--pl-white);
  font-family: var(--pl-font-display);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pl-step__body h4 {
  font-family: var(--pl-font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--pl-white);
  margin-bottom: 4px;
}
.pl-step__body p { font-size: 12.5px; color: var(--pl-muted); margin: 0; }

/* ── Advantages ─────────────────────────────────────────────── */
.pl-adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.pl-adv-card {
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius);
  padding: 18px 16px;
  border-top: 3px solid var(--pl-orange);
}
.pl-adv-card__icon { font-size: 20px; margin-bottom: 10px; }
.pl-adv-card h4 {
  font-family: var(--pl-font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--pl-white);
  margin-bottom: 6px;
}
.pl-adv-card p { font-size: 12px; color: var(--pl-muted); margin: 0; line-height: 1.55; }

/* ── Comparison table ───────────────────────────────────────── */
.pl-comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 20px 0;
  border-radius: var(--pl-radius);
  overflow: hidden;
  border: 1px solid var(--pl-border);
}
.pl-comp-table thead tr { height: 52px; }
.pl-comp-table th {
  vertical-align: middle;
  padding: 0 16px;
  font-family: var(--pl-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-align: left;
}
.pl-comp-table__th--char { background: #1a1a1a; color: var(--pl-muted); width: 30%; }
.pl-comp-table__th--op   { background: var(--pl-orange); color: var(--pl-white); width: 35%; }
.pl-comp-table__th--fin  { background: #333; color: #ccc; width: 35%; }
.pl-comp-table td {
  padding: 11px 16px;
  border-top: 1px solid var(--pl-border);
  vertical-align: middle;
  line-height: 1.5;
  color: #c0c0c0;
}
.pl-comp-table__label { font-weight: 500; color: #888; font-size: 12.5px; background: rgba(0,0,0,0.2); }
.pl-comp-table tr:hover td { background: rgba(255,255,255,0.03); }
.pl-comp-table tr:hover .pl-comp-table__label { background: rgba(0,0,0,0.3); }
.pl-badge--yes { color: var(--pl-green); font-weight: 600; font-size: 12px; }
.pl-badge--no  { color: var(--pl-red);   font-weight: 600; font-size: 12px; }
.pl-badge--mid { color: #fb923c;         font-weight: 600; font-size: 12px; }

/* ── BMW Calculator tabs ────────────────────────────────────── */
.pl-tabs-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 14px;
  flex-wrap: wrap;
}
.pl-tab-group {
  display: flex;
  border-radius: var(--pl-radius);
  overflow: hidden;
  border: 1px solid var(--pl-border);
}
.pl-tab {
  padding: 7px 16px;
  font-family: var(--pl-font-display);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  background: var(--pl-darker);
  color: var(--pl-muted);
  border: none;
  transition: all .15s;
  white-space: nowrap;
}
.pl-tab--active { background: var(--pl-orange); color: var(--pl-white); }
.pl-ctx-label {
  font-family: var(--pl-font-display);
  font-size: 11px;
  color: #555;
  white-space: nowrap;
  margin-left: auto;
}
.pl-ctx-label span { color: var(--pl-orange2); font-weight: 600; }

/* ── BMW Cards ──────────────────────────────────────────────── */
.pl-bmw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pl-bmw-card {
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pl-bmw-card__head {
  padding: 12px 16px;
  font-family: var(--pl-font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--pl-white);
}
.pl-bmw-card__head--op  { background: var(--pl-orange); }
.pl-bmw-card__head--fin { background: #2a2a2a; border-bottom: 1px solid #404040; }
.pl-sdiv {
  padding: 4px 14px 3px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--pl-border);
  border-top: 1px solid var(--pl-border);
  font-family: var(--pl-font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #555;
}
.pl-bmw-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 14px;
  border-bottom: 1px solid var(--pl-border);
  font-size: 12.5px;
  gap: 10px;
}
.pl-bmw-row:last-child { border-bottom: none; }
.pl-bmw-row__label { color: #888; flex-shrink: 0; font-size: 12px; max-width: 50%; line-height: 1.35; }
.pl-bmw-row__val   { font-weight: 600; text-align: right; line-height: 1.35; }
.pl-bmw-card__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  border-top: 2px solid var(--pl-border);
  font-weight: 700;
  font-size: 13px;
  color: var(--pl-white);
  margin-top: auto;
}

/* ── Value colour helpers ────────────────────────────────────── */
.pl-val--green  { color: var(--pl-green); }
.pl-val--red    { color: var(--pl-red); }
.pl-val--amber  { color: var(--pl-amber); }
.pl-val--blue   { color: var(--pl-blue); }
.pl-val--orange { color: var(--pl-orange2); }
.pl-val--white  { color: var(--pl-white); }
.pl-val--muted  { color: #666; }

/* ── Naravi grid ────────────────────────────────────────────── */
.pl-naravi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.pl-nc {
  background: rgba(0,0,0,.2);
  border-radius: 5px;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.5;
}
.pl-nc--wide { grid-column: 1 / -1; }
.pl-nc__title { font-family: var(--pl-font-display); font-weight: 700; font-size: 11px; color: var(--pl-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .07em; }
.pl-nc__val   { font-weight: 700; font-size: 15px; margin: 2px 0; }
.pl-nc__sub   { font-size: 11px; color: #666; }

/* ── Residual value badge ───────────────────────────────────── */
.pl-resid-val {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232,97,26,.15);
  padding: 5px 12px;
  border-radius: 4px;
  font-family: var(--pl-font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--pl-orange2);
  margin: 6px 0 4px;
}

/* ── Cost compare ───────────────────────────────────────────── */
.pl-cost-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}
.pl-cost-card {
  border-radius: var(--pl-radius);
  overflow: hidden;
  border: 1px solid var(--pl-border);
  background: var(--pl-surface);
}
.pl-cost-card__head {
  padding: 14px 18px;
  font-family: var(--pl-font-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--pl-white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pl-cost-card--red   .pl-cost-card__head { background: #7f1d1d; border-bottom: 2px solid #f87171; }
.pl-cost-card--green .pl-cost-card__head { background: #14532d; border-bottom: 2px solid #4ade80; }
.pl-cost-card__body { padding: 14px 18px; }
.pl-cost-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px solid var(--pl-border);
  font-size: 13px;
  gap: 12px;
}
.pl-cost-item:last-child { border-bottom: none; }
.pl-cost-item__label { color: #888; }
.pl-cost-item__val   { font-weight: 600; }
.pl-cost-total {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--pl-radius);
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
}
.pl-cost-total--red   { background: rgba(248,113,113,.1); color: #f87171; border: 1px solid rgba(248,113,113,.2); }
.pl-cost-total--green { background: rgba(74,222,128,.1);  color: #4ade80; border: 1px solid rgba(74,222,128,.2); }

/* ── Callout ────────────────────────────────────────────────── */
.pl-callout {
  background: var(--pl-orange);
  border-radius: 10px;
  padding: 24px 28px;
  margin: 28px 0 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.pl-callout__icon {
  width: 48px; height: 48px;
  background: rgba(0,0,0,.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.pl-callout__text { flex: 1; }
.pl-callout__text h3 { color: var(--pl-white); font-family: var(--pl-font-display); font-size: 16px; margin-bottom: 4px; }
.pl-callout__text p  { color: rgba(255,255,255,.78); font-size: 13px; margin: 0; }
.pl-callout__btn {
  background: var(--pl-white);
  color: var(--pl-orange);
  border: none;
  border-radius: var(--pl-radius);
  padding: 11px 22px;
  font-family: var(--pl-font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-block;
}
.pl-callout__btn:hover { background: #f5f5f5; color: var(--pl-orange); }

/* ── WooCommerce premium gate ───────────────────────────────── */
.pl-premium-gate {
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius-lg);
  padding: 32px;
  text-align: center;
  margin: 20px 0;
}
.pl-premium-gate__icon { font-size: 32px; margin-bottom: 12px; }
.pl-premium-gate__title { font-family: var(--pl-font-display); font-size: 18px; font-weight: 700; color: var(--pl-white); margin-bottom: 8px; }
.pl-premium-gate__text  { color: var(--pl-muted); font-size: 14px; margin-bottom: 16px; }
.pl-premium-gate__btn {
  display: inline-block;
  background: var(--pl-orange);
  color: var(--pl-white);
  padding: 10px 24px;
  border-radius: var(--pl-radius);
  font-family: var(--pl-font-display);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.pl-premium-gate__btn:hover { background: var(--pl-orange2); color: var(--pl-white); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .pl-hero           { padding: 36px 20px 32px; }
  .pl-hero__title    { font-size: 26px; }
  .pl-section        { padding: 28px 20px; }
  .pl-steps,
  .pl-bmw-grid,
  .pl-cost-compare,
  .pl-naravi-grid    { grid-template-columns: 1fr; }
  .pl-adv-grid       { grid-template-columns: 1fr 1fr; }
  .pl-callout        { flex-direction: column; text-align: center; }
  .pl-ctx-label      { display: none; }
}
@media (max-width: 400px) {
  .pl-adv-grid { grid-template-columns: 1fr; }
}
