.blog-page {
    padding: 14px 18px 24px;
    background: #f7f1fb;
    min-height: calc(100vh - 64px);
    overflow: visible;
}

.blog-shell {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
    overflow: visible;
}

.blog-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 14px 28px rgba(46, 14, 73, 0.06);
}

.blog-hero__kicker,
.blog-section-label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ff6e63;
    font-weight: 700;
}

.blog-hero__title {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-size: clamp(28px, 3vw, 42px);
    color: #18121f;
    line-height: 1;
}

.blog-hero__btn {
    border-radius: 999px !important;
    padding: 10px 18px !important;
    background: linear-gradient(135deg, #5f35b8 0%, #7d55d4 100%) !important;
    color: #fff !important;
    text-transform: none !important;
    font-weight: 700 !important;
}

.blog-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4c2f7b;
    font-weight: 700;
    font-size: 14px;
}

.blog-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4f1f78;
}

.blog-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    grid-template-areas:
        "publish content"
        "publish media"
        "publish details";
    gap: 20px;
    align-items: start;
    overflow: visible;
}

.blog-panel {
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 14px 28px rgba(46, 14, 73, 0.06);
    padding: 18px;
    overflow: visible;
}

.blog-panel--publish {
    grid-area: publish;
    position: sticky;
    top: 110px;
    align-self: start;
}

.blog-grid > .blog-panel:nth-of-type(2) {
    grid-area: content;
}

.blog-grid > .blog-panel:nth-of-type(3) {
    grid-area: media;
}

.blog-grid > .blog-panel:nth-of-type(4) {
    grid-area: details;
}

.blog-panel__title {
    margin: 0 0 14px;
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-size: 28px;
    color: #18121f;
}

.blog-panel__title--large {
    font-size: 30px;
}

.blog-toggle {
    display: flex;
    gap: 6px;
    background: #f6eefb;
    padding: 6px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.blog-toggle__item {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    border-radius: 999px;
    color: #7d7690;
    font-weight: 700;
    background: transparent;
}

.blog-toggle__item--active {
    background: #fff;
    color: #4f1f78;
    box-shadow: 0 6px 16px rgba(79, 31, 120, 0.12);
}

.blog-preview {
    background: #fff;
    border-radius: 22px;
    border: 1px solid #efe7f7;
    overflow: visible;
    margin-bottom: 16px;
}

.blog-preview__label {
    margin: 14px 14px 0;
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #4f1f78;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-preview__body {
    padding: 16px 14px 14px;
}

.blog-preview__headline {
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-size: 26px;
    color: #18121f;
    line-height: 1.05;
    margin-bottom: 16px;
}

.blog-preview__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7b7485;
    font-size: 13px;
}

.blog-preview__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: #5e2f90;
    color: #fff;
    font-weight: 800;
    font-size: 11px;
}

.blog-action {
    width: 100%;
    border-radius: 999px !important;
    text-transform: none !important;
    font-weight: 700 !important;
    padding: 10px 16px !important;
    margin-bottom: 10px;
}

.blog-action--ghost {
    border: 1.5px solid #5f2aa0 !important;
    color: #5f2aa0 !important;
    background: #fff !important;
}

.blog-action--solid {
    background: linear-gradient(135deg, #4d1d79 0%, #6f35b0 100%) !important;
    color: #fff !important;
}

.blog-cancel {
    display: block;
    text-align: center;
    margin-top: 8px;
    color: #4f1f78;
    font-weight: 700;
    text-decoration: none;
}

.blog-heading-input {
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    color: #b9b0c2;
    font-size: 32px;
    margin: 8px 0 12px;
    border-bottom: 1px solid #ece5f4;
    padding-bottom: 10px;
}

.blog-slug {
    font-size: 14px;
    color: #7c7389;
    margin-bottom: 14px;
}

.blog-field-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #5f5670;
}

.blog-editor {
    border: 1px solid #efe7f7;
    border-radius: 22px;
    overflow: visible;
}

.blog-editor__toolbar {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 12px 14px;
    background: #faf6ff;
    color: #4f1f78;
    border-bottom: 1px solid #efe7f7;
}

.blog-editor__body {
    min-height: 220px;
    padding: 16px 14px;
    color: #b0a6bb;
}

.blog-editor__footer {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px 12px;
    font-size: 12px;
    color: #9c93a6;
    background: #faf6ff;
}

.blog-dropzone {
    min-height: 280px;
    border-radius: 22px;
    border: 1px dashed #ebdcfa;
    background: #fbf8ff;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
    color: #6d6478;
}

.blog-dropzone__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #5f2aa0;
    font-size: 22px;
    margin-bottom: 12px;
    box-shadow: 0 8px 20px rgba(95, 42, 160, 0.08);
}

.blog-dropzone__title {
    font-weight: 700;
    color: #4f4755;
    margin-bottom: 4px;
}

.blog-dropzone__meta {
    font-size: 12px;
    color: #968ea0;
}

.blog-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.blog-form-row--compact {
    gap: 18px;
}

.blog-category-select.mud-input-control {
    width: 100%;
}

.blog-category-select .mud-input-outlined {
    border-radius: 18px !important;
}

.blog-category-select .mud-input-outlined .mud-input-slot {
    min-height: 48px;
    padding-top: 9px;
    padding-bottom: 9px;
    color: #2a2430;
    font-size: 15px;
}

.blog-form-row--compact .blog-category-select .mud-input-outlined .mud-input-slot {
    min-height: 48px;
}

.blog-form-row--compact .mud-input-outlined .mud-input-slot {
    min-height: 48px;
}

.blog-category-select .mud-input-outlined .mud-input-label {
    color: #5f5670;
    font-size: 14px;
}

.mud-popover .mud-list {
    border-radius: 18px;
    padding: 6px;
}

