/* ============================================================
   VIKG.ME — blog.css
   Blog-specific styles, extends main site design system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&family=DM+Mono:wght@400;500&display=swap');

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --blue:#1877F2;--blue-dark:#0f5ec4;--blue-light:#e8f1fd;--blue-mid:#4a96f5;
  --white:#fff;--off-white:#f7f9fc;--grey-100:#f0f2f5;--grey-200:#e4e6ea;
  --grey-300:#c7ccd6;--grey-400:#8d96a7;--grey-600:#4a5568;--grey-800:#1c2333;--ink:#111827;
  --serif:'Playfair Display',Georgia,serif;--sans:'DM Sans',system-ui,sans-serif;--mono:'DM Mono',monospace;
  --radius-sm:6px;--radius-md:10px;--radius-lg:16px;
  --shadow-sm:0 1px 4px rgba(0,0,0,.06);--shadow-md:0 4px 20px rgba(0,0,0,.08);--shadow-lg:0 8px 40px rgba(0,0,0,.10);
  --content-width:740px;--sidebar-width:300px;
}
html{scroll-behavior:smooth}
body{background:var(--white);color:var(--ink);font-family:var(--sans);line-height:1.65;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;display:block}
a{color:inherit}

/* ── NAV (shared) ── */
#navbar{position:fixed;top:0;left:0;right:0;z-index:200;height:68px;background:rgba(255,255,255,.95);backdrop-filter:blur(16px);border-bottom:1px solid var(--grey-200);transition:box-shadow .3s}
#navbar.scrolled{box-shadow:0 2px 16px rgba(0,0,0,.07)}
.nav-inner{max-width:1180px;margin:0 auto;padding:0 5vw;height:100%;display:flex;align-items:center;justify-content:space-between}
.nav-logo{font-family:var(--serif);font-size:1.5rem;font-weight:900;color:var(--ink);text-decoration:none;letter-spacing:-.03em}
.nav-logo span{color:var(--blue)}
.nav-links{display:flex;gap:2rem;list-style:none;align-items:center}
.nav-links a{font-size:.875rem;font-weight:500;color:var(--grey-600);text-decoration:none;transition:color .2s}
.nav-links a:hover,.nav-links a.active{color:var(--blue)}
.nav-cta{background:var(--blue)!important;color:var(--white)!important;padding:.45rem 1.1rem;border-radius:var(--radius-sm);font-weight:600!important}
.nav-cta:hover{background:var(--blue-dark)!important}
.nav-hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:4px;background:none;border:none}
.nav-hamburger span{display:block;width:22px;height:2px;background:var(--ink);border-radius:2px}
.mobile-nav{display:none;position:fixed;top:68px;left:0;right:0;background:rgba(255,255,255,.98);backdrop-filter:blur(16px);border-bottom:1px solid var(--grey-200);padding:1.25rem 5vw;z-index:199;flex-direction:column}
.mobile-nav.open{display:flex}
.mobile-nav a{font-size:1rem;font-weight:500;color:var(--grey-800);text-decoration:none;padding:.75rem 0;border-bottom:1px solid var(--grey-100);display:block}
.mobile-nav a:last-child{border:none;color:var(--blue);font-weight:600}

/* ── BUTTONS ── */
.btn{display:inline-flex;align-items:center;gap:.4rem;padding:.75rem 1.5rem;border-radius:var(--radius-sm);font-family:var(--sans);font-weight:600;font-size:.9rem;text-decoration:none;cursor:pointer;border:2px solid transparent;transition:background .2s,border-color .2s,transform .15s}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--blue);color:var(--white);border-color:var(--blue)}
.btn-primary:hover{background:var(--blue-dark)}
.btn-outline{background:transparent;color:var(--blue);border-color:var(--blue)}
.btn-outline:hover{background:var(--blue-light)}
.btn-sm{padding:.45rem .9rem;font-size:.8rem}

/* ── SECTION LABEL ── */
.section-label{font-family:var(--mono);font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:var(--blue);margin-bottom:.6rem;display:block}

