/* =========================================================================
   Claude.ai Türkiye — Topluluk Arşivi
   Roboto Mono · sade · beyaz zemin + WhatsApp yeşilleri
   ========================================================================= */

:root {
  --wa-green: #25d366;
  --wa-teal: #00a884;
  --wa-teal-dark: #017561;
  --wa-deep: #0b3d36;
  --wa-bubble-in: #ffffff;

  --accent: #c15f3c;        /* terracotta */
  --accent-soft: #f1ddd3;

  --bg: #f4f3ee;            /* Claude kremi */
  --surface: #ffffff;
  --bg-soft: #faf9f4;
  --tint: #e9f5ef;          /* yeşil logo zemini */
  --ink: #2b2a25;
  --ink-soft: #6f6b61;
  --line: #e3e0d6;
  --line-strong: #d4d0c3;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(43,42,37,.05);
  --shadow-md: 0 8px 24px rgba(43,42,37,.08);

  --font: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1040px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ---------- Üst gezinme (sade) ---------- */
.backlink {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 18px 0 -4px; font-size: 11.5px; font-weight: 500; color: var(--wa-teal-dark);
  padding: 6px 0; transition: color .15s ease;
}
.backlink:hover { color: var(--accent); }

/* ---------- Ana sayfa başlık (sade) ---------- */
.intro { padding: 32px 0 6px; }
.intro h1 {
  margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -.5px;
}
.intro p { margin: 0; max-width: 560px; color: var(--ink-soft); font-size: 12px; font-weight: 400; }

/* ---------- Ana topluluk kartı (büyük, sade) ---------- */
.hero {
  margin: 22px 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.hero__row { display: flex; align-items: center; gap: 18px; }
.hero__logo {
  width: 66px; height: 66px; border-radius: 16px; flex: none;
  background: var(--wa-teal); color: #fff;
  display: grid; place-items: center; font-size: 32px; overflow: hidden;
}
.hero__logo img { width: 100%; height: 100%; object-fit: cover; }
.hero__body { flex: 1; min-width: 0; }
.hero__badge {
  display: inline-block; font-size: 9.5px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--wa-teal-dark);
  background: #fff; border: 1px solid var(--line-strong);
  padding: 3px 9px; border-radius: 999px; margin-bottom: 8px;
}
.hero__name { font-size: 20px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.3px; }
.hero__desc { font-size: 12.5px; color: var(--ink-soft); font-weight: 400; max-width: 540px; }
.hero__actions { display: flex; gap: 9px; margin-top: 16px; flex-wrap: wrap; }
.hero__actions .btn { flex: 0 1 200px; }

/* ---------- Bölüm başlığı ---------- */
.section-head { display: flex; align-items: baseline; gap: 9px; margin: 26px 2px 12px; }
.section-head h2 {
  font-size: 11px; font-weight: 600; margin: 0; text-transform: uppercase; letter-spacing: 1px;
  color: var(--ink-soft);
}
.section-head span { font-size: 11px; color: var(--ink-soft); font-weight: 300; }

/* ---------- Kart ızgarası ---------- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px; padding-bottom: 26px;
}
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card__link { display: flex; flex-direction: column; flex: 1; }
.card__top { display: flex; align-items: center; gap: 11px; }
.card__logo {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-size: 21px; overflow: hidden;
  background: var(--tint); color: var(--wa-teal-dark);
}
.card__logo img { width: 100%; height: 100%; object-fit: cover; }
.card__name { font-size: 12.8px; font-weight: 600; line-height: 1.3; }
.card__desc { margin: 11px 0 0; font-size: 11.5px; color: var(--ink-soft); font-weight: 400; flex: 1; }

.card__stats { display: flex; gap: 8px; margin-top: 13px; }
.stat {
  flex: 1; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 9px 10px; text-align: left;
}
.stat__top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.stat b { font-size: 15px; font-weight: 700; color: var(--ink); }
.stat small { font-size: 9px; color: var(--ink-soft); font-weight: 500; text-transform: uppercase; letter-spacing: .6px; }
.stat__bar { height: 5px; background: var(--line); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.stat__bar i { display: block; height: 100%; border-radius: 99px; transition: width .5s ease; }
.stat--members .stat__bar i { background: var(--wa-teal); }
.stat--messages .stat__bar i { background: var(--accent); }

/* ---------- Butonlar ---------- */
.card__actions { display: flex; gap: 8px; margin-top: 13px; }
.btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font); font-size: 11.3px; font-weight: 600;
  padding: 9px 10px; border-radius: var(--radius-sm); cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  text-align: center; line-height: 1.2;
}
.btn--ghost { background: #fff; border: 1px solid var(--line-strong); color: var(--wa-teal-dark); }
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--wa-teal); }
.btn--join { background: var(--wa-teal); border: 1px solid var(--wa-teal); color: #fff; }
.btn--join:hover { background: var(--wa-teal-dark); border-color: var(--wa-teal-dark); }
.wa-ico { width: 14px; height: 14px; fill: currentColor; flex: none; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 20px 0 36px; color: var(--ink-soft); font-size: 11px; font-weight: 400; }
.foot a { color: var(--accent); font-weight: 600; }

/* =========================================================================
   GRUP SAYFASI
   ========================================================================= */
.gp { display: grid; grid-template-columns: 1fr 290px; gap: 20px; align-items: start; padding: 20px 0 48px; }

.chatcard {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); background: #fff;
  display: flex; flex-direction: column; height: calc(100vh - 120px); min-height: 460px;
}
.chat-head {
  background: #fff; color: var(--ink); padding: 11px 15px;
  display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line);
}
.chat-head__logo {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--tint); color: var(--wa-teal-dark);
  display: grid; place-items: center; font-size: 19px; overflow: hidden;
}
.chat-head__logo img { width: 100%; height: 100%; object-fit: cover; }
.chat-head__name { font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.chat-head__meta { font-size: 10.5px; color: var(--ink-soft); margin-top: 1px; font-weight: 400; }

.chat-search { display: flex; align-items: center; gap: 8px; padding: 8px 11px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.chat-search input {
  flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 13px; font-size: 12.5px; font-family: var(--font); outline: none; color: var(--ink);
}
.chat-search input:focus { border-color: var(--wa-teal); }
.chat-search__count { font-size: 11px; color: var(--ink-soft); white-space: nowrap; }

.chat-body { flex: 1; overflow-y: auto; padding: 14px 14px 20px; background: var(--bg-soft); scroll-behavior: smooth; }
.loadmore {
  display: block; margin: 2px auto 14px; background: #fff; border: 1px solid var(--line);
  color: var(--wa-teal-dark); font-family: var(--font); font-weight: 500; font-size: 11px;
  padding: 6px 14px; border-radius: 999px; cursor: pointer; box-shadow: var(--shadow-sm);
}
.loadmore:hover { background: var(--bg-soft); }

.datesep { text-align: center; margin: 13px 0; }
.datesep span {
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
  font-size: 10.5px; font-weight: 500; padding: 4px 11px; border-radius: 7px; box-shadow: var(--shadow-sm);
}

.msg { display: flex; margin: 3px 0; }
.bubble {
  max-width: 80%; background: var(--wa-bubble-in); border-radius: 8px;
  padding: 6px 9px 5px; box-shadow: 0 1px 1px rgba(11,40,33,.07); position: relative; font-size: 12.7px;
}
.bubble__sender { font-size: 11.5px; font-weight: 600; margin-bottom: 2px; display: block; }
.bubble__text { white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 400; }
.bubble__text mark { background: #ffe57a; color: inherit; border-radius: 3px; padding: 0 1px; }
.bubble__media { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-style: italic; font-size: 12px; }
.bubble__time { font-size: 9.5px; color: var(--ink-soft); float: right; margin: 4px 0 0 10px; }
.bubble::after {
  content: ""; position: absolute; top: 0; left: -6px; width: 0; height: 0;
  border-top: 7px solid var(--wa-bubble-in); border-left: 7px solid transparent;
}
.chat-empty, .chat-error { text-align: center; color: var(--ink-soft); padding: 46px 20px; font-size: 12.5px; }
.chat-empty b { display: block; color: var(--ink); margin-bottom: 6px; font-size: 13px; font-weight: 600; }

.side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; box-shadow: var(--shadow-sm); }
.panel h3 { margin: 0 0 11px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); }
.side-stats { display: flex; gap: 8px; }
.side-stats .stat { text-align: center; }
.side-stats .stat__top { justify-content: center; flex-direction: column; align-items: center; gap: 0; }
.side-stats .stat b { font-size: 18px; }

.join-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--wa-teal); color: #fff; font-family: var(--font); font-weight: 600; font-size: 13px;
  padding: 12px; border-radius: var(--radius-sm); width: 100%; transition: background .15s ease;
}
.join-btn:hover { background: var(--wa-teal-dark); }

