/* ================================================
   MangChat – Global Stylesheet
   Renk paleti: #6a3629 (koyu kahve) · #f58c73 (turuncu) · #fafafa (arka)
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Cinzel:wght@700&display=swap');

/* ── Değişkenler ── */
:root {
  --clr-dark:    #6a3629;
  --clr-primary: #f58c73;
  --clr-hover:   #e1735e;
  --clr-bg:      #fafafa;
  --clr-white:   #ffffff;
  --clr-text:    #333333;
  --clr-muted:   #888888;
  --clr-border:  #eeeeee;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   30px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.18);
  --transition:  all 0.25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 14px; }
::-webkit-scrollbar-track { background: #2b2b2b; }
::-webkit-scrollbar-thumb { background: #5f6368; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #80868b; }
::-webkit-scrollbar-button { background: #3c3c3c; display: block; height: 16px; }
::-webkit-scrollbar-button:vertical:start:decrement {
  background: #3c3c3c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 2 L9 7 L1 7 Z' fill='%23aaa'/%3E%3C/svg%3E") center no-repeat;
  transform: rotate(180deg);
}
::-webkit-scrollbar-button:vertical:end:increment {
  background: #3c3c3c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 8 L9 3 L1 3 Z' fill='%23aaa'/%3E%3C/svg%3E") center no-repeat;
}
::-webkit-scrollbar-button:vertical:start:increment,
::-webkit-scrollbar-button:vertical:end:decrement { display: none; }

/* ================================================
   HEADER
   ================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--clr-dark) 0%, var(--clr-primary) 100%);
  padding: 0 60px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 2px 20px rgba(106,54,41,0.4);
}

.logo-img { height: 150px; width: auto; object-fit: contain; }

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  flex: 1;
}

/* Arama çubuğu */
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-xl);
  padding: 5px 5px 5px 16px;
  width: 340px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
  color: var(--clr-text);
}
.search-bar button {
  background: var(--clr-primary);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}
.search-bar button:hover { background: var(--clr-hover); }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav a {
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: var(--radius-xl);
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.nav a:hover, .nav a.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.nav .sep { color: rgba(255,255,255,0.3); font-size: 12px; }

/* Profil */
.profile { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
}
.avatar:hover { background: rgba(255,255,255,0.3); }
.username { color: #fff; font-weight: 700; font-size: 14px; }
.menu-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 25px;
  display: flex;
  align-items: center;
}


.logo-img { height: 150px; width: auto; object-fit: contain; }

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  flex: 1;
}

/* Arama çubuğu */
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-xl);
  padding: 5px 5px 5px 16px;
  width: 340px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
  color: var(--clr-text);
}
.search-bar button {
  background: var(--clr-primary);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}
.search-bar button:hover { background: var(--clr-hover); }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav a {
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: var(--radius-xl);
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.nav a:hover, .nav a.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.nav .sep { color: rgba(255,255,255,0.3); font-size: 12px; }

/* Profil */
.profile { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
}
.avatar:hover { background: rgba(255,255,255,0.3); }
.username { color: #fff; font-weight: 700; font-size: 14px; }
.menu-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 25px;
  display: flex;
  align-items: center;
}
.manga-card {
  position: relative;
}

.fav-star {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  z-index: 5;
  transition: transform .2s;
}

.fav-star:hover {
  transform: scale(1.2);
}
/* ================================================
   ORTAK BÖLÜM BAŞLIĞI
   ================================================ */
.section-title {
  background: var(--clr-text);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 24px;
}


/* ===== MANGA CARD ===== */
.manga-card {
  width: 100%;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);

  position: relative;   
}

.manga-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.manga-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* ===== CARD BODY ===== */
.manga-card .card-body,
.manga-info {
  padding: 12px;
}

.manga-card .card-title,
.manga-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.manga-card .card-genre,
.manga-chapter {
  font-size: 13px;
  color: #777;
}

