/* Saved articles: the Save button (article.php) and the list (saved.php). Layout around it: public-base.css */

/* ----- Save button ----- */
.sv-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 40px; border: 1.5px solid #cbd5e1; background: #fff; color: #0b3d91; font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: 0.2s; white-space: nowrap; }
.sv-btn:hover { border-color: #0b3d91; }
.sv-btn:disabled { opacity: 0.6; cursor: wait; }
.sv-btn .sv-on { display: none; }
.sv-btn.on { background: #0b3d91; border-color: #0b3d91; color: #fff; }
.sv-btn.on i { color: #facc15; }
.sv-btn.on .sv-on { display: inline; }
.sv-btn.on .sv-off { display: none; }

/* ----- saved.php ----- */
.sv-page { padding-bottom: 50px; }
.sv-hero { padding: 36px 32px; margin-bottom: 24px; }
.sv-box { max-width: 640px; margin: 0 auto; }
.sv-count { font-size: 0.92rem; color: #64748b; margin: 0 0 14px; font-weight: 600; }
.sv-count[hidden] { display: none; }
.sv-list { display: grid; gap: 14px; }
.sv-item { display: grid; grid-template-columns: 180px 1fr auto; gap: 18px; align-items: center; background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05); transition: opacity 0.25s, transform 0.25s; }
.sv-item.gone { opacity: 0; transform: translateX(20px); }
.sv-img { display: block; border-radius: 12px; overflow: hidden; }
.sv-img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sv-body { min-width: 0; }
.sv-cat { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #b45309; background: #fef3c7; padding: 3px 10px; border-radius: 20px; }
.sv-body h2 { font-size: 1.08rem; line-height: 1.35; margin: 8px 0 6px; }
.sv-body h2 a { color: #0f172a; text-decoration: none; overflow-wrap: anywhere; }
.sv-body h2 a:hover { color: #0b3d91; }
.sv-body p { font-size: 0.88rem; color: #64748b; line-height: 1.55; margin: 0 0 8px; }
.sv-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.78rem; color: #64748b; }
.sv-meta i { color: #0b3d91; margin-right: 3px; }
.sv-remove { display: inline-flex; align-items: center; gap: 7px; align-self: start; border: 1px solid #fecaca; background: #fff; color: #b91c1c; border-radius: 40px; padding: 7px 14px; font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.sv-remove:hover { background: #fef2f2; }
.sv-remove:disabled { opacity: 0.6; cursor: wait; }
.sv-empty { text-align: center; padding: 46px 20px; color: #64748b; background: #fff; border-radius: 20px; }
.sv-empty[hidden] { display: none; }
.sv-empty > i { font-size: 2.6rem; color: #cbd5e1; margin-bottom: 10px; }
.sv-empty p { margin-bottom: 16px; }
.sv-browse { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 40px; background: #0b3d91; color: #fff; text-decoration: none; font-weight: 700; }
.sv-browse:hover { background: #1565c0; }

@media (max-width: 640px) {
    .sv-hero { padding: 26px 16px; }
    .sv-item { grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; }
    .sv-body h2 { font-size: 0.98rem; margin: 6px 0 4px; }
    .sv-body p { display: none; }
    .sv-remove { grid-column: 1 / -1; justify-self: end; padding: 6px 12px; }
}
