:root{
  --bg:#0b0c10;
  --panel:#11131a;
  --card:#141826;
  --text:#e9ecf1;
  --muted:#9aa3b2;
  --line:#23283a;
  --accent:#7aa2ff;
  --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;
  background:var(--bg);
  color:var(--text);
}

a{ color:inherit; text-decoration:none; }
.layout{ display:flex; min-height:100vh; }

.sidebar{
  width:320px;
  border-right:1px solid var(--line);
  background:var(--panel);
  padding:18px;
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
}

.brand{
  margin-bottom:14px;
}
.brand-link{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand-logo{
  display:block;
  height:50px;
  width:auto;
  max-width:300px;
}
.brand-text{
  font-weight:800;
  letter-spacing:.2px;
  font-size:18px;
}

.search input{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#0e1017;
  color:var(--text);
  outline:none;
}

.year-nav{ margin-top:16px; display:flex; flex-direction:column; gap:8px; }
.year-btn{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:transparent;
  cursor:pointer;
  color:var(--text);
}
.year-btn.active{ border-color:rgba(122,162,255,.6); background:rgba(122,162,255,.08); }
.year-count{ color:var(--muted); font-size:12px; }

.content{ flex:1; padding:22px; }
.content-head{ margin-bottom:14px; }
.content-head h1{ margin:0 0 6px 0; font-size:22px; text-align: center;}
.hint{ color:var(--muted); font-size:13px; text-align: center; }

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap:14px;
}

.card{
  border:1px solid var(--line);
  background:var(--card);
  border-radius:var(--radius);
  overflow:hidden;
  transition: transform .15s ease, border-color .15s ease;

  padding:12px;
}
.card:hover{ transform: translateY(-2px); border-color:rgba(122,162,255,.55); }
.card .cover{
  width:100%;
  aspect-ratio: 3 / 4;
  background:#0e1017;
  display:block;

  object-fit: contain;
  border-radius:8px;
  border:1px solid var(--line);
}
.card .meta{
  padding:10px 4px 2px;
}
.card .title{ font-weight:700; font-size:13px; margin:0 0 6px; }
.card .sub{ color:var(--muted); font-size:12px; }

.btn{
  border:1px solid var(--line);
  background:#0e1017;
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
}

.issue-body{ background:var(--bg); }
.issue-topbar{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  background:var(--panel);
  position:sticky;
  top:0;
  z-index:10;
}
.issue-meta{ flex:1; min-width:0; }
.issue-title{ font-weight:800; }
.issue-sub{ color:var(--muted); font-size:12px; margin-top:2px; }

.issue-main{ padding:16px; }
.book-wrap{
  max-width: 1100px;
  margin: 0 auto;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--panel);
  padding:12px;
}
.book{
  margin:0 auto;
  width: 100%;
  height: 70vh;
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:hidden;
}

.page{
  width: 480px;
  height: 640px;
  background: #0e1017;
  display:flex;
  align-items:center;
  justify-content:center;
}
.page canvas{ width:100%; height:100%; }

.controls{
  max-width:1100px;
  margin:12px auto 0;
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:center;
}
.pager{ color:var(--muted); min-width:80px; text-align:center; }
.note{
  max-width:1100px;
  margin:10px auto 0;
  color:var(--muted);
  font-size:12px;
  text-align:center;
}

@media (max-width: 900px){
  .sidebar{ display:none; }
  .book{ height: 65vh; }
  .page{ width: 320px; height: 460px; }
}
/* Mobile menu (drawer) */
.mobile-topbar{
  display:none;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  background:var(--panel);
  position:sticky;
  top:0;
  z-index:20;
}
.icon-btn{
  padding:10px 12px;
  font-size:16px;
  line-height:1;
}
.mobile-title{
  font-weight:800;
  letter-spacing:.2px;
  font-size:16px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mobile-backdrop{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:25;
}

@media (max-width: 900px){
  .mobile-topbar{ display:flex; }

  /* Sidebar becomes a drawer */
  .sidebar{
    display:block;
    position:fixed;
    z-index:30;
    top:0;
    left:-110%;
    height:100vh;
    width:min(85vw, 360px);
    transition:left .2s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,.55);
  }
  body.mobile-menu-open .sidebar{ left:0; }
  body.mobile-menu-open .mobile-backdrop{ display:block; }

  /* Content spacing */
  .content{ padding:16px; }

  /* Keep flipbook mobile sizes */
  .book{ height: 65vh; }
  .page{ width: 320px; height: 460px; }
}
.notice.notice-gold{
  margin-top:14px;
  padding:14px 16px;
  text-align:center;
  border-radius:14px;

  border:1px solid rgba(212, 175, 55, .45);
  background: linear-gradient(180deg, rgba(212,175,55,.12), rgba(212,175,55,.06));
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.notice.notice-gold strong{
  display:block;
  font-weight:900;
  letter-spacing:.4px;
  font-size:14px;
  margin-bottom:6px;
  color:#d4af37; /* altın */
  text-transform:uppercase;
}

.notice.notice-gold .notice-text{
  font-size:13px;
  line-height:1.6;
  color: rgba(255, 236, 188, .95);
}

.notice.notice-gold em{
  color:#ffd66b;
  font-style:normal;
  font-weight:700;
}
/* Brand (sidebar) */
.brand-link{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand-logo{
  display:block;
  height:50px;
  width:auto;
  max-width:300px;
}
.brand-text{
  font-weight:800;
  letter-spacing:.2px;
  font-size:18px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Mobile topbar brand */
.mobile-brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.mobile-logo{
  display:block;
  height:28px;
  width:auto;
  max-width:180px;
}