.mud-popover .mud-list-item {
    border-radius: 12px;
    margin: 2px 0;
    font-size: 14px;
    color: #2a2430;
}

.mud-popover .mud-list-item:hover,
.mud-popover .mud-list-item.mud-selected,
.mud-popover .mud-list-item.mud-selected:hover,
.mud-popover .mud-list-item.mud-focus {
    background: linear-gradient(135deg, #5f35b8 0%, #7d55d4 100%) !important;
    color: #fff !important;
}

.mud-popover .mud-list-item.mud-selected *,
.mud-popover .mud-list-item.mud-focus * {
    color: #fff !important;
}

.blog-field {
    display: grid;
    gap: 8px;
}

.blog-field__label {
    font-size: 14px;
    color: #5f5670;
}

.blog-field__value {
    border: 1px solid #efe7f7;
    border-radius: 999px;
    min-height: 48px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    color: #2a2430;
    background: #fff;
}

.blog-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
}

.blog-actions-row--spaced {
    margin-top: 30px;
}

.blog-action--spaced {
    margin-bottom: 14px;
}

.blog-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.blog-card {
    background: #fff;
    border-radius: 22px;
    padding: 18px;
    min-height: 142px;
    box-shadow: 0 14px 28px rgba(46, 14, 73, 0.06);
    border-left: 4px solid transparent;
}

.blog-card--accent-purple { border-left-color: #5b2b84; }
.blog-card--accent-green { border-left-color: #22b05f; }
.blog-card--accent-orange { border-left-color: #7d55d4; }

.blog-card__label {
    color: #575159;
    font-weight: 600;
    margin-bottom: 18px;
}

.blog-card__value {
    font-size: 34px;
    font-weight: 800;
    color: #18121f;
}

.blog-card__meta {
    margin-top: 8px;
    color: #7c7389;
    font-size: 13px;
}

.blog-filterbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    overflow-x: hidden;
    padding-bottom: 0;
}

.blog-search,
.blog-chip {
    border: 1px solid #efe7f7;
    border-radius: 999px;
    background: #fff;
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b4457;
    font-size: 14px;
}

.blog-search {
    flex: 0 0 210px;
    width: 210px;
    overflow: hidden;
}

.blog-search .mud-input-control {
    border-radius: 999px;
    background: #fff;
    min-height: 42px;
}

.blog-search .mud-input-control .mud-input {
    padding-left: 0;
}

.blog-search .mud-input-control .mud-input-root,
.blog-search .mud-input-control .mud-input-slot,
.blog-search .mud-input-control .mud-input-adornment {
    border-radius: 999px !important;
}

.blog-search .mud-input-control .mud-input-outlined-border {
    border-radius: 999px !important;
}

.blog-chip {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
}

.blog-chip span {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f4edfb;
    color: #6a45ef;
    font-size: 11px;
    font-weight: 800;
}

.blog-chip--active {
    background: #4f1f78;
    color: #fff;
    border-color: #4f1f78;
}

.blog-chip--active:hover {
    background: #6a32a8;
    border-color: #6a32a8;
}

.blog-chip--active span {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.blog-table {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 14px 28px rgba(46, 14, 73, 0.06);
    overflow: visible;
}

.blog-table__head,
.blog-row {
    display: grid;
    grid-template-columns: minmax(320px, 2.5fr) minmax(140px, 1fr) minmax(160px, 1fr) minmax(120px, 0.9fr) minmax(110px, 0.7fr) 84px;
    gap: 12px;
    align-items: center;
}

.blog-table__head {
    padding: 14px 18px;
    background: #fbf7ff;
    color: #6f6b75;
    font-size: 11px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 800;
}

.blog-row {
    padding: 14px 18px;
    border-top: 1px solid #efedf2;
    color: #241d2d;
    min-height: 116px;
    box-sizing: border-box;
}

.blog-row__blogcell {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.blog-row__thumb {
    width: 58px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #5b2b84 0%, #9e6dd8 100%);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    justify-self: start;
    align-self: center;
}

.blog-row__title-wrap {
    display: grid;
    gap: 4px;
    align-content: center;
    min-width: 0;
    flex: 1 1 auto;
}

.blog-row__title {
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.3;
}

.blog-row__link,
.blog-row__author {
    color: #8a8393;
    font-size: 13px;
}

.blog-row__cell {
    min-width: 0;
}

.blog-row__cell--center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.blog-row__author {
    font-weight: 600;
    color: #6a45ef;
}

.blog-row__published-by {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    justify-content: center;
}

.blog-row__published-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #5a4f66;
    font-size: 14px;
    font-weight: 600;
}

.blog-row__author-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #5a4f66;
    font-size: 14px;
    font-weight: 600;
}

.blog-row__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 84px;
    justify-self: end;
    align-self: center;
    white-space: nowrap;
}

.blog-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f3eafb;
    color: #5f2aa0;
    font-weight: 700;
    font-size: 12px;
}

.blog-pill--green { background: #e2f7e8; color: #10b45a; }
.blog-pill--gray { background: #f0f0f0; color: #7d7d7d; }

@media (max-width: 1100px) {
    .blog-shell {
        max-width: 100%;
    }

    .blog-filterbar {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .blog-search {
        width: 100%;
        flex: 1 1 100%;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }

    .blog-panel--publish {
        grid-row: auto;
        position: static;
    }

    .blog-grid > .blog-panel:nth-of-type(2),
    .blog-grid > .blog-panel:nth-of-type(3),
    .blog-grid > .blog-panel:nth-of-type(4) {
        grid-area: auto;
    }

    .blog-stats {
        grid-template-columns: 1fr;
    }

    .blog-table__head,
    .blog-row {
        grid-template-columns: 1fr;
    }
}
