/* ==========================================================================
   SH Helper Blog & Blogger Studio Stylesheet
   Modern, responsive, mobile-first design with clean typography & animations
   ========================================================================== */

:root {
    --blog-primary: #2563eb;
    --blog-primary-dark: #1d4ed8;
    --blog-primary-light: #eff6ff;
    --blog-accent: #06b6d4;
    --blog-text: #0f172a;
    --blog-text-muted: #64748b;
    --blog-border: #e2e8f0;
    --blog-bg: #f8fafc;
    --blog-card-bg: #ffffff;
    --blog-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --blog-shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
    --blog-shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.12);
    --blog-radius: 14px;
    --font-heading: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

/* ==========================================================================
   Global / Layout Helpers
   ========================================================================== */
.blog-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-badge-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.blog-badge-green {
    background: #dcfce7;
    color: #15803d;
}

.blog-badge-orange {
    background: #ffedd5;
    color: #c2410c;
}

.blog-badge-purple {
    background: #f3e8ff;
    color: #7e22ce;
}

/* ==========================================================================
   Header Blog Elements
   ========================================================================== */
.desktop-nav-link.blog-highlight {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #2563eb !important;
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.desktop-nav-link.blog-highlight:hover {
    background: #2563eb;
    color: #ffffff !important;
    border-color: #2563eb;
}

/* ==========================================================================
   Blog Home Page (blog.html)
   ========================================================================== */
.blog-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 50px 0 40px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.blog-hero-content {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.blog-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.blog-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.8px;
}

.blog-hero-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Blog Search & Filter Bar */
.blog-search-box {
    position: relative;
    max-width: 560px;
    margin: 0 auto 24px;
}

.blog-search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: rgba(255, 255, 255, 0.96);
    border: 1.5px solid transparent;
    border-radius: 50px;
    font-size: 1rem;
    color: #0f172a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.blog-search-input:focus {
    background: #ffffff;
    border-color: #38bdf8;
    outline: none;
    box-shadow: 0 8px 28px rgba(56, 189, 248, 0.35);
}

.blog-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

/* Category Pills */
.blog-category-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.blog-cat-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-cat-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.blog-cat-btn.active {
    background: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

/* Featured Spotlight Banner */
.blog-featured-card {
    background: #ffffff;
    border-radius: var(--blog-radius);
    border: 1px solid var(--blog-border);
    margin: 35px 0 45px;
    overflow: hidden;
    box-shadow: var(--blog-shadow-md);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.blog-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--blog-shadow-lg);
}

.blog-featured-img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-height: 380px;
    object-fit: cover;
    background: #0f172a;
    display: block;
}

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

.blog-featured-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin: 12px 0 10px;
}

.blog-featured-excerpt {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Post Cards Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 26px;
    margin: 30px 0 60px;
}

.blog-post-card {
    background: #ffffff;
    border-radius: var(--blog-radius);
    border: 1px solid var(--blog-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--blog-shadow-sm);
    transition: all 0.22s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--blog-shadow-md);
    border-color: #cbd5e1;
}

.blog-post-thumb-wrap {
    position: relative;
    width: 100%;
    height: 190px;
    background: #0f172a;
    overflow: hidden;
}

.blog-post-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-post-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

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

.blog-post-card-title {
    font-size: 1.22rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-card-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-author-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.blog-author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
    border: 1.5px solid #e2e8f0;
    flex-shrink: 0;
}

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

.blog-author-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-post-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.blog-post-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: #64748b;
    margin-left: auto;
}

.blog-post-stat-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Become a Blogger CTA Banner */
.blog-cta-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    border-radius: var(--blog-radius);
    padding: 40px 30px;
    color: white;
    text-align: center;
    margin: 40px 0 70px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: var(--blog-shadow-md);
}

.blog-cta-banner h2 {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.blog-cta-banner p {
    color: #cbd5e1;
    max-width: 580px;
    margin: 0 auto 22px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.blog-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    color: white;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.4);
    transition: all 0.25s ease;
}

.blog-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.55);
}

/* ==========================================================================
   Become a Blogger Onboarding (become-blogger.html)
   ========================================================================== */