/* Rozet */
.badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 10px;
  color: #fff; z-index: 2;
}
.badge.ongoing   { background: #27ae60; }
.badge.completed { background: #2980b9; }
.badge.new       { background: #e74c3c; }

/* Favori ikonu */
.fav-star{
  position: absolute;
  top: 8px;
  right: 10px;

  font-size: 22px;
  color: #ffc107;
  cursor: pointer;

  background: rgba(0,0,0,0.35);
  padding: 3px 6px;
  border-radius: 8px;

  z-index: 5;
  user-select: none;
}

/* ================================================
   BUTONLAR
   ================================================ */
.btn-primary {
  background: var(--clr-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-xl);
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover { background: var(--clr-hover); transform: scale(1.04); }

.btn-outline {
  background: transparent;
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
  border-radius: var(--radius-xl);
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
}
.btn-outline:hover { background: var(--clr-primary); color: #fff; }

.btn-white {
  background: #fff;
  color: var(--clr-primary);
  border: none;
  border-radius: var(--radius-xl);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 800;
  transition: var(--transition);
}
.btn-white:hover { background: var(--clr-primary); color: #fff; }

/* ================================================
   YUKARI ÇIK
   ================================================ */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--clr-primary);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 998;
}
.scroll-top:hover { background: var(--clr-hover); transform: translateY(-3px); }

/* ================================================
   CHATBOT
   ================================================ */
#chatbot-button {
  position: fixed;
  bottom: 88px; right: 28px;
  background: #333;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
#chatbot-button:hover { background: var(--clr-dark); }
#chatbot-panel {
  position: fixed;
  bottom: 150px; right: 28px;
  width: 320px; height: 420px;
  background: #fff;
  border-radius: 16px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
}
#chatbot-header {
  background: linear-gradient(135deg, var(--clr-dark), var(--clr-primary));
  color: #fff;
  padding: 13px 16px;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#chatbot-close { cursor: pointer; font-size: 18px; }
#chatbot-messages {
  flex: 1;
  padding: 12px;
  background: #f8f8f8;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#chatbot-input {
  display: flex;
  gap: 6px;
  padding: 10px;
  background: #eee;
}
#chatbot-input input {
  flex: 1; padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
#chatbot-input button {
  padding: 8px 14px;
  background: var(--clr-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13px;
  transition: var(--transition);
}
#chatbot-input button:hover { background: var(--clr-hover); }
.msg-user {
  background: var(--clr-primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px 12px 4px 12px;
  max-width: 80%;
  align-self: flex-end;
  font-size: 13px;
}
.msg-bot {
  background: #fff;
  color: var(--clr-text);
  padding: 8px 12px;
  border-radius: 12px 12px 12px 4px;
  max-width: 80%;
  align-self: flex-start;
  font-size: 13px;
  border: 1px solid #e0e0e0;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: #1e1e1e;
  color: #aaa;
  padding: 60px 40px 28px;
  margin-top: 80px;
}

/* GRID BURADA OLACAK — başka yerde değil */
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;

  display: grid;                 /* BUNU YAZMADAN ALTTAKİLER ÇALIŞMAZ */
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .brand-name {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  color: var(--clr-primary);
  margin-bottom: 12px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; letter-spacing: 0.5px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  color: #aaa; font-size: 13px;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--clr-primary); padding-left: 4px; }
.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.6;
}


/* ================================================
   HEADER PROFİL ALANI  (hamburger + dropdown)
   ================================================ */
.header-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;          /* shrink bug fix */
  position: relative;
  margin-left: 16px;       /* navbar kaymasını engeller */
}
/* Küçük avatar butonu */
.profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s;
  flex: 0 0 34px;          /* flex width sabitlendi */
}
.profile-avatar:hover { border-color: var(--clr-primary); }
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hamburger {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 7px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .18s;
  flex: 0 0 auto;          /* header’ı itmesini engeller */
}
.hamburger:hover { background: rgba(255,255,255,0.14); }

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .2s;
}

