/* ══════════════════════════════════════════════════
   Blog & Articles Styles — TeKMediApp
   ══════════════════════════════════════════════════ */

/* ── Common ── */
.blog-page {
    min-height: 100vh;
    background: #f8fafc;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: blog-spin 0.7s linear infinite;
    margin: 0 auto 16px;
}

@keyframes blog-spin {
    to { transform: rotate(360deg); }
}

/* ── Hero Banner ── */
.blog-hero {
    position: relative;
    padding: 80px 24px 60px;
    text-align: center;
    overflow: hidden;
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
}

.blog-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(79, 70, 229, 0.15), transparent 60%),
                radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.1), transparent 50%);
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.blog-hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.blog-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 16px;
}

.blog-hero-accent {
    background: linear-gradient(135deg, #818cf8, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-subtitle {
    font-size: 17px;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0;
}

/* ── Filters ── */
.blog-filters-section {
    padding: 24px 0 0;
    background: #f8fafc;
    position: sticky;
    top: 80px;
    z-index: 20;
    border-bottom: 1px solid #e2e8f0;
}

.blog-toolbar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 16px;
    flex-wrap: wrap;
}

.blog-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 16px;
    flex: 1;
    min-width: 200px;
    max-width: 360px;
    transition: border-color 0.2s;
}

.blog-search:focus-within {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.blog-search-icon {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    flex-shrink: 0;
}

.blog-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #334155;
    width: 100%;
}

.blog-category-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-chip {
    padding: 7px 16px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.blog-chip:hover {
    border-color: #4f46e5;
    color: #4f46e5;
}

.blog-chip-active {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

/* ── Featured Section ── */
.blog-featured-section {
    padding: 32px 0 16px;
}

.blog-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
}

.blog-featured-card {
    display: block;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.blog-featured-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-featured-card:hover .blog-featured-img img {
    transform: scale(1.05);
}

.blog-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
}

.blog-featured-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.blog-featured-body {
    padding: 20px 22px 22px;
}

.blog-featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.blog-category-tag {
    padding: 3px 10px;
    background: #ede9fe;
    color: #6d28d9;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50px;
}

.blog-date {
    font-size: 13px;
    color: #94a3b8;
}

.blog-featured-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin: 0 0 8px;
}

.blog-featured-summary {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #94a3b8;
}

.blog-author { font-weight: 600; color: #64748b; }
.blog-read-time { color: #94a3b8; }

/* ── Posts Grid ── */
.blog-posts-section {
    padding: 32px 0 64px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.blog-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #4f46e5;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50px;
    backdrop-filter: blur(8px);
}

.blog-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #94a3b8;
}

.blog-card-dot { font-size: 8px; }

.blog-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-card-title { color: #4f46e5; }

.blog-card-summary {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-bottom: 14px;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: #94a3b8;
}

.blog-card-author { font-weight: 600; color: #64748b; }

.blog-card-stats {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card-eye {
    width: 14px;
    height: 14px;
}

/* ── Loading / Empty ── */
.blog-loading, .blog-empty {
    text-align: center;
    padding: 64px 24px;
    color: #64748b;
}

.blog-empty-icon {
    width: 56px;
    height: 56px;
    color: #cbd5e1;
    margin: 0 auto 16px;
}

.blog-empty h3 {
    font-size: 18px;
    color: #334155;
    margin: 0 0 6px;
}

.blog-empty p {
    font-size: 14px;
    margin: 0;
}

/* ══════════════════════════════════════
   Blog Detail Page
   ══════════════════════════════════════ */

.blog-detail-loading, .blog-detail-notfound {
    text-align: center;
    padding: 120px 24px 64px;
    color: #64748b;
}

.blog-detail-notfound h2 {
    font-size: 24px;
    color: #334155;
    margin: 16px 0 8px;
}

.blog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 24px;
    background: #4f46e5;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.blog-back-btn:hover { background: #4338ca; }

/* Article Hero */
.blog-article-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.blog-article-hero-bg {
    position: absolute;
    inset: 0;
}

.blog-article-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.5) 50%, rgba(15, 23, 42, 0.3) 100%);
}

.blog-article-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px 32px 48px;
    margin: 0 auto;
    width: 100%;
}

.blog-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.blog-breadcrumb:hover { color: #fff; }

.blog-article-meta-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.blog-article-date, .blog-article-readtime {
    font-size: 13px;
    color: #94a3b8;
}

.blog-article-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 12px;
}

.blog-article-summary {
    font-size: 17px;
    color: #cbd5e1;
    line-height: 1.7;
    margin: 0 0 20px;
}

.blog-article-author-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-article-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.blog-article-author-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.blog-article-views {
    display: block;
    font-size: 12px;
    color: #94a3b8;
}

/* Article Content */
.blog-article-content-section {
    padding: 48px 0 32px;
    background: #fff;
}

.blog-article-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.blog-article-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 32px 0 12px;
}

.blog-article-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 24px 0 10px;
}

.blog-article-body p {
    margin: 0 0 16px;
}

.blog-article-body ul, .blog-article-body ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.blog-article-body li {
    margin-bottom: 8px;
}

.blog-article-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 24px 0;
}

.blog-article-body blockquote {
    border-left: 4px solid #4f46e5;
    padding: 12px 20px;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    color: #475569;
    font-style: italic;
}

/* Tags */
.blog-article-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 24px 0;
    border-top: 1px solid #f1f5f9;
    margin-top: 32px;
}

