/* ============================================================
   BLOG & NEWS STYLESHEET - HUYMMO BOUTIQUE THEME (FULL SIDEBAR)
   ============================================================ */

:root {
    --blog-primary: #7047eb;
    --blog-primary-hover: #5d35d9;
    --blog-primary-subtle: #f3effe;
    --blog-accent: #06b6d4;
    --blog-text-main: #18181b;
    --blog-text-muted: #71717a;
    --blog-text-light: #a1a1aa;
    --blog-border: rgba(24, 24, 27, 0.08);
    --blog-border-focus: rgba(112, 71, 235, 0.35);
    --blog-card-bg: #ffffff;
    --blog-bg-subtle: #fafafa;
    --blog-radius-lg: 20px;
    --blog-radius-md: 12px;
    --blog-radius-sm: 8px;
    --blog-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03);
    --blog-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.05);
    --blog-shadow-hover: 0 14px 30px rgba(112, 71, 235, 0.12);
}

/* Full Width Main Layout for Dashboard/Store theme */
body.boutique-store-body .content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 28px 60px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Hero Banner Full Width Boutique Style */
.blog-boutique-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #faf8f5 55%, #f4f0ec 100%);
    border: 1px solid var(--blog-border);
    border-radius: 24px;
    padding: 36px 40px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    width: 100%;
    box-sizing: border-box;
}

.blog-boutique-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -30px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(112, 71, 235, 0.12) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
    pointer-events: none;
    filter: blur(28px);
}

.blog-boutique-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 25%;
    width: 300px;
    height: 180px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(30px);
}

.blog-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.blog-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(112, 71, 235, 0.18);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--blog-primary);
    text-transform: uppercase;
    box-shadow: var(--blog-shadow-sm);
    backdrop-filter: blur(8px);
}

.blog-hero-title {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    color: #18181b;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    position: relative;
    z-index: 2;
}

.blog-hero-title .serif-highlight {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: var(--blog-primary);
}

.blog-hero-desc {
    font-size: 14.5px;
    color: #52525b;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 0 22px;
    position: relative;
    z-index: 2;
}

/* Stat Ribbon */
.blog-stat-ribbon {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.blog-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: #ffffff;
    border: 1px solid var(--blog-border);
    border-radius: 999px;
    font-size: 12.5px;
    color: #52525b;
    font-weight: 600;
}

.blog-stat-chip .chip-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.blog-stat-chip strong {
    color: #18181b;
    font-weight: 700;
}

/* Full Width Controls Bar (Search + Categories) */
.blog-controls-bar {
    background: #ffffff;
    border: 1px solid var(--blog-border);
    border-radius: 18px;
    padding: 14px 18px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: var(--blog-shadow-sm);
    width: 100%;
    box-sizing: border-box;
}

.blog-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f8fa;
    border: 1px solid var(--blog-border);
    border-radius: 999px;
    padding: 6px 8px 6px 16px;
    min-width: 320px;
    flex: 0 1 420px;
    transition: all 0.2s ease;
}

.blog-search-form:focus-within {
    background: #ffffff;
    border-color: var(--blog-primary);
    box-shadow: 0 0 0 3px rgba(112, 71, 235, 0.1);
}

.blog-search-form input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13.5px;
    color: var(--blog-text-main);
    width: 100%;
    font-family: inherit;
}

.blog-search-form button {
    border: none;
    background: var(--blog-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.blog-search-form button:hover {
    background: var(--blog-primary-hover);
}

/* Category Filter Tags */
.blog-category-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: #52525b;
    text-decoration: none;
    background: #f8f8fa;
    border: 1px solid var(--blog-border);
    transition: all 0.2s ease;
}

.blog-cat-btn:hover {
    color: var(--blog-primary);
    border-color: rgba(112, 71, 235, 0.3);
    background: #ffffff;
}

.blog-cat-btn.active {
    background: var(--blog-primary);
    color: #ffffff;
    border-color: var(--blog-primary);
    box-shadow: 0 2px 8px rgba(112, 71, 235, 0.25);
}

.blog-cat-badge {
    font-size: 10.5px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
}

.blog-cat-btn.active .blog-cat-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Main Grid Layout: Full Width from Sidebar to Right Edge */
.blog-full-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .blog-full-layout {
        grid-template-columns: 1fr;
    }
}

/* Featured Post Card */
.blog-featured-card {
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--blog-shadow-md);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    width: 100%;
}

.blog-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--blog-shadow-hover);
    border-color: rgba(112, 71, 235, 0.25);
}

.blog-featured-thumb {
    position: relative;
    min-height: 280px;
    background: #f4f4f5;
    overflow: hidden;
}

.blog-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.blog-featured-card:hover .blog-featured-thumb img {
    transform: scale(1.04);
}

.blog-featured-ribbon {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.blog-featured-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--blog-text-muted);
    margin-bottom: 12px;
}

.blog-category-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--blog-primary-subtle);
    color: var(--blog-primary);
    font-weight: 700;
    font-size: 11.5px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.blog-category-tag:hover {
    background: #e9e1fc;
}