.contrib { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.contrib li { display: flex; align-items: center; gap: 10px; }
.contrib__av { width: 31px; height: 31px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 11px; }
.contrib__info { flex: 1; min-width: 0; }
.contrib__name { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contrib__bar { height: 4px; background: #e9efec; border-radius: 99px; margin-top: 4px; overflow: hidden; }
.contrib__bar i { display: block; height: 100%; background: var(--wa-green); border-radius: 99px; }
.contrib__num { font-size: 11px; color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.contrib__rank { font-size: 11px; color: var(--ink-soft); width: 14px; text-align: center; font-weight: 700; }
.skeleton { color: var(--ink-soft); font-size: 12px; font-weight: 300; }

/* ---------- Kurallar ---------- */
.rulescard {
  margin: 22px 0 0; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 22px; box-shadow: var(--shadow-sm);
}
.rulescard__title { font-size: 15px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.2px; }
.rulescard__intro { font-size: 12px; color: var(--ink-soft); margin: 0 0 18px; max-width: 640px; }
.rulescard__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px 22px; }
.rulescard__list li { display: flex; gap: 11px; }
.rulescard__num {
  flex: none; width: 24px; height: 24px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 12px;
}
.rulescard__t { font-weight: 600; font-size: 12.3px; }
.rulescard__d { font-size: 11.3px; color: var(--ink-soft); margin-top: 2px; line-height: 1.5; }
.rulescard__foot { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-soft); }
.rulescard__foot a { color: var(--accent); font-weight: 600; }

.rules-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.rules-list li { font-size: 11.3px; line-height: 1.45; }
.rules-list li b { display: block; color: var(--ink); font-weight: 600; }
.rules-list li span { color: var(--ink-soft); }

/* ---------- Admin ekibi ---------- */
.adminscard {
  margin: 0 0 48px; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 22px; box-shadow: var(--shadow-sm);
}
/* Güvenlik kilidi: admin kartında büyük görsel asla gösterilmez. */
.adminscard img, .admins__banner { display: none !important; }
.admins__btn {
  display: inline-flex; width: auto; flex: none;
  margin: 0 0 20px; padding: 10px 16px;
}
.admins__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px 20px;
}
.admin { padding-left: 11px; border-left: 2px solid var(--accent-soft); }
.admin__name { font-size: 12.5px; font-weight: 700; }
.admin__role { font-size: 11px; color: var(--accent); font-weight: 500; margin-top: 1px; }
.admin__city { font-size: 10.8px; color: var(--ink-soft); margin-top: 3px; }
.admin__links { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.admin__links a { font-size: 10.8px; color: var(--wa-teal-dark); font-weight: 500; word-break: break-all; }
.admin__links a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 840px) {
  .gp { grid-template-columns: 1fr; }
  .side { position: static; order: -1; }
  .chatcard { height: 68vh; }
}
@media (max-width: 540px) {
  .wrap { padding: 0 13px; }
  .grid { grid-template-columns: 1fr; }
  .hero__row { gap: 14px; }
  .hero__logo { width: 56px; height: 56px; font-size: 27px; }
  .hero__actions .btn { flex: 1; }
  .bubble { max-width: 88%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
:focus-visible { outline: 2px solid var(--wa-teal); outline-offset: 2px; border-radius: 6px; }