/* ── FOOTER ── */
footer{background:var(--grey-800);color:rgba(255,255,255,.55);padding:60px 5vw 30px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:3rem;padding-bottom:2.5rem;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:2rem}
.footer-logo{font-family:var(--serif);font-size:1.5rem;font-weight:900;color:var(--white);text-decoration:none;display:inline-block;margin-bottom:.75rem;letter-spacing:-.03em}
.footer-logo span{color:var(--blue-mid)}
.footer-tagline{font-size:.85rem;line-height:1.65;max-width:220px}
.footer-col h4{font-family:var(--mono);font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.75);margin-bottom:1rem}
.footer-links{list-style:none;display:flex;flex-direction:column;gap:.55rem}
.footer-links a{color:rgba(255,255,255,.5);text-decoration:none;font-size:.85rem;transition:color .2s}
.footer-links a:hover{color:var(--blue-mid)}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;font-size:.78rem}
.social-links{display:flex;gap:1.25rem}
.social-links a{color:rgba(255,255,255,.4);text-decoration:none;font-size:.82rem;transition:color .2s}
.social-links a:hover{color:var(--blue-mid)}

/* ── BLOG LISTING ── */
.blog-hero{padding:100px 5vw 60px;background:var(--blue);color:white}
.blog-hero-inner{max-width:1180px;margin:0 auto}
.blog-hero h1{font-family:var(--serif);font-size:clamp(2.2rem,4vw,3.2rem);font-weight:900;color:white;letter-spacing:-.03em;margin-bottom:.75rem}
.blog-hero p{font-size:1.05rem;color:rgba(255,255,255,.8);max-width:560px;line-height:1.7}

/* Filter bar */
.blog-filters{background:var(--white);border-bottom:1px solid var(--grey-200);padding:0 5vw;position:sticky;top:68px;z-index:100}
.blog-filters-inner{max-width:1180px;margin:0 auto;display:flex;gap:0;overflow-x:auto;scrollbar-width:none}
.blog-filters-inner::-webkit-scrollbar{display:none}
.filter-tab{padding:1rem 1.25rem;font-size:.85rem;font-weight:600;color:var(--grey-400);cursor:pointer;border:none;background:none;border-bottom:2px solid transparent;white-space:nowrap;transition:color .2s,border-color .2s;font-family:var(--sans)}
.filter-tab.active,.filter-tab:hover{color:var(--blue);border-bottom-color:var(--blue)}

/* Search bar */
.blog-search-wrap{padding:1.5rem 5vw;background:var(--off-white);border-bottom:1px solid var(--grey-200)}
.blog-search-inner{max-width:1180px;margin:0 auto;position:relative}
.blog-search{width:100%;max-width:480px;padding:.7rem 1rem .7rem 2.5rem;border:1.5px solid var(--grey-200);border-radius:var(--radius-sm);font-family:var(--sans);font-size:.9rem;background:white;outline:none;transition:border-color .2s}
.blog-search:focus{border-color:var(--blue)}
.search-icon{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);color:var(--grey-400);font-size:.9rem}

