/* =========================================================
  FILE: /zbom/zbom.css
  PURPOSE:
  - Arca.directory inspired dark directory UI (NON-CARD LAYER)
  - Layout + Sidebar + Topbar + Modal + Submit button
  - Corner widget + Sidebar avatars
  - Card/Grid styles live in: /zbom/zbom-cards.css
========================================================= */

/* IMPORTANT: cards/grid live here */
@import url("/zbom/zbom-cards.css");

:root{
  --bg: #070707;
  --panel: #0c0c0c;
  --card: #0e0e0e;

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.58);

  --line: rgba(255,255,255,.10);
  --line-soft: rgba(255,255,255,.07);

  --ok: rgba(73,209,125,.16);
  --warn: rgba(255,193,7,.16);
  --bad: rgba(255,107,107,.16);

  --radius: 14px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a{color:inherit}

/* =========================================================
   Layout
========================================================= */

.layout{
  display:grid;
  grid-template-columns: 260px 1fr;
  min-height:100vh;
}

@media(max-width: 980px){
  .layout{grid-template-columns: 1fr}
  .sidebar{position:sticky; top:0; z-index:5}
}

/* =========================================================
   Sidebar
========================================================= */

.sidebar{
  border-right: 1px solid var(--line-soft);
  background: #0a0a0a;
  padding: 16px 14px;
}

/* Sidebar Avatars (inside sidebar) */
.sidebar-avatars{
  display:flex;
  justify-content:center;
  gap:12px;
  margin: 6px 0 6px; /* FIX: brand ile arayı azalttık */
}

.sidebar-avatars img{
  width:40px;          /* web’de biraz büyüttük */
  height:40px;
  border-radius:999px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.18);
  background:#000;
  opacity:.9;
  transition: transform .12s ease, opacity .12s ease, border-color .12s ease;
}

.sidebar-avatars a:hover img{
  opacity:1;
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.32);
}

/* --- BRAND --- */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 6px 6px 10px;   /* FIX: üst padding azaldı */
  justify-content: center;
  text-align: center;
}