.onboarding-card {
    max-width: 540px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--blog-border);
    box-shadow: var(--blog-shadow-lg);
    padding: 38px 30px;
}

.onboarding-header {
    text-align: center;
    margin-bottom: 30px;
}

.onboarding-header h1 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.onboarding-header p {
    color: #64748b;
    font-size: 0.98rem;
    line-height: 1.5;
}

.avatar-setup-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
}

.avatar-preview-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: 4px solid #ffffff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    font-weight: 800;
    color: #ffffff;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
}

.avatar-preview-circle:hover {
    transform: scale(1.04);
}

.avatar-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.avatar-badge-tag {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.avatar-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.btn-upload-photo {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-upload-photo:hover {
    background: #dbeafe;
}

.btn-skip-photo {
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-skip-photo:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.form-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 7px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.98rem;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    background: #ffffff;
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

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

.form-help-text {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
}

.btn-create-blogger {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 24px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-create-blogger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.4);
}

.btn-create-blogger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   Blogger Dashboard (blogger-dashboard.html)
   ========================================================================== */
.dashboard-topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--blog-border);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--blog-shadow-sm);
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #0f172a;
}

.dashboard-brand h1 {
    font-size: 1.25rem;
    font-weight: 800;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-new-post {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.btn-new-post:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* Blogger 3-line Hamburger Profile Widget */
.blogger-profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px 5px 6px;
    border: 1px solid var(--blog-border);
    border-radius: 30px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
}

.blogger-profile-trigger:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.blogger-profile-trigger-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
}

.blogger-profile-trigger-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Profile Dropdown Menu */
.blogger-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: #ffffff;
    border: 1px solid var(--blog-border);
    border-radius: 12px;
    box-shadow: var(--blog-shadow-lg);
    padding: 8px 0;
    display: none;
    z-index: 1000;
}

.blogger-dropdown-menu.active {
    display: block;
    animation: dropFadeIn 0.2s ease;
}

@keyframes dropFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.blogger-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
    cursor: pointer;
}

.blogger-dropdown-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.blogger-dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 0;
}

/* Dashboard Stats Cards */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin: 24px 0 30px;
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--blog-border);
    padding: 20px;
    box-shadow: var(--blog-shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
}

/* Dashboard Posts Table / Grid */
.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.dashboard-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 2px;
}

.dashboard-tab-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.dashboard-tab-btn.active {
    color: #2563eb;
}

.dashboard-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: #2563eb;
    border-radius: 2px;
}

/* Post Row / Card with 3-line Action Menu */
.dashboard-post-item {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--blog-border);
    padding: 16px 20px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--blog-shadow-sm);
    transition: all 0.2s ease;
}

.dashboard-post-item:hover {
    border-color: #cbd5e1;
    box-shadow: var(--blog-shadow-md);
}

.dashboard-post-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}

.dashboard-post-thumb {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    object-fit: cover;
    background: #0f172a;
    flex-shrink: 0;
}

.dashboard-post-info {
    min-width: 0;
    flex: 1;
}

.dashboard-post-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-post-meta {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* 3-Dots / 3-Line Post Menu */
.post-menu-wrap {
    position: relative;
    flex-shrink: 0;
}

.post-menu-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    transition: all 0.2s;
}

.post-menu-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.post-actions-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 180px;
    background: #ffffff;
    border: 1px solid var(--blog-border);
    border-radius: 10px;
    box-shadow: var(--blog-shadow-lg);
    padding: 6px 0;
    display: none;
    z-index: 50;
}

.post-actions-dropdown.active {
    display: block;
    animation: dropFadeIn 0.15s ease;
}

.post-action-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 0.88rem;
    color: #334155;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.15s;
    text-decoration: none;
    box-sizing: border-box;
}

.post-action-option:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.post-action-option.delete-opt {
    color: #dc2626;
}

.post-action-option.delete-opt:hover {
    background: #fef2f2;
    color: #b91c1c;
}

/* ==========================================================================
   Blogger Public Profile (blogger-profile.html)
   ========================================================================== */