/* Post grid */
.blog-main{padding:50px 5vw 90px;background:var(--white)}
.blog-main-inner{max-width:1180px;margin:0 auto}
.posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.post-card{background:var(--white);border:1px solid var(--grey-200);border-radius:var(--radius-md);overflow:hidden;text-decoration:none;color:inherit;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}
.post-card:hover{box-shadow:var(--shadow-md);transform:translateY(-3px)}
.post-card-thumb{height:180px;background:linear-gradient(135deg,var(--blue) 0%,var(--blue-dark) 100%);display:flex;align-items:center;justify-content:center;font-size:2.5rem;flex-shrink:0;overflow:hidden}
.post-card-thumb img{width:100%;height:100%;object-fit:cover}
/* No hero image → thin 5px accent strip, more text shows */
.post-card-strip{height:5px;background:linear-gradient(90deg,var(--blue),var(--blue-mid));flex-shrink:0}
.post-card-no-image .post-card-body{padding-top:1.5rem}
.post-card-body{padding:1.25rem;flex:1;display:flex;flex-direction:column}
.post-cat{font-family:var(--mono);font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;color:var(--blue);margin-bottom:.5rem}
.post-card h3{font-family:var(--serif);font-size:1.1rem;font-weight:700;line-height:1.3;margin-bottom:.5rem;letter-spacing:-.02em}
.post-card p{font-size:.82rem;color:var(--grey-600);line-height:1.6;flex:1;margin-bottom:.75rem}
.post-meta{font-size:.72rem;color:var(--grey-400);display:flex;gap:.75rem;align-items:center}
.post-meta span{display:flex;align-items:center;gap:.25rem}
.featured-badge{display:inline-block;font-family:var(--mono);font-size:.6rem;letter-spacing:.1em;text-transform:uppercase;background:var(--blue);color:white;padding:.15rem .5rem;border-radius:3px;margin-bottom:.5rem}
.no-posts{text-align:center;padding:4rem;color:var(--grey-400);grid-column:1/-1}
.no-posts h3{font-family:var(--serif);font-size:1.5rem;margin-bottom:.5rem;color:var(--grey-600)}

/* Pagination */
.pagination{display:flex;justify-content:center;gap:.5rem;margin-top:3rem;align-items:center}
.page-btn{width:36px;height:36px;border:1.5px solid var(--grey-200);border-radius:var(--radius-sm);background:white;cursor:pointer;font-family:var(--sans);font-size:.85rem;font-weight:600;color:var(--grey-600);transition:all .2s;display:flex;align-items:center;justify-content:center}
.page-btn.active,.page-btn:hover{background:var(--blue);border-color:var(--blue);color:white}
.page-btn:disabled{opacity:.3;cursor:not-allowed}

/* ── SINGLE POST ── */
.post-layout{max-width:1180px;margin:0 auto;padding:40px 5vw 80px;display:grid;grid-template-columns:var(--content-width) 1fr;gap:4rem;align-items:start}
.post-content-wrap{}

/* Hero image */
.post-hero{width:100%;height:420px;object-fit:cover;border-radius:var(--radius-lg);margin-bottom:2.5rem;background:linear-gradient(135deg,var(--blue),var(--blue-dark))}
.post-hero-emoji{width:100%;height:420px;border-radius:var(--radius-lg);margin-bottom:2.5rem;background:linear-gradient(135deg,var(--blue),var(--blue-dark));display:flex;align-items:center;justify-content:center;font-size:5rem}
/* No hero image → thin 6px strip */
.post-hero-strip{width:100%;height:6px;background:linear-gradient(90deg,var(--blue),var(--blue-mid));border-radius:3px;margin-bottom:2.5rem}

/* Post header */
.post-header{margin-bottom:2rem}
.post-header .post-cat{font-family:var(--mono);font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);margin-bottom:.75rem;display:block}
.post-header h1{font-family:var(--serif);font-size:clamp(2rem,3.5vw,2.8rem);font-weight:900;letter-spacing:-.03em;line-height:1.12;margin-bottom:1rem;color:var(--ink)}
.post-header .post-meta{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;font-size:.82rem;color:var(--grey-400);padding:1rem 0;border-top:1px solid var(--grey-200);border-bottom:1px solid var(--grey-200);margin-bottom:2rem}
.post-author-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;border:2px solid var(--grey-200)}
.post-author-name{font-weight:600;color:var(--ink);font-size:.82rem}
.post-tags{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:1rem}
.post-tag{font-size:.72rem;padding:.2rem .6rem;background:var(--blue-light);color:var(--blue);border-radius:20px;font-weight:500}

