/* Sidebook — early-MySpace revival with a minimal landing page.
   Two moods: .minimal (landing) = calm, generous whitespace.
   Everything else = 2005 social-web nostalgia, cleaned up just enough. */

:root{
  --ink:#1a1a2e;
  --paper:#ffffff;
  --line:#c9d3e0;
  --blue:#3b5998;      /* the classic social blue */
  --blue-d:#2d4373;
  --accent:#ff6a00;    /* myspace orange energy */
  --bg:#dfe6f0;
  --pill:#eef2f8;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Verdana,Tahoma,Geneva,sans-serif;
  font-size:13px; color:var(--ink); background:var(--bg);
  line-height:1.5;
}
a{color:var(--blue); text-decoration:none}
a:hover{text-decoration:underline}

/* ---- top bar ---- */
#topbar{
  background:var(--blue); color:#fff;
  display:flex; justify-content:space-between; align-items:center;
  padding:8px 16px; border-bottom:3px solid var(--blue-d);
}
#brand{color:#fff; font-weight:bold; font-size:18px; letter-spacing:.5px}
#brand .q{
  background:#fff; color:var(--blue); border-radius:4px;
  padding:0 6px; margin-right:4px; font-weight:900;
}
#nav a{color:#fff; margin-left:14px; font-size:12px}

#wrap{max-width:900px; margin:18px auto; padding:0 14px}
#footer{
  max-width:900px; margin:30px auto; padding:14px;
  text-align:center; color:#6b7a90; font-size:11px;
}

h1{font-size:22px; color:var(--blue-d); margin:0 0 12px}
h2{font-size:16px; color:var(--blue-d)}