/* Dropdown panel */
.account-menu {
  position: absolute;
  top: calc(100% + 10px);  /* header taşmasını engeller */
  right: 0;
  width: 256px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  border: 1px solid #e4e4e4;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px); /* scale kaldırıldı layout jitter fix */
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 4000;
  overflow: hidden;
}
.account-menu.open,
.account-menu.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Dropdown üst profil alanı */
.am-head {
  background: #3a3a3a;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.am-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #6a3629;
  border: 2px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.am-avatar img { width: 100%; height: 100%; object-fit: cover; }
.am-name  { font-size: 14px; font-weight: 800; color: #fff; line-height: 1.2; }
.am-email { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 3px; }

/* Dropdown menü linkleri */
.am-body { padding: 6px 0; }
.am-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 17px;
  font-size: 13px; font-weight: 700;
  color: #333;
  transition: background .15s, color .15s;
  cursor: pointer;
  text-decoration: none;
  border: none; background: none;
  width: 100%; text-align: left;
  font-family: inherit;
}
.am-item:hover  { background: #f5f5f5; color: #f58c73; }
.am-item.am-active { color: #f58c73; background: #fff5f2; }
.am-item svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.am-sep  { height: 1px; background: #ebebeb; margin: 5px 0; }
.am-danger       { color: #c0392b !important; }
.am-danger:hover { background: #fff5f5 !important; color: #a93226 !important; }

/* Guest menu special buttons */
.am-item-primary {
  background: linear-gradient(135deg, #6a3629, #f58c73) !important;
  color: #fff !important;
  font-weight: 800;
  justify-content: center;
  margin: 8px 12px;
  border-radius: 8px;
  padding: 12px !important;
}
.am-item-primary:hover {
  background: linear-gradient(135deg, #5a2619, #e1735e) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.am-item-outline {
  background: #fff !important;
  color: #f58c73 !important;
  font-weight: 700;
  justify-content: center;
  margin: 0 12px 8px;
  border-radius: 8px;
  padding: 12px !important;
  border: 2px solid #f58c73 !important;
}
.am-item-outline:hover {
  background: #fff5f3 !important;
  color: #e1735e !important;
  border-color: #e1735e !important;
}
.am-footer-text {
  padding: 12px 16px;
  font-size: 11px;
  color: #999;
  text-align: center;
  line-height: 1.5;
  border-top: 1px solid #f0f0f0;
  margin-top: 8px;
}

/* Chatbot & scroll-top class-based (hesap sayfasında kullanılıyor) */
.chatbot-btn {
  position: fixed; bottom: 88px; right: 28px;
  background: #333; width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; cursor: pointer; z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,.14);
  transition: all .25s;
}
.chatbot-btn:hover { background: #6a3629; }
.chatbot-panel {
  position: fixed; bottom: 150px; right: 28px;
  width: 320px; height: 420px;
  background: #fff; border-radius: 16px;
  display: none; flex-direction: column;
  overflow: hidden; z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.chatbot-header {
  background: #3a3a3a;
  color: #fff; padding: 13px 16px;
  font-weight: 800; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center;
}
.chatbot-messages {
  flex: 1; padding: 12px; background: #f8f8f8;
  overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
}
.chatbot-input { display: flex; gap: 6px; padding: 10px; background: #eee; }
.chatbot-input input { flex: 1; padding: 8px 12px; border-radius: 10px; border: 1px solid #ccc; font-family: inherit; font-size: 13px; outline: none; }
.chatbot-input button { padding: 8px 14px; background: #f58c73; color: #fff; border: none; border-radius: 10px; font-weight: 700; font-size: 13px; cursor: pointer; }

/* Footer logo */
.footer-logo { font-family: 'Cinzel', serif; font-size: 22px; color: #f58c73; margin-bottom: 12px; }

/* nav-links (hesap sayfasında kullanılan) */
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 13px; font-weight: 700;
  padding: 5px 13px;
  border-radius: 20px;
  transition: all .25s;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}


/* ─── Account Menu – Giris yapilmamis durum ─── */
.am-auth-btns {
  padding: 10px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.am-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #f58c73, #e1735e);
  color: #fff;
  border-radius: 9px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  font-family: inherit;
  transition: opacity .2s;
}
.am-btn-primary:hover { opacity: .88; }
.am-btn-primary svg, .am-btn-outline svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.am-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff5f3;
  color: #f58c73;
  border: 2px solid #f58c73;
  border-radius: 9px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  font-family: inherit;
  transition: background .2s;
}
.am-btn-outline:hover { background: #ffece7; }
.am-hint {
  padding: 8px 14px 10px;
  font-size: 11px;
  color: #bbb;
  text-align: center;
  line-height: 1.7;
  margin: 0;
}

/* ─── SVG Icon butonlar (searchbar, chatbot) ─── */
.search-bar button {
  display: flex;
  align-items: center;
  justify-content: center;
}
#chatbot-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   MOBİL RESPONSIVE — MangChat
   ═══════════════════════════════════════════════════════════════ */

/* ── Tablet (≤900px) ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .header {
    padding: 0 20px;
    height: auto;
    min-height: 64px;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .logo-img { height: 48px; }
  .header-center { gap: 8px; }
  .search-bar { width: 220px; }
  .nav { gap: 4px; }
  .nav a { font-size: 12px; padding: 4px 8px; }
}

/* ── Mobil (≤600px) ──────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Header */
  .header {
    padding: 0 12px;
    height: auto;
    min-height: 60px;
    flex-wrap: nowrap;
  }
  .logo-img { height: 40px; }

  /* Arama ve nav'ı gizle, hamburger menüde göster */
  .header-center {
    display: none !important;
    overflow: hidden;
    width: 0;
    max-width: 0;
  }
  .header-center.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--clr-dark), var(--clr-primary));
    z-index: 999;
    padding: 16px;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }
  .header-center.mobile-open .search-bar {
    width: 100%;
  }
  .header-center.mobile-open .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }
  .header-center.mobile-open .nav a {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
  }
  .header-center.mobile-open .nav .sep {
    display: none;
  }

  /* Hamburger butonu göster */
  .hamburger {
    display: flex !important;
  }

  /* Username gizle */
  .username { display: none; }

  /* Genel içerik padding */
  .manga-grid,
  .home-manga,
  .favs-wrap,
  .sss-wrap,
  .rules-section,
  .announcement-section,
  .feature-strip {
    padding: 0 12px !important;
  }

  /* Manga grid 2 kolon */
  .manga-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Manga kart */
  .manga-card img { height: 160px; object-fit: cover; }
  .manga-title { font-size: 12px; }

  /* Filtre çubukları scroll olsun */
  .filter-bar,
  .filt-bar,
  .tab-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar,
  .filt-bar::-webkit-scrollbar,
  .tab-bar::-webkit-scrollbar { display: none; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    padding: 20px 16px;
  }
  .footer-col { width: 100%; }

  /* Scroll top butonu */
  .scroll-top {
    bottom: 70px;
    right: 12px;
  }

  /* Chatbot */
  #chatbot-button {
    bottom: 16px;
    right: 16px;
  }
  #chatbot-panel {
    bottom: 70px;
    right: 8px;
    left: 8px;
    width: auto;
  }

  /* Odalar sayfası */
  .rooms-grid {
    grid-template-columns: 1fr !important;
  }

  /* Reader - manga okuma */
  .reader-overlay .reader-inner {
    flex-direction: column;
  }
  .reader-chat-panel {
    width: 100% !important;
    height: 200px;
  }

  /* Hesap sayfası sidebar */
  .acc-layout {
    flex-direction: column;
  }
  .acc-sidebar {
    width: 100% !important;
  }

  /* Butonlar touch-friendly */
  button, .btn-primary, .btn-white, .btn-outline {
    min-height: 44px;
  }

  /* Section title */
  .section-title { font-size: 16px; }
}

/* Hamburger animasyonu */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