/* Rich content styles */
.post-body{font-size:1.05rem;line-height:1.85;color:var(--grey-600)}
.post-body h2{font-family:var(--serif);font-size:1.7rem;font-weight:900;color:var(--ink);letter-spacing:-.02em;margin:2.5rem 0 1rem;line-height:1.2}
.post-body h3{font-family:var(--serif);font-size:1.3rem;font-weight:700;color:var(--ink);margin:2rem 0 .75rem;line-height:1.3}
.post-body p{margin-bottom:1.4rem}
.post-body a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.post-body a:hover{color:var(--blue-dark)}
.post-body ul,.post-body ol{margin:0 0 1.4rem 1.5rem}
.post-body li{margin-bottom:.5rem}
.post-body strong{color:var(--ink);font-weight:600}
.post-body em{font-style:italic}
.post-body img{border-radius:var(--radius-md);margin:2rem 0;box-shadow:var(--shadow-md);max-width:100%}
.post-body blockquote{border-left:4px solid var(--blue);padding:1.25rem 1.5rem;background:var(--blue-light);border-radius:0 var(--radius-md) var(--radius-md) 0;margin:2rem 0;font-family:var(--serif);font-size:1.15rem;font-style:italic;color:var(--ink)}
.post-body blockquote cite{display:block;font-size:.8rem;font-family:var(--sans);font-style:normal;color:var(--grey-400);margin-top:.5rem}
.post-body pre{background:var(--grey-800);color:#e2e8f0;border-radius:var(--radius-md);padding:1.5rem;overflow-x:auto;font-size:.85rem;line-height:1.6;margin:1.5rem 0}
.post-body code{background:var(--grey-100);padding:.15rem .4rem;border-radius:3px;font-family:var(--mono);font-size:.85em;color:var(--blue-dark)}
.post-body pre code{background:none;padding:0;color:inherit;font-size:inherit}
.post-body hr{border:none;border-top:1px solid var(--grey-200);margin:2.5rem 0}

/* Share bar */
.share-bar{display:flex;align-items:center;gap:.75rem;padding:1.5rem 0;border-top:1px solid var(--grey-200);border-bottom:1px solid var(--grey-200);margin:2.5rem 0;flex-wrap:wrap}
.share-label{font-size:.82rem;font-weight:600;color:var(--grey-600)}
.share-btn{display:inline-flex;align-items:center;gap:.4rem;padding:.45rem .9rem;border-radius:var(--radius-sm);font-size:.8rem;font-weight:600;text-decoration:none;transition:opacity .2s;cursor:pointer;border:none}
.share-linkedin{background:#0a66c2;color:white}
.share-twitter{background:#000;color:white}
.share-copy{background:var(--grey-100);color:var(--ink)}
.share-btn:hover{opacity:.85}

/* Author box */
.author-box{background:var(--off-white);border:1px solid var(--grey-200);border-radius:var(--radius-md);padding:1.75rem;display:flex;gap:1.25rem;align-items:flex-start;margin-top:2.5rem}
.author-avatar-lg{width:64px;height:64px;border-radius:50%;object-fit:cover;border:3px solid var(--grey-200);flex-shrink:0}
.author-info h4{font-family:var(--serif);font-size:1.05rem;font-weight:700;margin-bottom:.25rem}
.author-info p{font-size:.85rem;color:var(--grey-600);line-height:1.6;margin-bottom:.75rem}

/* Sidebar */
.post-sidebar{position:sticky;top:100px}
.sidebar-widget{background:var(--off-white);border:1px solid var(--grey-200);border-radius:var(--radius-md);padding:1.5rem;margin-bottom:1.25rem}
.sidebar-widget h3{font-family:var(--serif);font-size:1rem;font-weight:700;margin-bottom:1rem;color:var(--ink)}
.sidebar-post{display:flex;gap:.75rem;align-items:flex-start;padding:.75rem 0;border-bottom:1px solid var(--grey-200);text-decoration:none;color:inherit}
.sidebar-post:last-child{border:none;padding-bottom:0}
.sidebar-post-thumb{width:56px;height:56px;border-radius:var(--radius-sm);background:linear-gradient(135deg,var(--blue),var(--blue-dark));flex-shrink:0;overflow:hidden;display:flex;align-items:center;justify-content:center;font-size:1.4rem}
.sidebar-post-thumb img{width:100%;height:100%;object-fit:cover}
.sidebar-post h4{font-family:var(--serif);font-size:.88rem;font-weight:700;line-height:1.3;margin-bottom:.25rem}
.sidebar-post span{font-size:.72rem;color:var(--grey-400)}
.sidebar-cta{background:var(--blue);border-color:var(--blue);color:white}
.sidebar-cta h3{color:white}
.sidebar-cta p{font-size:.85rem;color:rgba(255,255,255,.8);margin-bottom:1rem}

/* Tags cloud */
.tags-cloud{display:flex;flex-wrap:wrap;gap:.4rem}
.tag-chip{font-size:.72rem;padding:.25rem .7rem;background:var(--white);border:1px solid var(--grey-200);border-radius:20px;color:var(--grey-600);text-decoration:none;transition:all .2s;cursor:pointer}
.tag-chip:hover,.tag-chip.active{background:var(--blue);border-color:var(--blue);color:white}

/* CTA strip at bottom of post */
.post-cta-strip{background:var(--blue);color:white;padding:60px 5vw;text-align:center;margin-top:0}
.post-cta-strip h2{font-family:var(--serif);font-size:2rem;font-weight:900;color:white;margin-bottom:.75rem}
.post-cta-strip p{color:rgba(255,255,255,.8);max-width:480px;margin:0 auto 2rem;font-size:.95rem}
.cta-row{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap}

/* ── ADMIN ── */
.admin-wrap{min-height:100vh;background:var(--off-white)}
.admin-nav{background:var(--grey-800);padding:.75rem 2rem;display:flex;align-items:center;justify-content:space-between}
.admin-nav-logo{font-family:var(--serif);font-size:1.2rem;font-weight:900;color:white;text-decoration:none}
.admin-nav-logo span{color:var(--blue-mid)}
.admin-nav-right{display:flex;align-items:center;gap:1rem}
.admin-nav-right a{font-size:.82rem;color:rgba(255,255,255,.6);text-decoration:none;transition:color .2s}
.admin-nav-right a:hover{color:white}
.admin-badge{background:rgba(24,119,242,.3);color:var(--blue-mid);padding:.2rem .6rem;border-radius:3px;font-size:.72rem;font-family:var(--mono)}

/* Dashboard */
.admin-content{max-width:1100px;margin:0 auto;padding:2.5rem 2rem}
.admin-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}
.admin-header h1{font-family:var(--serif);font-size:1.8rem;font-weight:900;color:var(--ink)}
.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:2rem}
.stat-card{background:var(--white);border:1px solid var(--grey-200);border-radius:var(--radius-md);padding:1.25rem}
.stat-card .stat-num{font-family:var(--serif);font-size:2rem;font-weight:900;color:var(--blue);line-height:1}
.stat-card .stat-label{font-size:.75rem;color:var(--grey-400);text-transform:uppercase;letter-spacing:.05em;margin-top:.2rem}

/* Posts table */
.posts-table{background:var(--white);border:1px solid var(--grey-200);border-radius:var(--radius-md);overflow:hidden}
.table-header{display:grid;grid-template-columns:3fr 1fr 1fr 1fr 120px;gap:1rem;padding:1rem 1.5rem;background:var(--grey-100);border-bottom:1px solid var(--grey-200);font-size:.75rem;font-weight:600;color:var(--grey-600);text-transform:uppercase;letter-spacing:.05em}
.table-row{display:grid;grid-template-columns:3fr 1fr 1fr 1fr 120px;gap:1rem;padding:1rem 1.5rem;border-bottom:1px solid var(--grey-100);align-items:center;transition:background .15s}
.table-row:last-child{border:none}
.table-row:hover{background:var(--off-white)}
.post-title-cell{font-weight:600;font-size:.88rem;color:var(--ink)}
.post-title-cell small{display:block;font-size:.72rem;font-weight:400;color:var(--grey-400);margin-top:.15rem;font-family:var(--mono)}
.status-pill{display:inline-block;padding:.2rem .6rem;border-radius:20px;font-size:.7rem;font-weight:600;font-family:var(--mono)}
.status-published{background:#dcfce7;color:#166534}
.status-draft{background:var(--grey-100);color:var(--grey-400)}
.action-btns{display:flex;gap:.4rem}
.action-btn{padding:.3rem .65rem;border-radius:var(--radius-sm);font-size:.75rem;font-weight:600;cursor:pointer;border:1px solid;transition:all .15s;font-family:var(--sans);text-decoration:none;display:inline-flex;align-items:center}
.action-edit{background:var(--blue-light);color:var(--blue);border-color:var(--blue-light)}
.action-edit:hover{background:var(--blue);color:white;border-color:var(--blue)}
.action-delete{background:#fee2e2;color:#dc2626;border-color:#fee2e2}
.action-delete:hover{background:#dc2626;color:white;border-color:#dc2626}
.action-view{background:var(--grey-100);color:var(--grey-600);border-color:var(--grey-100)}
.action-view:hover{background:var(--grey-800);color:white;border-color:var(--grey-800)}

/* Editor */
.editor-wrap{max-width:1100px;margin:0 auto;padding:2rem}
.editor-layout{display:grid;grid-template-columns:1fr 320px;gap:2rem;align-items:start}
.editor-main{background:var(--white);border:1px solid var(--grey-200);border-radius:var(--radius-md);padding:2rem}
.editor-sidebar-panel{display:flex;flex-direction:column;gap:1rem}
.editor-sidebar-card{background:var(--white);border:1px solid var(--grey-200);border-radius:var(--radius-md);padding:1.25rem}
.editor-sidebar-card h3{font-size:.82rem;font-weight:700;color:var(--ink);margin-bottom:1rem;text-transform:uppercase;letter-spacing:.05em;font-family:var(--mono)}
.form-group{margin-bottom:1rem}
.form-group label{display:block;font-size:.78rem;font-weight:600;color:var(--grey-600);margin-bottom:.35rem}
.form-input{width:100%;padding:.65rem .9rem;border:1.5px solid var(--grey-200);border-radius:var(--radius-sm);font-family:var(--sans);font-size:.88rem;color:var(--ink);background:var(--white);outline:none;transition:border-color .2s}
.form-input:focus{border-color:var(--blue)}
select.form-input{cursor:pointer}
textarea.form-input{resize:vertical;min-height:80px}

/* WYSIWYG toolbar */
.editor-toolbar{display:flex;flex-wrap:wrap;gap:.25rem;padding:.75rem;background:var(--grey-100);border-bottom:1px solid var(--grey-200);border-radius:var(--radius-sm) var(--radius-sm) 0 0}
.toolbar-btn{width:32px;height:32px;border:1px solid transparent;border-radius:var(--radius-sm);background:none;cursor:pointer;font-size:.85rem;display:flex;align-items:center;justify-content:center;color:var(--grey-600);transition:all .15s;font-family:var(--sans);font-weight:700}
.toolbar-btn:hover,.toolbar-btn.active{background:var(--white);border-color:var(--grey-200);color:var(--blue)}
.toolbar-sep{width:1px;background:var(--grey-200);margin:0 .2rem;align-self:stretch}
.editor-area{min-height:500px;padding:1.5rem;outline:none;font-size:1rem;line-height:1.75;color:var(--ink);font-family:var(--sans)}
.editor-area:empty::before{content:attr(data-placeholder);color:var(--grey-300)}
.editor-area h2{font-family:var(--serif);font-size:1.6rem;font-weight:900;margin:2rem 0 .75rem;color:var(--ink)}
.editor-area h3{font-family:var(--serif);font-size:1.2rem;font-weight:700;margin:1.5rem 0 .5rem;color:var(--ink)}
.editor-area blockquote{border-left:4px solid var(--blue);padding:1rem 1.25rem;background:var(--blue-light);margin:1.5rem 0;border-radius:0 var(--radius-sm) var(--radius-sm) 0;font-style:italic}
.editor-area a{color:var(--blue)}
.editor-area ul,.editor-area ol{margin:0 0 1rem 1.5rem}
.editor-area img{max-width:100%;border-radius:var(--radius-md);margin:1rem 0}
.editor-area:focus{outline:none}

/* Toggle switch */
.toggle-wrap{display:flex;align-items:center;justify-content:space-between}
.toggle-label{font-size:.85rem;color:var(--ink);font-weight:500}
.toggle{position:relative;width:44px;height:24px;flex-shrink:0}
.toggle input{opacity:0;width:0;height:0}
.toggle-slider{position:absolute;cursor:pointer;inset:0;background:var(--grey-300);border-radius:12px;transition:.3s}
.toggle-slider::before{content:'';position:absolute;width:18px;height:18px;left:3px;bottom:3px;background:white;border-radius:50%;transition:.3s}
input:checked+.toggle-slider{background:var(--blue)}
input:checked+.toggle-slider::before{transform:translateX(20px)}

/* Image upload */
.img-upload-area{border:2px dashed var(--grey-300);border-radius:var(--radius-md);padding:2rem;text-align:center;cursor:pointer;transition:all .2s;position:relative}
.img-upload-area:hover{border-color:var(--blue);background:var(--blue-light)}
.img-upload-area input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.img-upload-preview{width:100%;height:140px;object-fit:cover;border-radius:var(--radius-sm);margin-bottom:.5rem}
.upload-hint{font-size:.78rem;color:var(--grey-400)}

/* Login */
.login-page{min-height:100vh;background:var(--off-white);display:flex;align-items:center;justify-content:center;padding:2rem}
.login-card{background:var(--white);border:1px solid var(--grey-200);border-radius:var(--radius-lg);padding:2.5rem;width:100%;max-width:400px;box-shadow:var(--shadow-lg)}
.login-logo{font-family:var(--serif);font-size:1.5rem;font-weight:900;color:var(--ink);text-decoration:none;display:block;text-align:center;margin-bottom:.5rem}
.login-logo span{color:var(--blue)}
.login-subtitle{text-align:center;font-size:.85rem;color:var(--grey-400);margin-bottom:2rem}
.login-title{font-family:var(--serif);font-size:1.3rem;font-weight:700;text-align:center;margin-bottom:1.5rem}
.login-error{background:#fee2e2;color:#dc2626;padding:.75rem 1rem;border-radius:var(--radius-sm);font-size:.85rem;margin-bottom:1rem;display:none}
.login-btn{width:100%;padding:.85rem;background:var(--blue);color:white;border:none;border-radius:var(--radius-sm);font-family:var(--sans);font-weight:600;font-size:.95rem;cursor:pointer;transition:background .2s;margin-top:.5rem}
.login-btn:hover{background:var(--blue-dark)}

/* Responsive */
@media(max-width:1024px){
  .post-layout{grid-template-columns:1fr;gap:2rem}
  .post-sidebar{position:static}
  .editor-layout{grid-template-columns:1fr}
  .posts-grid{grid-template-columns:1fr 1fr}
  .stats-row{grid-template-columns:1fr 1fr}
  .table-header,.table-row{grid-template-columns:3fr 1fr 120px}
  .table-header>*:nth-child(2),.table-header>*:nth-child(4),
  .table-row>*:nth-child(2),.table-row>*:nth-child(4){display:none}
  .footer-grid{grid-template-columns:1fr 1fr;gap:2rem}
}
@media(max-width:700px){
  .posts-grid{grid-template-columns:1fr}
  .stats-row{grid-template-columns:1fr 1fr}
  .nav-links{display:none}
  .nav-hamburger{display:flex}
  .footer-bottom{flex-direction:column;gap:1rem;text-align:center}
}
@media(max-width:400px){
  .footer-grid{grid-template-columns:1fr}
}