.brand > div{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.brand b{
  font-size:18px;      /* FIX: ZBOM büyüdü */
  font-weight:700;
  letter-spacing:.4px;
  margin-top: 2px;     /* FIX: daha sıkı */
}

.brand span{
  font-size:12px;
  opacity:.6;
  margin-top: 0;       /* FIX: daha sıkı */
  line-height: 1.25;
}

/* Nav */
.nav{
  margin-top: 16px; /* biraz sıkı */
  display:flex;
  flex-direction:column;
  gap:2px;
}

.nav button{
  border:0;
  background:transparent;
  color:var(--text);
  padding:9px 8px;
  border-radius:10px;
  text-align:left;
  cursor:pointer;
  opacity:.82;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.nav button:hover{
  background: rgba(255,255,255,.05);
  opacity:1;
}

.nav button.active{
  background: rgba(255,255,255,.08);
  opacity:1;
}

.nav .count{
  font-size:11px;
  padding:2px 7px;
  border-radius:999px;
  border:1px solid var(--line-soft);
  opacity:.7;
}

/* =========================================================
   Main / Topbar
========================================================= */

.main{
  padding:18px 18px 32px;
}

.topbar{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.titleRow{
  display:flex;
  align-items:center;
  gap:10px;
}

.titleRow h1{
  margin:0;
  font-size:15.5px;
  font-weight:600;
}

/* Status pill */
.pill{
  font-size:11px;
  padding:5px 9px;
  border-radius:999px;
  border:1px solid var(--line-soft);
  background:#0c0c0c;
  white-space:nowrap;
}

.pill.ok{ background: var(--ok); border-color: rgba(73,209,125,.22); }
.pill.warn{ background: var(--warn); border-color: rgba(255,193,7,.22); }
.pill.bad{ background: var(--bad); border-color: rgba(255,107,107,.22); }

/* Search */
.search{
  flex:1;
  min-width:260px;
  max-width:560px;
  display:flex;
  gap:10px;
  align-items:center;

  border:1px solid var(--line-soft);
  background:#0c0c0c;
  border-radius:999px;
  padding:7px 12px;
}

.search input{
  width:100%;
  background:transparent;
  border:0;
  outline:none;
  color:var(--text);
  font-size:13px;
}

.search input::placeholder{
  color:rgba(255,255,255,.45);
}

/* empty hint */
.hint{
  font-size:12.5px;
  opacity:.58;
  line-height:1.45;
}

/* =========================================================
   Modal (centered overlay)
========================================================= */

.modalOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.70);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.modal{
  width: min(720px, 100%);
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(0,0,0,.55);
}

.modalHead{
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modalHead b{
  font-size: 13.5px;
  font-weight: 700;
}

.close{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

.modalBody{ padding: 14px; }

.row{ display:grid; grid-template-columns: 1fr; gap: 10px; }
@media(min-width: 680px){ .row.two{ grid-template-columns: 1fr 1fr; } }

label{
  display:block;
  font-size: 12px;
  opacity: .72;
  margin: 10px 0 6px;
}

input, textarea, select{
  width:100%;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 10px;
  color: var(--text);
  outline:none;
}

textarea{ min-height: 110px; resize: vertical; }

.modalFoot{
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  display:flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.btn{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 700;
}

.btn.secondary{ background: rgba(255,255,255,.03); }

/* =========================================================
   Sidebar bottom (Submit area) – Arca-like
========================================================= */

.sidebarBottom{
  position: sticky;
  top: calc(100vh - 140px);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.submitBtn{
  width:100%;
  height: 44px;

  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.92);
  color: rgba(0,0,0,.92);

  padding: 0 14px;
  border-radius: 999px;
  cursor:pointer;

  font-weight: 750;
  line-height: 1;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  transition: transform .12s ease, background .14s ease, border-color .14s ease, opacity .14s ease;
  position: relative;
}

.submitBtn:hover{
  background: rgba(255,255,255,.98);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
}

.submitBtn:active{
  transform: translateY(0);
}

.submitBtn::after{
  content:"+";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.22);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  opacity: .9;
}

.mini{
  margin-top: 10px;
  font-size: 12px;
  opacity: .58;
  line-height: 1.45;
}

/* =========================================================
   Corner Widget – TOP LEFT (UBT)
========================================================= */

.corner-widget{
  position: fixed;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  z-index: 10000;
}

.corner-widget a{ display:block; }

.widget-avatar{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.14);
  background: #000;
  opacity: .88;
  transition: opacity .15s ease, transform .12s ease, border-color .15s ease;
}

.widget-avatar.logo{ opacity: .82; }

.corner-widget a:hover .widget-avatar{
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.28);
}

/* =========================================================
   Mobile: grow avatars + tighten spacing further
========================================================= */
@media (max-width: 600px){
  .sidebar{
    padding: 18px 14px;
  }

  .sidebar-avatars img{
    width: 56px;   /* FIX: mobilde daha büyük */
    height: 56px;
  }

  .sidebar-avatars{
    margin: 10px 0 4px; /* FIX: logolarla ZBOM arası daha da az */
    gap: 16px;
  }

  .brand{
    padding: 4px 6px 10px;
  }

  .brand b{
    font-size:22px; /* mobilde daha vurucu */
  }

  .brand span{
    font-size:12.5px;
  }
}


/* =========================================================
   MOBILE DRAWER SIDEBAR (hamburger)
========================================================= */

.hamb{
  display:none;
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid var(--line-soft);
  background:#0c0c0c;
  color:var(--text);
  cursor:pointer;
  font-size:18px;
  line-height:1;
}

.sbOverlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:9000;
}

@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }

  .hamb{ display:inline-flex; align-items:center; justify-content:center; }

  .sidebar{
    position:fixed;
    top:0;
    left:0;
    height:100vh;
    width:min(86vw, 340px);
    z-index:9500;

    transform: translateX(-105%);
    transition: transform .18s ease;
    border-right: 1px solid var(--line-soft);

    overflow:auto;
    -webkit-overflow-scrolling: touch;
  }

  body.sb-open .sidebar{ transform: translateX(0); }
  body.sb-open .sbOverlay{ display:block; }

  .topbar{ gap:10px; }
}
/* =========================================================
   ZBOM Comic Logo (under avatars, above title)
========================================================= */

.zbom-logo{
  display:flex;
  justify-content:center;
  margin: 6px 0 6px; /* avatar ↔ title arası sıkı */
}

.zbom-logo img{
  width:72px;          /* ideal boy */
  height:auto;
  display:block;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.55));
  opacity:.95;
}


@media (max-width: 600px){
  .zbom-logo img{
    width:88px; /* mobilde biraz daha vurucu */
  }
}
/* =========================================================
   Corner widget + AI CTA (ZBOM style)