.blog-featured-title {
    font-size: 23px;
    font-weight: 800;
    line-height: 1.35;
    color: #18181b;
    margin: 0 0 12px;
}

.blog-featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-featured-title a:hover {
    color: var(--blog-primary);
}

.blog-featured-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #52525b;
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-author-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.blog-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blog-primary), #8b5cf6);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
}

.blog-author-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--blog-text-main);
}

.blog-read-time {
    font-size: 12px;
    color: var(--blog-text-muted);
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .blog-featured-card {
        grid-template-columns: 1fr;
    }
    .blog-featured-thumb {
        min-height: 200px;
    }
    .blog-featured-content {
        padding: 20px;
    }
}

/* Post Cards Grid (Auto Fill Full Width) */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
    margin-bottom: 32px;
    width: 100%;
}

.blog-card {
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--blog-shadow-sm);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--blog-shadow-hover);
    border-color: rgba(112, 71, 235, 0.25);
}

.blog-card-thumb {
    position: relative;
    height: 185px;
    background: #f4f4f5;
    overflow: hidden;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.blog-card:hover .blog-card-thumb img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-title {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.4;
    color: #18181b;
    margin: 8px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: var(--blog-primary);
}

.blog-card-summary {
    font-size: 13px;
    color: #52525b;
    line-height: 1.55;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(24, 24, 27, 0.05);
    font-size: 12px;
    color: var(--blog-text-muted);
}

/* Sidebar Widgets */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
}

.blog-widget {
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-lg);
    padding: 22px;
    box-shadow: var(--blog-shadow-sm);
}

.blog-widget-title {
    font-size: 15px;
    font-weight: 800;
    color: #18181b;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--blog-border);
}

.blog-widget-title i {
    color: var(--blog-primary);
}

.blog-mini-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blog-mini-item {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.blog-mini-item:hover {
    transform: translateX(3px);
}

.blog-mini-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--blog-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: #f4f4f5;
}

.blog-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-mini-info {
    flex: 1;
    min-width: 0;
}

.blog-mini-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #18181b;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-mini-item:hover .blog-mini-title {
    color: var(--blog-primary);
}

.blog-mini-date {
    font-size: 11.5px;
    color: var(--blog-text-muted);
}

.blog-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blog-cat-list-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--blog-radius-md);
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.blog-cat-list-link:hover {
    background: var(--blog-primary-subtle);
    color: var(--blog-primary);
    transform: translateX(2px);
}

.blog-cat-list-count {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 700;
}

.blog-cta-widget {
    background: linear-gradient(135deg, #7047eb, #8b5cf6);
    color: #ffffff;
    border-radius: var(--blog-radius-lg);
    padding: 24px;
    text-align: center;
}

.blog-cta-widget h4 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 8px;
}

.blog-cta-widget p {
    font-size: 12.5px;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0 0 16px;
}

.blog-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--blog-primary) !important;
    font-weight: 800;
    font-size: 12.5px;
    padding: 8px 18px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.blog-cta-btn:hover {
    transform: translateY(-2px);
}

/* Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
}

.blog-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--blog-radius-md);
    background: #ffffff;
    border: 1px solid var(--blog-border);
    color: var(--blog-text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.blog-page-btn:hover {
    color: var(--blog-primary);
    border-color: var(--blog-primary);
    background: var(--blog-primary-subtle);
}

.blog-page-btn.active {
    background: var(--blog-primary);
    color: #ffffff;
    border-color: var(--blog-primary);
    box-shadow: 0 2px 8px rgba(112, 71, 235, 0.3);
}

/* Empty State */
.blog-empty-state {
    text-align: center;
    padding: 50px 20px;
    background: #ffffff;
    border: 1px dashed var(--blog-border);
    border-radius: var(--blog-radius-lg);
    width: 100%;
}

/* ============================================================
   SINGLE BLOG POST DETAIL (FULL WIDTH BOUTIQUE)
   ============================================================ */
.blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }
}

.blog-detail-main-card {
    background: #ffffff;
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-lg);
    padding: 36px 40px;
    box-shadow: var(--blog-shadow-sm);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .blog-detail-main-card {
        padding: 20px;
    }
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--blog-text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.blog-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-breadcrumb a:hover {
    color: var(--blog-primary);
}

.blog-detail-title {
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 800;
    line-height: 1.3;
    color: #18181b;
    margin: 12px 0 16px;
    letter-spacing: -0.02em;
}

.blog-detail-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--blog-border);
    border-bottom: 1px solid var(--blog-border);
    margin-bottom: 28px;
}

.blog-detail-meta-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.blog-detail-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-detail-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blog-primary), #8b5cf6);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
}

.blog-detail-author-info strong {
    display: block;
    font-size: 13px;
    color: #18181b;
}

.blog-detail-author-info span {
    font-size: 11.5px;
    color: var(--blog-text-muted);
}