.blog-tags-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.blog-tag {
    padding: 4px 12px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    border-radius: 50px;
}

/* Share */
.blog-article-share {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 0;
    border-top: 1px solid #f1f5f9;
}

.blog-share-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.blog-share-buttons {
    display: flex;
    gap: 8px;
}

.blog-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.blog-share-btn:hover {
    border-color: #4f46e5;
    color: #4f46e5;
}

/* Related */
.blog-related-section {
    padding: 48px 0 64px;
    background: #f8fafc;
}

.blog-related-heading {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 24px;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ══════════════════════════════════════
   Blog Management Styles
   ══════════════════════════════════════ */

.bm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px;
}

/* Header */
.bm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 16px;
    padding: 22px 26px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.bm-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bm-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 14px;
    color: #fff;
    flex-shrink: 0;
}

.bm-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.bm-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin: 2px 0 0;
}

.bm-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.bm-stats {
    display: flex;
    gap: 16px;
}

.bm-stat {
    text-align: center;
    padding: 6px 14px;
    background: #f8fafc;
    border-radius: 10px;
}

.bm-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.bm-stat-published { color: #10b981; }
.bm-stat-draft { color: #f59e0b; }

.bm-stat-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Buttons */
.bm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.bm-btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
}

.bm-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.bm-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.bm-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.bm-btn-secondary:hover {
    background: #e2e8f0;
}

.bm-btn-danger {
    background: #ef4444;
    color: #fff;
}

.bm-btn-danger:hover {
    background: #dc2626;
}

.bm-btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Filters */
.bm-filters {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bm-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 14px;
    flex: 1;
    max-width: 320px;
    min-width: 180px;
    transition: border-color 0.2s;
}

.bm-search:focus-within {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.bm-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #334155;
    width: 100%;
}

.bm-filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bm-chip {
    padding: 7px 16px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.bm-chip:hover {
    border-color: #4f46e5;
    color: #4f46e5;
}

.bm-chip-active {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

/* Table */
.bm-table-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.bm-table {
    width: 100%;
    border-collapse: collapse;
}

.bm-table thead th {
    padding: 14px 18px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.bm-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.bm-table tbody tr:hover {
    background: #fafbff;
}

.bm-table tbody td {
    padding: 14px 18px;
    font-size: 14px;
    color: #334155;
    vertical-align: middle;
}

.bm-post-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bm-post-thumb {
    width: 56px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.bm-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bm-post-info {
    min-width: 0;
}

.bm-post-title {
    display: block;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.bm-post-summary {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.bm-category-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #ede9fe;
    color: #6d28d9;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
}

.bm-status-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bm-status {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
}

.bm-status-published {
    background: #dcfce7;
    color: #16a34a;
}

.bm-status-draft {
    background: #fef3c7;
    color: #d97706;
}

.bm-featured-star {
    font-size: 14px;
}

.bm-date {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}

.bm-views {
    font-size: 13px;
    color: #64748b;
}

/* Actions */
.bm-actions {
    display: flex;
    gap: 6px;
}

.bm-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.bm-action-edit:hover {
    background: #ede9fe;
    color: #6d28d9;
    border-color: #c4b5fd;
}

.bm-action-view:hover {
    background: #dbeafe;
    color: #2563eb;
    border-color: #93c5fd;
}

.bm-action-delete:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}

.bm-empty {
    text-align: center;
    padding: 48px 24px;
    color: #94a3b8;
    font-size: 14px;
}

.bm-loading {
    text-align: center;
    padding: 64px 24px;
    color: #64748b;
}

/* ── Toast ── */
.bm-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    z-index: 10002;
    animation: bm-toast-in 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.bm-toast-success { background: linear-gradient(135deg, #10b981, #059669); }
.bm-toast-error { background: linear-gradient(135deg, #ef4444, #dc2626); }

@keyframes bm-toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Modal ── */
.bm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
}

.bm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    animation: bm-modal-in 0.25s ease;
}

.bm-modal-sm {
    max-width: 440px;
}

@keyframes bm-modal-in {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.bm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.bm-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.bm-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.bm-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.bm-modal-error {
    padding: 10px 24px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
}

.bm-modal-body {
    padding: 20px 24px;
}

.bm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.bm-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.bm-form-full {
    grid-column: 1 / -1;
}

.bm-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.bm-input {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #334155;
    background: #fff;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.bm-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.bm-textarea {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #334155;
    background: #fff;
    transition: border-color 0.2s;
    resize: vertical;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.bm-textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.bm-textarea-lg {
    min-height: 200px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.bm-toggles {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    padding-bottom: 2px;
}

.bm-toggle-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
}

.bm-toggle-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4f46e5;
    cursor: pointer;
}

.bm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
}

.bm-delete-msg {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .bm-header { flex-direction: column; align-items: flex-start; }
    .bm-header-right { width: 100%; justify-content: space-between; }
    .bm-form-row { grid-template-columns: 1fr; }
    .bm-post-title { max-width: 180px; }
    .bm-post-summary { max-width: 180px; }
    .blog-featured-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-toolbar { flex-direction: column; }
    .blog-search { max-width: 100%; }
    .blog-article-hero { min-height: 340px; }
    .blog-article-title { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .bm-table thead th:nth-child(5),
    .bm-table tbody td:nth-child(5) {
        display: none;
    }
    .bm-stats { gap: 8px; }
    .bm-stat { padding: 4px 10px; }
}