/* ---- buttons ---- */
.btn{
  display:inline-block; padding:7px 14px; border:1px solid var(--line);
  background:linear-gradient(#fff,#eef2f8); color:var(--ink);
  border-radius:4px; font-size:12px; font-weight:bold; cursor:pointer;
}
.btn:hover{text-decoration:none; border-color:var(--blue)}
.btn.primary{background:linear-gradient(var(--accent),#e85f00); color:#fff; border-color:#c85400}
.btn.primary:hover{background:linear-gradient(#ff7d1f,#d95a00)}
.btn.block{display:block; text-align:center; margin:6px 0; width:100%}

/* ---- MINIMAL LANDING ---- */
body.minimal{
  background:#fafafa; color:#111;
  font-family:'Helvetica Neue',Inter,system-ui,sans-serif;
  min-height:100vh; display:flex; flex-direction:column;
}
body.minimal #wrap{flex:1; display:flex; align-items:center; justify-content:center}
#hero{max-width:520px; text-align:center; padding:40px 20px}
#hero .q-mark{
  font-size:56px; font-weight:900; color:#111;
  border:3px solid #111; width:88px; height:88px; line-height:82px;
  border-radius:18px; margin:0 auto 26px;
}
#hero h1{font-size:44px; font-weight:800; letter-spacing:-1px; color:#111; margin:0 0 6px}
#hero .tag{font-size:17px; color:#555; margin:0 0 22px; font-weight:500}
#hero .sub{font-size:15px; color:#777; line-height:1.7; margin:0 0 34px}
#hero .cta .btn{margin:0 6px; padding:12px 22px; font-size:14px; border-radius:8px}
body.minimal #hero .btn{font-family:inherit}
body.minimal #hero .btn.primary{background:#111; border-color:#111; color:#fff}
body.minimal #hero .btn:not(.primary){background:#fff; border:1px solid #ccc; color:#111}
body.minimal #footer{color:#bbb}

/* ---- profile wall / browse ---- */
#tagbar,#tagbar.pillrow{margin:0 0 16px}
.pill{
  display:inline-block; background:var(--pill); border:1px solid var(--line);
  color:var(--blue-d); padding:2px 9px; border-radius:12px; font-size:11px; margin:2px;
}
a.pill:hover{background:var(--blue); color:#fff; text-decoration:none}
#wall{display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:14px}
.ucard{
  background:var(--paper); border:1px solid var(--line); border-radius:6px;
  padding:12px; text-align:center; color:var(--ink); display:block;
}
.ucard:hover{border-color:var(--blue); text-decoration:none; box-shadow:0 2px 8px rgba(59,89,152,.12)}
.uc-avatar img,.uc-avatar .silhouette{width:80px;height:80px;border-radius:6px;object-fit:cover;margin:0 auto 8px}
.silhouette{
  background:linear-gradient(135deg,var(--blue),var(--blue-d)); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:38px;
}
.silhouette.big{width:160px;height:160px;font-size:72px;border-radius:8px}
.uc-name{font-weight:bold; color:var(--blue-d)}
.uc-bio{font-size:11px; color:#667; margin:6px 0}
.uc-stat{font-size:11px; color:var(--accent); font-weight:bold}
.empty{text-align:center; color:#889; padding:40px}

/* ---- MySpace profile ---- */
#ms-head{background:var(--paper); border:1px solid var(--line); border-radius:6px 6px 0 0; padding:12px 16px}
#ms-head h1{margin:0}
.ms-mood{color:#667; font-style:italic; font-size:12px}
#ms-grid{display:grid; grid-template-columns:220px 1fr; gap:14px; margin-top:14px}
#ms-left{display:flex; flex-direction:column; gap:8px}
.ms-avatar img,.ms-avatar .silhouette{width:100%; border-radius:6px; border:1px solid var(--line)}
.ms-online{color:#2e8b2e; font-size:12px; font-weight:bold; text-align:center}
.ms-stat{color:var(--accent); font-size:12px; font-weight:bold; text-align:center}
.ms-pills{text-align:center}
.ms-box{background:var(--paper); border:1px solid var(--line); border-radius:6px; margin-bottom:14px; overflow:hidden}
.ms-box-h{background:var(--blue); color:#fff; padding:6px 12px; font-weight:bold; font-size:13px}
.ms-box-b{padding:12px}
.fw{border-bottom:1px dashed var(--line); padding:8px 0}
.fw:last-child{border-bottom:none}
.fw-t{font-weight:bold; color:var(--blue-d)}
.fw-s{font-size:12px; color:#556}
.fw-by{font-size:11px; color:#889; margin-top:3px}
.fw.big{background:var(--paper); border:1px solid var(--line); border-radius:6px; padding:12px; margin-bottom:10px}

/* ---- forms ---- */
.formcard{background:var(--paper); border:1px solid var(--line); border-radius:6px; padding:20px; max-width:560px; margin:0 auto}
label{display:block; margin:10px 0; font-weight:bold; font-size:12px; color:var(--blue-d)}
input,textarea{
  width:100%; padding:8px; border:1px solid var(--line); border-radius:4px;
  font-family:inherit; font-size:13px; font-weight:normal; margin-top:4px;
}
textarea{resize:vertical}
.muted{color:#889; font-weight:normal; font-size:11px}
.tagpick{display:flex; flex-wrap:wrap; gap:6px; margin:6px 0}
.tagbox{display:inline-flex; align-items:center; gap:4px; background:var(--pill);
  border:1px solid var(--line); border-radius:12px; padding:3px 10px; font-weight:normal; margin:0}
.tagbox input{width:auto; margin:0}

/* ---- chat ---- */
#chat{max-width:640px; margin:0 auto; background:var(--paper); border:1px solid var(--line); border-radius:6px; overflow:hidden}
#chat-head{background:var(--blue); color:#fff; padding:10px 14px; display:flex; justify-content:space-between; align-items:center; font-size:12px}
#chat-head a{color:#fff}
#log{height:52vh; overflow-y:auto; padding:14px; background:#f6f8fb}
.bubble{max-width:78%; padding:8px 12px; border-radius:12px; margin:6px 0; font-size:13px; white-space:pre-wrap; word-wrap:break-word}
.bubble.me{background:var(--blue); color:#fff; margin-left:auto; border-bottom-right-radius:3px}
.bubble.clone{background:#e9edf3; color:var(--ink); margin-right:auto; border-bottom-left-radius:3px}
#cform{display:flex; gap:8px; padding:12px; border-top:1px solid var(--line)}
#cform input{margin:0}

/* ---- admin ---- */
.stats{background:var(--paper); border:1px solid var(--line); border-radius:6px; padding:12px; margin-bottom:14px; font-weight:bold}
table.admin{width:100%; border-collapse:collapse; background:var(--paper); border:1px solid var(--line)}
table.admin th,table.admin td{border:1px solid var(--line); padding:8px; text-align:left; font-size:12px}
table.admin th{background:var(--blue); color:#fff}

@media (max-width:640px){
  #ms-grid{grid-template-columns:1fr}
  #hero h1{font-size:34px}
}