.blogger-profile-header-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--blog-border);
    padding: 35px;
    margin: 30px 0;
    box-shadow: var(--blog-shadow-md);
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.blogger-profile-big-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background: #0f172a;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.blogger-profile-details {
    flex: 1;
    min-width: 260px;
}

.blogger-profile-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.blogger-profile-name {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
}

.blogger-profile-bio {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 650px;
}

.blogger-stats-bar {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.blogger-stat-unit {
    display: flex;
    flex-direction: column;
}

.blogger-stat-unit-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

.blogger-stat-unit-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
}

.btn-follow {
    background: #2563eb;
    color: white;
    border: none;
    padding: 9px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-follow:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-follow.following {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

/* ==========================================================================
   Post Editor (blog-editor.html)
   ========================================================================== */
.editor-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #ffffff;
}

.editor-header-bar {
    padding: 12px 24px;
    background: #ffffff;
    border-bottom: 1px solid var(--blog-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 100;
}

.editor-mode-selector {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
}

.editor-mode-btn {
    background: transparent;
    border: none;
    padding: 7px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s;
}

.editor-mode-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.editor-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-editor-secondary {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-editor-secondary:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.btn-editor-primary {
    background: #2563eb;
    border: none;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25);
}

.btn-editor-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Editor Main Body Layout */
.editor-body-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.editor-canvas-pane {
    flex: 1;
    overflow-y: auto;
    padding: 40px 20px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.editor-content-sheet {
    width: 100%;
    max-width: 820px;
}

.editor-title-input {
    width: 100%;
    border: none;
    font-size: 2.4rem;
    font-weight: 800;
    color: #0f172a;
    outline: none;
    margin-bottom: 20px;
    line-height: 1.25;
    font-family: inherit;
    background: transparent;
}

.editor-title-input::placeholder {
    color: #cbd5e1;
}

/* Post Meta / Category Row in Editor */
.editor-meta-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.editor-cat-select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.85rem;
    color: #334155;
    font-weight: 600;
    outline: none;
}

/* Floating / Inline + Block Inserter */
.block-inserter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    padding: 10px;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    justify-content: center;
    transition: all 0.2s;
}

.block-inserter-bar:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.btn-open-block-menu {
    background: #2563eb;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.btn-open-block-menu:hover {
    transform: scale(1.1);
}

/* Block Insertion Modal / Grid */
.block-picker-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border: 1px solid var(--blog-border);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
    padding: 24px;
    width: 90%;
    max-width: 580px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 2000;
    display: none;
}

.block-picker-modal.active {
    display: block;
    animation: dropFadeIn 0.2s ease;
}

.block-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.block-pick-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.block-pick-card:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.block-pick-card svg {
    margin-bottom: 6px;
    color: #2563eb;
}

.block-pick-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
}

/* Individual Editor Block Renderers */
.editor-block-item {
    position: relative;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: border 0.15s;
}

.editor-block-item:hover {
    border-color: #e2e8f0;
    background: #fafafa;
}

.block-delete-btn {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    z-index: 10;
}

.editor-block-item:hover .block-delete-btn {
    display: flex;
}