.blog-detail-share {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f4f4f5;
    color: #52525b;
    text-decoration: none;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-share-btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.blog-share-btn.fb:hover { background: #1877f2; }
.blog-share-btn.tg:hover { background: #229ed9; }
.blog-share-btn.x:hover { background: #000000; }
.blog-share-btn.copy:hover { background: var(--blog-primary); }

.blog-detail-cover {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    background: #f4f4f5;
    box-shadow: var(--blog-shadow-sm);
}

.blog-detail-cover img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Article Content Typography */
.blog-article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #27272a;
}

.blog-article-content p {
    margin: 0 0 20px;
}

.blog-article-content h2 {
    font-size: 24px;
    font-weight: 800;
    color: #18181b;
    margin: 36px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(24, 24, 27, 0.08);
}

.blog-article-content h3 {
    font-size: 19px;
    font-weight: 700;
    color: #1f2937;
    margin: 28px 0 12px;
}

.blog-article-content ul, 
.blog-article-content ol {
    margin: 0 0 20px;
    padding-left: 22px;
}

.blog-article-content li {
    margin-bottom: 8px;
}

.blog-article-content blockquote {
    margin: 26px 0;
    padding: 16px 22px;
    border-left: 4px solid var(--blog-primary);
    background: var(--blog-primary-subtle);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #4b5563;
    font-size: 16px;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.blog-article-content pre {
    background: #18181b;
    color: #f4f4f5;
    padding: 16px 18px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13.5px;
}

/* ============================================================
   ADMIN FULL-WIDTH STYLING
   ============================================================ */
.admin-full-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 30px 60px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.admin-blog-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
    width: 100%;
}

.admin-blog-table-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-lg);
    box-shadow: var(--blog-shadow-sm);
    overflow: hidden;
}

/* ============================================================
   ADMIN BLOG FULL STYLING & RICH TEXT EDITOR
   ============================================================ */
.admin-blog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 16px;
    border: 1px solid rgba(24, 24, 27, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.admin-blog-stat-card {
    background: #ffffff;
    border: 1px solid rgba(24, 24, 27, 0.08);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-blog-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.admin-blog-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.admin-blog-stat-icon.primary {
    background: rgba(112, 71, 235, 0.1);
    color: #7047eb;
}

.admin-blog-stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.admin-blog-stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.admin-blog-stat-icon.info {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.admin-blog-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.admin-blog-stat-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
    font-weight: 500;
}

/* Filter bar */
.admin-blog-filter-bar {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(24, 24, 27, 0.06);
    background: #fafafa;
}

/* Table */
.admin-blog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.admin-blog-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.admin-blog-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.admin-blog-table tbody tr {
    transition: background 0.15s ease, opacity 0.3s ease, transform 0.3s ease;
}

.admin-blog-table tbody tr:hover {
    background: #f8fafc;
}

.admin-blog-row-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    display: block;
    background: #f1f5f9;
}

.admin-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.admin-badge-status.published {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.admin-badge-status.draft {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px;
}

.blog-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.blog-page-btn:hover {
    border-color: #7047eb;
    color: #7047eb;
}

.blog-page-btn.active {
    background: #7047eb;
    border-color: #7047eb;
    color: #ffffff;
}

/* ============================================================
   RICH TEXT WYSIWYG EDITOR STYLES
   ============================================================ */
.blog-editor-wrapper {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.blog-editor-wrapper:focus-within {
    border-color: #7047eb;
    box-shadow: 0 0 0 3px rgba(112, 71, 235, 0.12);
}

.blog-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    user-select: none;
    box-sizing: border-box;
}

.blog-editor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #475569;
    font-size: 13px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.blog-editor-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

.blog-editor-btn.active,
.blog-editor-btn:active {
    background: #7047eb;
    color: #ffffff;
    border-color: #7047eb;
}

.blog-editor-separator {
    width: 1px;
    height: 20px;
    background: #cbd5e1;
    margin: 0 4px;
}

.blog-editor-content {
    min-height: 360px;
    max-height: 650px;
    overflow-y: auto;
    padding: 18px 20px;
    font-size: 15px;
    line-height: 1.75;
    color: #1e293b;
    outline: none;
    background: #ffffff;
    box-sizing: border-box;
}

.blog-editor-content:empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
}

.blog-editor-content h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}

.blog-editor-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin: 16px 0 8px;
}

.blog-editor-content p {
    margin: 0 0 12px;
}

.blog-editor-content ul,
.blog-editor-content ol {
    margin: 0 0 14px;
    padding-left: 24px;
}

.blog-editor-content li {
    margin-bottom: 4px;
}

.blog-editor-content blockquote {
    border-left: 4px solid #7047eb;
    padding: 10px 16px;
    margin: 14px 0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    color: #475569;
    font-style: italic;
}

.blog-editor-content pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 14px 18px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    overflow-x: auto;
    margin: 14px 0;
}

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

.blog-editor-content a {
    color: #7047eb;
    text-decoration: underline;
}

#sourceEditor {
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    padding: 16px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    resize: vertical;
}

/* Standalone Public Mode (Khách chưa đăng nhập) */
.blog-public-wrapper .blog-boutique-hero,
.blog-public-wrapper .blog-controls-bar,
.blog-public-wrapper .blog-full-layout,
.blog-public-wrapper .blog-detail-layout {
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
}
