/* Blog detail page (blog/show.blade.php). Relies on home.css variables (--sp-*).
   Every selector is scoped under .bd, so nothing here can affect other pages. */
.bd{font-family:'Poppins',system-ui,sans-serif;color:var(--sp-ink);background:var(--sp-cream-2);border-radius:18px;padding:1.5rem}

/* cards */
.bd-card{background:#fffdf8;border-radius:18px;box-shadow:0 6px 24px #1a1a3a0f;padding:2rem 2rem 2.2rem;margin-bottom:1.6rem}
@media(max-width:575px){.bd{padding:.9rem}.bd-card{padding:1.2rem 1.1rem}}

/* post */
.bd-hero{display:block;width:100%;aspect-ratio:2.22/1;object-fit:cover;border-radius:14px;background:var(--sp-cream)}
.bd-body{font-size:1.15rem;line-height:1.95;color:#2c3150;margin-top:2rem;overflow-wrap:anywhere}

/* section headings */
.bd-h{display:flex;align-items:center;gap:1rem;font-size:1.6rem;font-weight:700;margin:0 0 1.6rem}
.bd-h-ic{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;flex:none}
.bd-h-ic.is-chat{background:transparent;color:#b7a4f4}
.bd-h-ic.is-chat svg{width:40px;height:40px}
.bd-h-ic.is-edit{background:#fff0c7;color:var(--sp-amber)}
.bd-h-ic.is-edit svg{width:24px;height:24px}

/* comments */
.bd-comment{display:flex;gap:1.2rem;background:#fff6e2;border-radius:16px;padding:1.4rem 1.6rem;margin-bottom:1.1rem}
.bd-avatar{width:60px;height:60px;border-radius:50%;display:grid;place-items:center;font-weight:600;font-size:1.7rem;flex:none}
.bd-av-0{background:#c9f2e3;color:#12a26b}
.bd-av-1{background:#cfe3ff;color:#2563eb}
.bd-av-2{background:#ffd6ea;color:#e0338f}
.bd-av-3{background:#e3d9ff;color:#7c4dff}
.bd-av-4{background:#ffe7b8;color:#c77700}
.bd-cbody{min-width:0}
.bd-cname{font-weight:700;font-size:1.2rem;line-height:1.3;overflow-wrap:anywhere}
.bd-cdate{color:#2c3150;font-size:1.05rem;margin-bottom:.25rem}
.bd-ctext{margin:0;color:#2c3150;font-size:1.05rem;line-height:1.75;overflow-wrap:anywhere}
.bd-empty{color:var(--sp-text);margin:0 0 1rem}

/* pagination (markup from {{ $comments->links() }}, Bootstrap 5 view) */
.bd-pager{margin-top:1.4rem}
.bd-pager nav{display:flex;flex-wrap:wrap;gap:.8rem;align-items:center;justify-content:space-between;width:100%}
.bd-pager nav>div:first-child{flex:1}
.bd-pager p.small{margin:0;color:var(--sp-text)!important;font-size:1.05rem!important}
.bd-pager p.small .fw-semibold{font-weight:400!important}
.bd-pager .pagination{margin:0;gap:.45rem}
.bd-pager .page-item .page-link{margin-left:0;min-width:42px;height:42px;display:grid;place-items:center;padding:0 .6rem;border:1px solid var(--sp-line);border-radius:8px!important;background:#fff;color:#0d6efd;font-weight:600;font-size:1.05rem;box-shadow:none}
.bd-pager .page-item.active .page-link{background:var(--sp-amber);border-color:var(--sp-amber);color:#fff}
.bd-pager .page-item.disabled .page-link{background:#fff;color:#2c3150}
.bd-pager .page-link:hover{background:var(--sp-cream)}
.bd-pager .page-item.active .page-link:hover{background:var(--sp-amber)}

.bd .alert{border-radius:12px}

/* leave a comment form */
.bd-label{display:block;margin:0 0 .5rem;color:#2c3150;font-size:1.15rem}
.bd-input{border:1.5px solid #dbe0ee;border-radius:10px;padding:.85rem 1.1rem;min-height:58px;font-size:1.05rem;background:#fffdf8;font-family:inherit}
.bd-input:focus{border-color:var(--sp-amber);box-shadow:0 0 0 .2rem #f5a00026;background:#fff}
textarea.bd-input{min-height:130px;resize:vertical}
.bd-submit{display:inline-flex;align-items:center;justify-content:center;background:#fdb913;color:var(--sp-ink);border:0;border-radius:10px;padding:.95rem 1.9rem;font-family:inherit;font-weight:700;font-size:1.15rem;cursor:pointer;transition:background .15s}
.bd-submit:hover{background:var(--sp-amber)}
.bd-submit:focus-visible{outline:3px solid #f5a00055;outline-offset:2px}

/* back link */
.bd-back{display:inline-block;margin:.2rem 0 .2rem .2rem;color:#0d6efd;font-size:1.2rem;font-weight:500;text-decoration:underline}
.bd-back:hover{color:#0a58ca}