/* 15 Block Styles */
.block-heading-h1 { font-size: 1.9rem; font-weight: 800; color: #0f172a; margin: 10px 0; outline: none; }
.block-heading-h2 { font-size: 1.55rem; font-weight: 700; color: #0f172a; margin: 10px 0; outline: none; }
.block-heading-h3 { font-size: 1.3rem; font-weight: 700; color: #0f172a; margin: 8px 0; outline: none; }
.block-heading-h4 { font-size: 1.15rem; font-weight: 600; color: #0f172a; margin: 8px 0; outline: none; }
.block-paragraph { font-size: 1.05rem; line-height: 1.7; color: #334155; outline: none; min-height: 24px; }
.block-quote { border-left: 4px solid #2563eb; padding: 12px 20px; font-style: italic; color: #475569; background: #f8fafc; border-radius: 0 8px 8px 0; }
.block-callout { padding: 16px; border-radius: 10px; margin: 12px 0; display: flex; gap: 12px; align-items: flex-start; }
.block-callout-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.block-callout-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.block-callout-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.block-code { background: #0f172a; color: #e2e8f0; padding: 16px; border-radius: 10px; font-family: 'Consolas', monospace; font-size: 0.95rem; overflow-x: auto; position: relative; }
.block-faq-item { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.block-checklist-item { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 1rem; }
.block-tool-card { border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 16px; background: #ffffff; display: flex; align-items: center; justify-content: space-between; }
.block-btn-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 8px; background: #2563eb; color: white; text-decoration: none; font-weight: 700; }

/* Photo Manager Panel (Max 20 Images with Copyable URLs) */
.editor-assets-sidebar {
    width: 320px;
    background: #f8fafc;
    border-left: 1px solid var(--blog-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.25s;
}

.assets-header {
    padding: 16px;
    border-bottom: 1px solid var(--blog-border);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.assets-count-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    background: #eff6ff;
    color: #2563eb;
}

.assets-dropzone {
    margin: 14px;
    padding: 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s;
}

.assets-dropzone:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.assets-list {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.asset-thumb-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.asset-thumb-img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    background: #0f172a;
    flex-shrink: 0;
}

.asset-thumb-info {
    flex: 1;
    min-width: 0;
}

.asset-thumb-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-copy-url {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #334155;
    margin-top: 4px;
    transition: all 0.15s;
}

.btn-copy-url:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Custom Code Mode Studio */
.editor-code-studio {
    display: none;
    flex: 1;
    flex-direction: column;
    background: #0f172a;
    color: #e2e8f0;
    overflow: hidden;
}

.editor-code-studio.active {
    display: flex;
}

.code-tabs-bar {
    display: flex;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    padding: 0 10px;
}

.code-tab-btn {
    background: transparent;
    border: none;
    padding: 10px 18px;
    color: #94a3b8;
    font-family: 'Consolas', monospace;
    font-size: 0.88rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.code-tab-btn.active {
    color: #38bdf8;
    border-bottom-color: #38bdf8;
    background: #0f172a;
}

.code-editor-split {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.code-input-area {
    flex: 1;
    border: none;
    background: #0f172a;
    color: #e2e8f0;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.95rem;
    padding: 20px;
    resize: none;
    outline: none;
    line-height: 1.6;
}

.code-preview-frame {
    flex: 1;
    background: #ffffff;
    border: none;
    border-left: 2px solid #334155;
}

/* ==========================================================================
   Article Reader View (blog-post.html)
   ========================================================================== */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #2563eb);
    width: 0%;
    z-index: 1001;
    transition: width 0.1s;
}

.post-reader-container {
    max-width: 820px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

.post-reader-header {
    margin-bottom: 35px;
}

.post-reader-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 16px 0 18px;
    letter-spacing: -0.6px;
}

.post-reader-author-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 14px;
}

.post-reader-cover {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: var(--blog-shadow-md);
}

.post-article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #1e293b;
}

.post-article-body p {
    margin-bottom: 24px;
}

.post-article-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 24px 0;
}

/* Engagement Bar */
.post-engagement-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 50px 0;
    padding: 18px 24px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.btn-like-post {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    color: #475569;
    transition: all 0.2s;
}

.btn-like-post:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.btn-like-post.liked {
    background: #fee2e2;
    border-color: #ef4444;
    color: #dc2626;
}

/* Comments Section */
.post-comments-container {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.comment-card {
    background: #ffffff;
    border: 1px solid var(--blog-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}

/* ==========================================================================
   Mobile Responsiveness
   ========================================================================== */
@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 1.85rem;
    }
    .blog-featured-card {
        grid-template-columns: 1fr;
    }
    .blog-featured-img {
        max-height: 220px;
    }
    .blog-featured-body {
        padding: 22px;
    }
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .editor-assets-sidebar {
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transform: translateX(100%);
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    }
    .editor-assets-sidebar.open {
        transform: translateX(0);
    }
    .code-editor-split {
        flex-direction: column;
    }
    .post-reader-title {
        font-size: 1.85rem;
    }
    .blogger-profile-header-card {
        flex-direction: column;
        text-align: center;
    }
    .blogger-profile-name-row {
        justify-content: center;
    }
    .blogger-stats-bar {
        justify-content: center;
    }
}
