/* ============================================
   THE GENTLE MINDSET — style.css
   ============================================ */
:root {
  --bg:#F4EFEA; --fg:#2E2E2E; --card:#FBF9F7;
  --secondary:#A8BFA3; --muted:#E8E3DD; --muted-fg:#6B6B6B;
  --accent:#C48A6A; --accent-fg:#fff; --border:#E8E3DD;
  --radius:0.65rem;
  --shadow:0 4px 6px rgba(46,46,46,.07),0 1px 3px rgba(46,46,46,.06);
  --shadow-lg:0 10px 25px rgba(46,46,46,.08),0 4px 12px rgba(46,46,46,.05);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',sans-serif;background:var(--bg);color:var(--fg);line-height:1.6;min-height:100vh}
::selection{background:var(--accent);color:#fff}
h1,h2,h3,h4,h5,h6{font-family:'Playfair Display',serif;font-weight:700;letter-spacing:-.02em;line-height:1.2}
h1{font-size:clamp(2rem,5vw,3.5rem)}
h2{font-size:clamp(1.75rem,4vw,2.5rem)}
h3{font-size:clamp(1.25rem,3vw,1.75rem)}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.page-wrapper{min-height:100vh;display:flex;flex-direction:column}
main{flex:1}

/* Container */
.container{width:100%;max-width:1280px;margin:0 auto;padding:0 1rem}
@media(min-width:640px){.container{padding:0 1.5rem}}
@media(min-width:1024px){.container{padding:0 2rem}}
.content-container{max-width:860px;margin:0 auto}

/* Header */
.site-header{background:#f4efeb;border-bottom:1px solid rgba(232,227,221,.5);position:sticky;top:0;z-index:100;backdrop-filter:blur(8px)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:.5rem 0}
.site-logo img{height:7rem;width:auto;object-fit:contain}
@media(min-width:768px){.site-logo img{height:9rem}}
.main-nav{display:none;align-items:center;gap:2rem}
@media(min-width:768px){.main-nav{display:flex}}
.main-nav a,.mobile-nav a{font-size:.875rem;color:var(--fg);transition:color .2s}
.main-nav a:hover,.main-nav a.active,.mobile-nav a:hover,.mobile-nav a.active{color:var(--accent)}
.main-nav a.active{border-bottom:2px solid var(--accent);padding-bottom:2px}
.nav-icon-btn{padding:.5rem;background:none;border:none;cursor:pointer;color:var(--fg);border-radius:var(--radius);transition:background .2s;display:flex;align-items:center}
.nav-icon-btn:hover{background:var(--muted)}
.mobile-nav{display:flex;align-items:center;gap:1rem;padding:.75rem 0;border-top:1px solid rgba(232,227,221,.3);overflow-x:auto}
@media(min-width:768px){.mobile-nav{display:none}}

/* Footer */
.site-footer{background:var(--muted);border-top:1px solid rgba(232,227,221,.5);margin-top:5rem}
.footer-grid{display:grid;grid-template-columns:1fr;gap:2.5rem;padding:3rem 0}
@media(min-width:768px){.footer-grid{grid-template-columns:repeat(3,1fr)}}
.footer-brand h3{font-size:1.1rem;margin-bottom:.75rem}
.footer-brand p{font-size:.875rem;color:var(--muted-fg);line-height:1.7}
.footer-links h4{font-family:'Inter',sans-serif;font-size:.7rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;margin-bottom:.875rem}
.footer-links ul{list-style:none}
.footer-links li{margin-bottom:.4rem}
.footer-links a{font-size:.875rem;color:var(--muted-fg);transition:color .2s}
.footer-links a:hover{color:var(--accent)}
.footer-divider{height:1px;background:rgba(232,227,221,.5);margin-bottom:1.5rem}
.footer-bottom{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding-bottom:2.5rem;font-size:.75rem;color:var(--muted-fg)}
@media(min-width:768px){.footer-bottom{flex-direction:row;justify-content:space-between}}
.footer-bottom-links{display:flex;align-items:center;gap:1rem}
.footer-bottom-links a{color:var(--muted-fg);transition:color .2s}
.footer-bottom-links a:hover{color:var(--accent)}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.7rem 1.4rem;border-radius:var(--radius);font-size:.875rem;font-weight:500;cursor:pointer;border:none;transition:all .2s;font-family:'Inter',sans-serif;text-decoration:none;line-height:1}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{background:#b87a5a;transform:translateY(-1px);box-shadow:0 4px 15px rgba(196,138,106,.35)}
.btn-outline{background:transparent;color:var(--fg);border:1px solid rgba(46,46,46,.2)}
.btn-outline:hover{background:var(--card)}
.btn-ghost{background:transparent;color:var(--muted-fg);border:1px solid var(--border)}
.btn-ghost:hover{background:var(--muted);color:var(--fg)}
.btn-danger{background:#ef4444;color:#fff}
.btn-danger:hover{background:#dc2626}
.btn-sm{padding:.35rem .8rem;font-size:.8rem}
.btn-full{width:100%;justify-content:center}
.btn:disabled{opacity:.6;cursor:not-allowed;transform:none !important}

/* Forms */
.form-group{margin-bottom:1.25rem}
.form-label{display:block;font-size:.875rem;font-weight:500;margin-bottom:.4rem}
.form-input,.form-textarea,.form-select{width:100%;padding:.6rem .85rem;font-size:.875rem;font-family:'Inter',sans-serif;color:var(--fg);background:var(--card);border:1px solid var(--border);border-radius:var(--radius);outline:none;transition:border-color .2s,box-shadow .2s}
.form-input:focus,.form-textarea:focus,.form-select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(196,138,106,.15)}
.form-input::placeholder,.form-textarea::placeholder{color:var(--muted-fg);opacity:.7}
.form-textarea{resize:vertical;min-height:7rem}
.form-error{font-size:.8rem;color:#ef4444;margin-top:.3rem}
.form-success{background:rgba(168,191,163,.15);border:1px solid rgba(168,191,163,.4);border-radius:var(--radius);padding:1.5rem;text-align:center}
.form-success h3{color:#2d6a4f;margin-bottom:.5rem}
.form-success p{color:var(--muted-fg);font-size:.9rem}

/* Sections */
.section{padding:4rem 0}
@media(min-width:768px){.section{padding:6rem 0}}
.section-alt{background:var(--card);border-top:1px solid rgba(232,227,221,.4);border-bottom:1px solid rgba(232,227,221,.4)}
.section-header{margin-bottom:3rem}
.section-divider{width:3rem;height:4px;background:rgba(168,191,163,.4);border-radius:9999px;margin-top:.5rem}

/* Hero */
.hero{background:var(--card);border-bottom:1px solid rgba(232,227,221,.4);padding:4rem 0;text-align:center}
@media(min-width:768px){.hero{padding:6rem 0}}
.hero p{font-size:1.1rem;color:var(--muted-fg);max-width:36rem;margin:.1rem auto 2rem;line-height:1.75}

/* Grids */
.grid-3{display:grid;grid-template-columns:1fr;gap:2rem}
@media(min-width:768px){.grid-3{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.grid-3{grid-template-columns:repeat(3,1fr)}}
.grid-2{display:grid;grid-template-columns:1fr;gap:3rem;align-items:center}
@media(min-width:768px){.grid-2{grid-template-columns:repeat(2,1fr)}}

/* Article Card */
.article-card{background:var(--card);border:1px solid rgba(232,227,221,.4);border-radius:var(--radius);overflow:hidden;transition:transform .3s,box-shadow .3s;box-shadow:var(--shadow);display:flex;flex-direction:column}
.article-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.article-card-img{height:200px;overflow:hidden;background:var(--muted)}
.article-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.article-card:hover .article-card-img img{transform:scale(1.05)}
.article-card-body{padding:1.5rem;flex:1;display:flex;flex-direction:column}
.article-card-cat{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--accent);margin-bottom:.5rem}
.article-card-title{font-family:'Playfair Display',serif;font-size:1.1rem;font-weight:700;margin-bottom:.6rem;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.article-card-excerpt{font-size:.875rem;color:var(--muted-fg);line-height:1.6;flex:1;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:1rem}
.article-card-footer{display:flex;align-items:center;justify-content:space-between;font-size:.75rem;color:var(--muted-fg);border-top:1px solid var(--border);padding-top:.75rem;margin-top:auto}
.article-card-read{color:var(--accent);font-weight:500}

/* Quote */
.quote-block{text-align:center;padding:4rem 0}
.quote-text{font-family:'Caveat',cursive;font-size:clamp(1.5rem,4vw,2.25rem);color:var(--fg);font-style:italic;margin-bottom:.75rem;line-height:1.4}
.quote-author{font-size:.875rem;color:var(--secondary)}

/* Avatar */
.avatar-circle{width:12rem;height:12rem;border-radius:50%;overflow:hidden;box-shadow:var(--shadow-lg);background:var(--muted);margin:0 auto}
.avatar-circle img{width:100%;height:100%;object-fit:cover;object-position:top}

/* Newsletter */
.newsletter-form{display:flex;flex-direction:column;gap:.75rem;max-width:28rem;margin:0 auto}
@media(min-width:540px){.newsletter-form{flex-direction:row}}
.newsletter-msg{font-size:.875rem;color:var(--secondary);margin-top:.75rem;text-align:center}

/* Article page */
.article-hero{padding:3rem 0 2rem}
.article-meta{display:flex;flex-direction:column;gap:1rem;padding:1rem 0;border-top:1px solid rgba(232,227,221,.4);border-bottom:1px solid rgba(232,227,221,.4);margin-bottom:2.5rem}
@media(min-width:640px){.article-meta{flex-direction:row;align-items:center;justify-content:space-between}}
.article-author{display:flex;align-items:center;gap:1rem}
.author-avatar{width:3rem;height:3rem;border-radius:50%;overflow:hidden;background:var(--muted);flex-shrink:0}
.author-avatar img{width:100%;height:100%;object-fit:cover;object-position:top}
.article-content{font-size:1.05rem;line-height:1.85;color:var(--fg);margin-bottom:3rem}
.article-content h2,.article-content h3{margin:2rem 0 1rem}
.article-content p{margin-bottom:1.25rem}
.article-content img{border-radius:var(--radius);margin:1.5rem 0;box-shadow:var(--shadow)}
.article-cover{border-radius:var(--radius);overflow:hidden;margin-bottom:2.5rem;max-height:26rem}
.article-cover img{width:100%;height:100%;object-fit:cover}
.author-bio{background:var(--card);border:1px solid rgba(232,227,221,.4);border-radius:var(--radius);padding:2rem;margin-bottom:3rem;display:flex;gap:1.5rem;align-items:flex-start;flex-direction:column}
@media(min-width:640px){.author-bio{flex-direction:row}}
.author-bio-avatar{width:5rem;height:5rem;border-radius:50%;overflow:hidden;flex-shrink:0;background:var(--muted)}
.author-bio-avatar img{width:100%;height:100%;object-fit:cover;object-position:top}
.back-link{display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--muted-fg);transition:color .2s;margin-bottom:1.5rem}
.back-link:hover{color:var(--accent)}
.share-btn{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem 1rem;border:1px solid var(--border);border-radius:var(--radius);font-size:.875rem;cursor:pointer;background:transparent;transition:background .2s}
.share-btn:hover{background:var(--card)}
.cat-badge{display:inline-block;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--accent);margin-bottom:.75rem}

/* Alert boxes */
.alert{padding:.875rem 1rem;border-radius:var(--radius);font-size:.875rem;margin-bottom:1rem}
.alert-error{background:rgba(239,68,68,.08);border:1px solid rgba(239,68,68,.2);color:#c0392b}
.alert-success{background:rgba(168,191,163,.15);border:1px solid rgba(168,191,163,.35);color:#2d6a4f}

/* Empty state */
.empty-state{text-align:center;padding:5rem 1rem;color:var(--muted-fg)}

/* ============================================
   ADMIN STYLES
   ============================================ */
.admin-wrapper{min-height:100vh;display:flex;background:#f4f5fa;font-family:'Inter',sans-serif}
.admin-sidebar{width:16rem;background:#1e1e2d;color:#a1a1b5;display:flex;flex-direction:column;position:fixed;top:0;left:0;height:100vh;z-index:50}
.sidebar-logo{height:4rem;display:flex;align-items:center;padding:0 1.5rem;border-bottom:1px solid #2b2b40;background:#1a1a27;gap:.75rem;flex-shrink:0}
.sidebar-logo img{height:2rem;width:auto;border-radius:.25rem}
.sidebar-logo span{font-size:.875rem;font-weight:600;color:#fff;white-space:nowrap}
.sidebar-body{flex:1;overflow-y:auto;padding:1rem 0}
.sidebar-section{padding:0 1rem;margin-bottom:1.5rem}
.sidebar-label{font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;font-weight:600;color:#6b6b84;padding:.25rem .75rem;margin-bottom:.5rem;display:block}
.sidebar-item{display:flex;align-items:center;gap:.75rem;padding:.625rem .75rem;border-radius:.375rem;transition:background .15s,color .15s;color:#a1a1b5;font-size:.875rem;font-weight:500;width:100%;text-align:left;background:none;border:none;cursor:pointer;text-decoration:none}
.sidebar-item:hover{background:#2b2b40;color:#fff}
.sidebar-item.active{background:#3b3b54;color:#fff}
.sidebar-footer{padding:1rem;border-top:1px solid #2b2b40}
.admin-main{flex:1;margin-left:16rem;display:flex;flex-direction:column;min-height:100vh}
.admin-topbar{background:#fff;border-bottom:1px solid #e5e7eb;padding:0 1.5rem;height:3.5rem;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:40}
.admin-topbar h1{font-size:1rem;font-weight:700;color:#1e1e2d;font-family:'Inter',sans-serif}
.admin-content{padding:1.5rem;flex:1}
@media(min-width:768px){.admin-content{padding:2rem}}

/* Admin cards */
.metric-card{background:#fff;padding:1.25rem;border-radius:.75rem;border:1px solid #f0f0f0;box-shadow:0 1px 3px rgba(0,0,0,.06);display:flex;align-items:center;gap:1rem}
.metric-icon{width:3rem;height:3rem;border-radius:.5rem;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.metric-icon svg{width:1.5rem;height:1.5rem;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.metric-value{font-size:1.75rem;font-weight:700;color:#111;line-height:1}
.metric-label{font-size:.75rem;color:#6b7280;font-weight:500;margin-top:.2rem}
.metrics-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin-bottom:2rem}
@media(min-width:768px){.metrics-grid{grid-template-columns:repeat(4,1fr)}}

/* Admin table */
.admin-table-card{background:#fff;border-radius:.75rem;border:1px solid #f0f0f0;box-shadow:0 1px 3px rgba(0,0,0,.06);overflow:hidden}
.admin-table-header{padding:1rem 1.25rem;border-bottom:1px solid #f0f0f0;display:flex;align-items:center;gap:.5rem}
.admin-table-header h2{font-size:.95rem;font-weight:600;color:#374151;font-family:'Inter',sans-serif}
.admin-table{width:100%;border-collapse:collapse;font-size:.875rem}
.admin-table th{padding:.875rem 1.25rem;text-align:left;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#9ca3af;background:#f9fafb;border-bottom:1px solid #f0f0f0}
.admin-table td{padding:.875rem 1.25rem;color:#374151;border-bottom:1px solid #f9fafb;vertical-align:middle}
.admin-table tr:last-child td{border-bottom:none}
.admin-table tr:hover td{background:#fafafa}
.status-badge{display:inline-flex;align-items:center;gap:.35rem;font-size:.75rem;font-weight:500}
.status-badge::before{content:'';width:.4rem;height:.4rem;border-radius:50%;display:inline-block}
.status-published{color:#059669}
.status-published::before{background:#10b981}
.status-draft{color:#e11d48}
.status-draft::before{background:#f43f5e}
.cat-pill{display:inline-flex;padding:.2rem .6rem;border-radius:9999px;font-size:.75rem;font-weight:500;background:#eff6ff;color:#2563eb;border:1px solid #bfdbfe}
.action-btns{display:flex;align-items:center;gap:.375rem}
.action-btn{padding:.35rem .5rem;border-radius:.375rem;border:1px solid;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .15s;background:transparent}
.action-btn svg{width:.875rem;height:.875rem;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.action-btn-edit{color:#2563eb;border-color:#bfdbfe}
.action-btn-edit:hover{background:#eff6ff}
.action-btn-view{color:#059669;border-color:#a7f3d0}
.action-btn-view:hover{background:#ecfdf5}
.action-btn-del{color:#dc2626;border-color:#fecaca}
.action-btn-del:hover{background:#fef2f2}

/* Admin editor */
.editor-grid{display:grid;grid-template-columns:1fr;gap:1.5rem}
@media(min-width:1024px){.editor-grid{grid-template-columns:1fr 22rem}}
.editor-card{background:#fff;border-radius:.75rem;border:1px solid #e5e7eb;box-shadow:0 1px 3px rgba(0,0,0,.05);overflow:hidden}
.editor-card-header{padding:.75rem 1.25rem;border-bottom:1px solid #f0f0f0;background:#f9fafb;display:flex;align-items:center;gap:.5rem;font-size:.8rem;font-weight:600;color:#374151}
.editor-card-body{padding:1.25rem}
.editor-title{width:100%;font-size:1.75rem;font-weight:700;color:#111;outline:none;border:none;border-bottom:2px dashed #e5e7eb;padding-bottom:.75rem;font-family:'Playfair Display',serif}
.editor-title::placeholder{color:#d1d5db}
.editor-toolbar{display:flex;align-items:center;gap:.25rem;padding:.5rem 0;border-bottom:1px solid #f0f0f0;margin:.75rem 0;overflow-x:auto}
.editor-toolbar-btn{padding:.375rem;border-radius:.25rem;background:none;border:none;cursor:pointer;color:#6b7280;transition:background .15s,color .15s}
.editor-toolbar-btn:hover{background:#f3f4f6;color:#111}
.editor-textarea{width:100%;min-height:28rem;outline:none;border:none;font-size:1rem;line-height:1.8;color:#374151;font-family:'Inter',sans-serif;resize:vertical}
.field-label{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#6b7280;margin-bottom:.4rem;display:flex;align-items:center;gap:.35rem}
.field-input{width:100%;padding:.5rem .75rem;font-size:.875rem;font-family:'Inter',sans-serif;border:1px solid #e5e7eb;border-radius:.375rem;outline:none;background:#fff;color:#374151;transition:border-color .15s}
.field-input:focus{border-color:#6b5cd8;box-shadow:0 0 0 3px rgba(107,92,216,.1)}
.field-textarea{width:100%;padding:.5rem .75rem;font-size:.875rem;font-family:'Inter',sans-serif;border:1px solid #e5e7eb;border-radius:.375rem;outline:none;resize:none;background:#fff;color:#374151;transition:border-color .15s}
.field-textarea:focus{border-color:#6b5cd8}
.field-select{width:100%;padding:.5rem .75rem;font-size:.875rem;font-family:'Inter',sans-serif;border:1px solid #e5e7eb;border-radius:.375rem;outline:none;background:#fff;color:#374151}
.field-group{margin-bottom:1.1rem}
.upload-area{border:2px dashed #e5e7eb;border-radius:.5rem;padding:1.5rem;text-align:center;cursor:pointer;transition:border-color .15s,background .15s;display:block}
.upload-area:hover{border-color:#9ca3af;background:#fafafa}
.upload-area svg{width:1.75rem;height:1.75rem;stroke:#9ca3af;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;margin:0 auto .5rem}
.upload-area span{font-size:.875rem;font-weight:500;color:#6b7280}
.cover-preview{width:100%;height:8rem;object-fit:cover;border-radius:.5rem;margin-bottom:.75rem}

/* Admin Login */
.login-wrapper{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f4f5fa;padding:1rem}
.login-card{background:#fff;border-radius:1rem;box-shadow:0 4px 24px rgba(0,0,0,.08);padding:2.5rem;width:100%;max-width:26rem}
.login-icon{width:3.5rem;height:3.5rem;background:rgba(107,92,216,.1);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 1.5rem}
.login-icon svg{width:1.75rem;height:1.75rem;stroke:#6b5cd8;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.login-title{text-align:center;font-size:1.5rem;font-weight:700;color:#1e1e2d;margin-bottom:.375rem;font-family:'Inter',sans-serif}
.login-subtitle{text-align:center;font-size:.875rem;color:#6b7280;margin-bottom:2rem}
.login-label{display:block;font-size:.875rem;font-weight:500;color:#374151;margin-bottom:.4rem}
.login-input{width:100%;padding:.625rem .875rem;font-size:.875rem;font-family:'Inter',sans-serif;border:1px solid #e5e7eb;border-radius:.5rem;outline:none;transition:border-color .15s,box-shadow .15s}
.login-input:focus{border-color:#6b5cd8;box-shadow:0 0 0 3px rgba(107,92,216,.12)}
.login-btn{width:100%;padding:.75rem;background:#6b5cd8;color:#fff;border:none;border-radius:.5rem;font-size:.9rem;font-weight:600;cursor:pointer;transition:background .2s;font-family:'Inter',sans-serif;margin-top:.5rem}
.login-btn:hover{background:#5a4cc2}

/* Animations */
@keyframes fadeInUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.animate-fade-up{animation:fadeInUp .6s ease-out}
.animate-fade{animation:fadeIn .5s ease-out}
