/* assets/style.css */
:root{
  --bg:#0b0f14;
  --card:#121a23;
  --card2:#0f1620;
  --text:#e6eef7;
  --muted:#9bb0c5;
  --accent:#4aa3ff;
  --border:#203040;
  --ok:#32d583;
  --danger:#ff5b6e;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 500px at 30% 0%, #0e2237 0%, var(--bg) 55%);
  color:var(--text);
}
a{color:var(--text); text-decoration:none}
a:hover{opacity:.9}

.container{max-width:1100px; margin:0 auto; padding:18px}
.topbar{
  position:sticky; top:0; z-index:20;
  background: rgba(10,14,20,.75);
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
.topbar-inner{display:flex; align-items:center; justify-content:space-between; gap:12px}
.brand{font-weight:800; letter-spacing:.2px}
.topbar-links{display:flex; gap:14px; align-items:center; flex-wrap:wrap}
.muted{color:var(--muted)}
.footer{padding:28px 0; border-top:1px solid rgba(255,255,255,.06); margin-top:30px}

.grid{display:grid; gap:16px}
.grid-2{grid-template-columns: 1.4fr 1fr}
@media (max-width: 900px){ .grid-2{grid-template-columns:1fr} }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:16px;
}
.card.soft{background: rgba(18,26,35,.55)}
.card h2{margin:0 0 10px 0; font-size:18px}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 12px; border-radius:999px;
  background: rgba(74,163,255,.12);
  border:1px solid rgba(74,163,255,.3);
  color: var(--text);
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  cursor:pointer;
  color:var(--text);
}
.btn.primary{
  background: rgba(74,163,255,.18);
  border-color: rgba(74,163,255,.35);
}
.btn.danger{
  background: rgba(255,80,80,.14);
  border-color: rgba(255,80,80,.25);
}
.btn:disabled{opacity:.6; cursor:not-allowed}

form .field{margin-bottom:12px}
label{display:block; font-size:13px; color:var(--muted); margin:0 0 6px}
input, textarea, select{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}
textarea{min-height:92px; resize:vertical}
.row{display:flex; gap:12px}
@media (max-width:700px){ .row{flex-direction:column} }

.alert{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  margin: 0 0 14px;
}
.alert.error{border-color: rgba(255,80,80,.25); background: rgba(255,80,80,.08)}
.alert.ok{border-color: rgba(80,255,160,.22); background: rgba(80,255,160,.07)}

.profile-header{
  display:flex; gap:16px; align-items:center; flex-wrap:wrap;
}
.avatar{
  width:88px; height:88px; border-radius:999px;
  border:2px solid rgba(255,255,255,.12);
  object-fit:cover;
  background: rgba(255,255,255,.06);
}
.profile-meta{flex:1; min-width:260px}
.profile-name{font-size:22px; font-weight:800; margin:0}
.profile-user{color:var(--muted); margin-top:2px}
.stats{display:flex; gap:14px; flex-wrap:wrap; margin-top:10px}
.stat{color:var(--muted)}
.stat b{color:var(--text)}

.tags{display:flex; gap:8px; flex-wrap:wrap}
.tag{padding:6px 10px; border-radius:999px; background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); color:var(--muted); font-size:12px}

.post{
  padding:0;
  overflow:hidden;
}
.post-head{padding:14px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px}
.post-head .who{display:flex; align-items:center; gap:10px}
.post-head .who img{width:34px; height:34px; border-radius:999px; object-fit:cover; border:1px solid rgba(255,255,255,.12)}
.post-img{width:100%; display:block; max-height:560px; object-fit:cover; background:#000}
.post-body{padding:14px 16px}
.small{font-size:12px; color:var(--muted)}
.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
@media (max-width:700px){ .gallery{grid-template-columns: repeat(2,1fr)} }
.gallery a{
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.gallery img{width:100%; height:170px; object-fit:cover; display:block}

/* Calendar */
.cal{width:100%; border-collapse:separate; border-spacing:8px}
.cal th{color:var(--muted); font-weight:700; font-size:12px; text-align:center}
.cal td{vertical-align:top; min-width:92px; height:92px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.03); border-radius:14px; padding:10px}
.cal td.has{background:rgba(255,255,255,.05)}
.cal-day{font-weight:800; margin-bottom:6px}
.cal-ev{margin-top:6px; padding-top:6px; border-top:1px solid rgba(255,255,255,.08)}


/* Better select readability */
select{background: rgba(0,0,0,.35)}
select option{background: #0b0f14; color: var(--text)}


/* Admin visibility toggle */
.toggle{display:inline-flex; align-items:center; gap:8px; cursor:pointer}
.toggle input{width:42px; height:22px; appearance:none; background:rgba(255,255,255,.15); border-radius:999px; position:relative; outline:none; border:1px solid rgba(255,255,255,.18)}
.toggle input:before{content:""; width:18px; height:18px; position:absolute; top:1px; left:1px; border-radius:50%; background:rgba(255,255,255,.85); transition:all .18s ease}
.toggle input:checked{background:rgba(60,180,120,.45); border-color:rgba(60,180,120,.6)}
.toggle input:checked:before{left:21px}

.post-view .post-img{object-fit:contain; max-height:640px; background:#0b0b0b}
.pill{display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; background:#141414; border:1px solid rgba(255,255,255,.08); font-size:12px}
.capture-meta{border-top:1px solid rgba(255,255,255,.08)}
