/* Void-It Gmail Theme
   Clean, spacious, Gmail-inspired UI with responsive layout.
*/
:root{
  --bg:#f6f8fc;
  --card:#ffffff;
  --text:#202124;
  --muted:#5f6368;
  --border:#dadce0;
  --primary:#1a73e8;
  --primary2:#185abc;
  --danger:#d93025;
  --success:#188038;
  --shadow:0 1px 2px rgba(60,64,67,.3),0 1px 3px 1px rgba(60,64,67,.15);
  --radius:14px;

  /* Blog theme defaults (Earth) */
  --blog-bg:#ffffff;
  --blog-text:#202124;
  --blog-border:#dadce0;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--text);
}

a{color:var(--primary); text-decoration:none}
a:hover{text-decoration:underline}

.container{
  width:min(1100px, 92vw);
  margin:0 auto;
  padding:18px 0 30px;
}

.topbar{
  position:sticky; top:0; z-index:50;
  background:rgba(246,248,252,.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--border);
}
.topbar-inner{
  width:min(1100px, 92vw);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
}

.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:700;
  letter-spacing:.2px;
}
.brand-badge{
  width:34px;height:34px;border-radius:10px;
  background:linear-gradient(135deg, var(--primary), #7baaf7);
  display:grid; place-items:center;
  color:#fff; font-weight:900;
  box-shadow:var(--shadow);
}
.brand small{display:block; font-weight:600; color:var(--muted); letter-spacing:.1px}
.brand-title{line-height:1}
.brand-title span{display:block}
.brand-title span:last-child{font-size:12px;color:var(--muted);font-weight:600}

.nav{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.nav a{
  padding:8px 10px;
  border-radius:10px;
  color:var(--text);
}
.nav a:hover{
  background:#eef3fd;
  text-decoration:none;
}
.nav .pill{
  border:1px solid var(--border);
  background:var(--card);
}

.grid{
  display:grid;
  grid-template-columns: 1.25fr .85fr;
  gap:18px;
}
@media (max-width: 900px){
  .grid{grid-template-columns:1fr}
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.card-pad{padding:18px}

.h1{
  margin:0 0 6px;
  font-size:26px;
  letter-spacing:-.2px;
}
.sub{
  margin:0 0 14px;
  color:var(--muted);
  line-height:1.45;
}
.kbd{
  display:inline-block;
  padding:2px 8px;
  border:1px solid var(--border);
  border-bottom-color:#c9ccd1;
  border-radius:8px;
  background:#fff;
  font-size:12px;
  color:var(--muted);
}

.features{
  margin:14px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}
.features li{
  display:flex; gap:10px; align-items:flex-start;
  padding:10px;
  border:1px dashed #cfd4dc;
  border-radius:12px;
  background:#fbfcff;
}
.dot{
  width:10px;height:10px;border-radius:50%;
  background:var(--primary);
  margin-top:6px;
  flex:0 0 auto;
}

.form-row{display:grid; gap:10px; margin:12px 0}
label{font-size:13px; color:var(--muted)}
input[type="text"],input[type="email"],input[type="password"],select,textarea{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  outline:none;
  font-size:14px;
}
textarea{min-height:120px; resize:vertical}
input:focus,select:focus,textarea:focus{border-color:#a8c7fa; box-shadow:0 0 0 3px rgba(26,115,232,.15)}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid transparent;
  background:var(--primary);
  color:#fff;
  font-weight:700;
  cursor:pointer;
}
.btn:hover{background:var(--primary2)}
.btn:disabled{opacity:.6; cursor:not-allowed}
.btn.secondary{
  background:#fff;
  color:var(--text);
  border-color:var(--border);
}
.btn.secondary:hover{background:#f1f3f4}
.btn.danger{background:var(--danger)}
.btn.ghost{
  background:transparent;
  border:1px solid var(--border);
  color:var(--text);
}
.btn.small{padding:7px 10px; border-radius:10px; font-size:13px}

.hr{height:1px;background:var(--border); margin:14px 0}
.notice{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--muted);
  line-height:1.4;
}
.notice.ok{border-color:#ccebd7;background:#f2fbf5;color:#0b5d33}
.notice.bad{border-color:#f3c7c6;background:#fff5f5;color:#8a1d18}
.notice.info{border-color:#d2e3fc;background:#f4f8ff;color:#144a9c}

.footer{
  padding:18px 0 10px;
  color:var(--muted);
  font-size:13px;
}
.footer a{color:var(--muted)}

/* Blog area */
.blog-shell{
  border-radius:var(--radius);
  border:1px solid var(--blog-border);
  background:var(--blog-bg);
  color:var(--blog-text);
  overflow:hidden;
}
.blog-head{
  padding:14px 16px;
  border-bottom:1px solid var(--blog-border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.blog-title{
  display:flex; flex-direction:column;
  gap:2px;
}
.blog-title strong{font-size:15px}
.blog-title span{color:rgba(95,99,104,.95); font-size:12px}

.blog-bgimg{
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.toggle{
  display:flex; align-items:center; gap:10px;
}
.toggle button{white-space:nowrap}

.post-form{
  padding:14px 16px;
  border-bottom:1px solid var(--blog-border);
  display:none;
}
.post-form.show{display:block}
.form-grid{
  display:grid; gap:10px;
}
@media (min-width: 800px){
  .form-grid{
    grid-template-columns: 1fr .55fr;
    align-items:start;
  }
}
.feed{
  padding:14px 16px;
}
.post{
  border:1px solid var(--blog-border);
  border-radius:14px;
  padding:12px;
  margin-bottom:12px;
  background:rgba(255,255,255,.65);
}
.post .meta{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  color:rgba(95,99,104,.95);
  font-size:12px;
  margin-bottom:8px;
}
.post .meta .cat{
  font-weight:800;
  letter-spacing:.2px;
  color:var(--blog-text);
}
.post .msg{white-space:pre-wrap; line-height:1.45}
.post img{
  width:100%;
  max-height:360px;
  object-fit:contain;
  border-radius:12px;
  border:1px solid var(--blog-border);
  margin-top:10px;
  background:#fff;
}
.post .actions{
  display:flex; gap:8px; flex-wrap:wrap;
  margin-top:10px;
}
.input-inline{
  display:flex; gap:8px; flex-wrap:wrap; align-items:center;
}
.input-inline input{flex:1 1 200px}
.loading{
  padding:10px;
  color:var(--muted);
  text-align:center;
}
