.blog-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.5rem;
}

.blog-shell [data-lucide],
.blog-detail [data-lucide],
.blog-editor-shell [data-lucide] {
    height: 1rem;
    width: 1rem;
}

.blog-card-cover [data-lucide],
.blog-empty [data-lucide] {
    height: 2.25rem;
    width: 2.25rem;
}

.blog-hero {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.blog-hero h1,
.blog-detail-title {
    color: #111827;
    font-family: Manrope, Inter, sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.blog-hero p,
.blog-muted {
    color: #64748b;
}

.blog-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.blog-search {
    display: flex;
    gap: .5rem;
    min-width: min(100%, 420px);
}

.blog-search input {
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    min-height: 42px;
}

.blog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .75rem 0 1.25rem;
}

.blog-tab,
.blog-tag,
.blog-chip {
    align-items: center;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    font-size: .875rem;
    font-weight: 600;
    gap: .35rem;
    min-height: 34px;
    padding: .35rem .75rem;
    text-decoration: none;
}

.blog-tab:hover,
.blog-tag:hover {
    border-color: #2563eb;
    color: #1d4ed8;
}

.blog-tab.active {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.blog-layout {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .blog-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

.blog-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.blog-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.blog-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
    transform: translateY(-2px);
}

.blog-card-cover {
    align-items: center;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #0f172a, #164e63);
    color: #dbeafe;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.blog-card-cover img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.blog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .75rem;
    padding: 1rem;
}

.blog-card-title {
    color: #111827;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
}

.blog-card-summary {
    color: #64748b;
    font-size: .92rem;
    line-height: 1.55;
    margin: 0;
}

.blog-meta {
    align-items: center;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    font-size: .82rem;
    gap: .6rem;
}

.blog-meta span {
    align-items: center;
    display: inline-flex;
    gap: .25rem;
}

.blog-category {
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .55rem;
    width: fit-content;
}

.blog-sidebar {
    display: grid;
    gap: 1rem;
}

.blog-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
}

.blog-panel h2,
.blog-panel h3 {
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 .75rem;
}

.blog-list {
    display: grid;
    gap: .75rem;
}

.blog-list a {
    color: #334155;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
}

.blog-list a:hover {
    color: #1d4ed8;
}

.blog-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    padding: 2rem;
    text-align: center;
}

.blog-detail {
    max-width: 920px;
    margin: 0 auto;
    padding: 1.5rem;
}

.blog-detail-cover {
    aspect-ratio: 21 / 9;
    background: #0f172a;
    border-radius: 8px;
    margin: 1.25rem 0;
    overflow: hidden;
}

.blog-detail-cover img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.blog-content {
    color: #1f2937;
    font-size: 1.02rem;
    line-height: 1.8;
}

.blog-content img {
    border-radius: 8px;
    height: auto;
    max-width: 100%;
}

.blog-content pre {
    background: #0f172a;
    border-radius: 8px;
    color: #e2e8f0;
    overflow-x: auto;
    padding: 1rem;
}

.blog-actionbar {
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: space-between;
    margin: 1.5rem 0;
    padding: .85rem 0;
}

.reaction-group {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.reaction-button {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    font-weight: 700;
    gap: .35rem;
    min-height: 36px;
    padding: .35rem .7rem;
}

.reaction-button.active {
    background: #ecfdf5;
    border-color: #86efac;
    color: #047857;
}

.blog-comments {
    display: grid;
    gap: 1rem;
}

.comment-form textarea {
    min-height: 96px;
    resize: vertical;
}

.comment-item {
    border-bottom: 1px solid #edf2f7;
    display: grid;
    gap: .35rem;
    padding: .85rem 0;
}

.comment-item.reply {
    margin-left: 2rem;
}

.comment-head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.comment-name {
    color: #111827;
    font-weight: 800;
}

.comment-content {
    color: #334155;
    white-space: pre-wrap;
}

.blog-editor-shell {
    max-width: 1260px;
    margin: 0 auto;
    padding: 1.25rem;
}

.blog-editor-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 1100px) {
    .blog-editor-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
    }
}

.blog-editor-main,
.blog-editor-side,
.blog-manage-table {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
}

.blog-editor-side {
    align-self: start;
    display: grid;
    gap: 1rem;
}

.blog-cover-preview {
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.blog-cover-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.attachment-row {
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    padding: .65rem .75rem;
}

.blog-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: .75rem;
    font-weight: 800;
    padding: .25rem .6rem;
}

.blog-status.published {
    background: #dcfce7;
    color: #166534;
}

.blog-status.draft {
    background: #f1f5f9;
    color: #475569;
}

.blog-status.public {
    background: #dbeafe;
    color: #1d4ed8;
}

.blog-status.internal {
    background: #fef3c7;
    color: #92400e;
}

.blog-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.blog-table-actions form {
    display: inline-flex;
}
