/* ===== perLibre kütüphane paylaşım sayfası — vanilla, hafif, responsive ===== */
:root {
  --primary: #5663FF;
  --primary-d: #3f4bd6;
  --highlight: #FFCC00;
  --ink: #222455;
  --muted: #6E7FAA;
  --bg: #F6F7FC;
  --card: #FFFFFF;
  --line: #E8EBF5;
  --shadow: 0 6px 20px rgba(34, 36, 85, 0.08);
  --radius: 14px;
}
body.dark {
  --ink: #F2F2F5;
  --muted: #9B9BA6;
  --bg: #000000;
  --card: #161618;
  --line: #2A2A2E;
  --shadow: 0 6px 20px rgba(0,0,0,0.6);
}
body.dark .topbar { background: rgba(0,0,0,0.9); }
body.dark .modal-close { background: rgba(255,255,255,0.12); }
body.dark .modal-app a { color: #14162E; }
.theme-toggle { font-size: 19px; line-height: 1; padding: 5px 7px; margin-left: 8px; border-radius: 50%; transition: transform 0.12s; }
.theme-toggle:active { transform: scale(0.88); }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  font-family: 'Josefin Sans', -apple-system, system-ui, sans-serif;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---- yükleniyor / mesaj ekranı ---- */
.center-screen {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; padding: 32px; text-align: center;
}
.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.center-screen .emoji { font-size: 68px; }
.center-screen h2 { font-size: 22px; font-weight: 700; }
.center-screen p { color: var(--muted); font-size: 15px; max-width: 340px; line-height: 1.5; }

/* ---- üst şerit ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { max-width: 1080px; margin: 0 auto; padding: 12px 18px; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; font-weight: 700; font-size: 18px; }
.brand .b-per { color: var(--primary); }
.brand .b-libre { color: var(--highlight); }
.brand .logo { width: 26px; height: 26px; border-radius: 7px; margin-right: 8px; }
.lang-sel { padding: 5px 7px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.topbar .cta { margin-left: auto; background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 20px; font-weight: 600; font-size: 13px; }

/* ---- profil başlığı ---- */
.header { max-width: 1080px; margin: 0 auto; padding: 26px 18px 8px; }
.header-top { display: flex; gap: 18px; align-items: center; }
.avatar {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; box-shadow: var(--shadow); background: var(--line); flex-shrink: 0;
}
.header-info { min-width: 0; }
.header-info h1 { font-size: 26px; font-weight: 700; word-break: break-word; }
.header-info h1 .at { color: var(--muted); font-weight: 500; }
.bio { color: var(--muted); font-size: 15px; margin-top: 4px; line-height: 1.45; white-space: pre-wrap; }
.joined { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
img.avatar { cursor: pointer; transition: transform 0.15s; }
img.avatar:active { transform: scale(0.96); }
.bio-tr { color: var(--primary); font-size: 13px; margin-top: 3px; font-style: italic; cursor: pointer; }
.v-mention { color: var(--primary); font-weight: 600; text-decoration: none; }

/* sayaçlar */
.stats { display: flex; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.stat { text-align: center; cursor: pointer; transition: transform 0.12s; }
.stat:active { transform: scale(0.94); }
.stat b { display: block; font-size: 20px; font-weight: 700; color: var(--ink); }
.stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ---- sekmeler ---- */
.tabs {
  max-width: 1080px; margin: 20px auto 0; padding: 0 18px;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 12px 14px; font-size: 15px; font-weight: 600; color: var(--muted);
  white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab .cnt { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---- arama ---- */
.search-wrap { max-width: 1080px; margin: 16px auto 0; padding: 0 18px; }
.search {
  width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); font-size: 15px; color: var(--ink); outline: none;
}
.search:focus { border-color: var(--primary); }

/* ---- içerik ---- */
.content { max-width: 1080px; margin: 16px auto 60px; padding: 0 18px; min-height: 68vh; }
.empty { text-align: center; color: var(--muted); padding: 50px 20px; font-size: 15px; }

/* poster grid */
.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}
.card { cursor: pointer; transition: transform 0.15s; position: relative; }
/* Ana kütüphane (2656+ kart) için ekran dışı kartların render'ını (layout/paint)
   ertele — DOM'da kalır ama işlenmez → ilk açılış + kaydırma akıcı. Kapaklar zaten
   loading=lazy olduğu için network etkilenmez. Olmazsa bu iki satır geri alınır. */
.grid .card { content-visibility: auto; contain-intrinsic-size: auto 210px; }
.tur-rozet { position: absolute; top: 5px; left: 5px; font-size: 14px; line-height: 1; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6)); pointer-events: none; z-index: 1; }
.card:active { transform: scale(0.96); }
.poster {
  width: 100%; aspect-ratio: 2/3; border-radius: 10px; object-fit: cover;
  background: var(--line); box-shadow: var(--shadow);
}
.poster.ph { display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--muted); }
/* Genel Bakış şeridinde profil aktivitesi kartı — büyük emoji + eylem metni */
.poster.akt-emoji-poster { font-size: 40px; }
.akt-card-profil { cursor: default; }
.akt-card-profil .title-profil { -webkit-line-clamp: 3; color: var(--muted); font-weight: 600; text-align: center; }
/* Kırık/yüklenemeyen görsel: JS src'yi kaldırır, altındaki düz --line zemin kalır (bozuk ikon yok). */
img.img-broken { background: var(--line) !important; object-fit: cover; }
.card .title { font-size: 12.5px; font-weight: 600; margin-top: 6px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .sub { font-size: 11px; color: var(--muted); margin-top: 1px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* genel bakış şeritleri */
.ov-sec { margin-bottom: 26px; }
.ov-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.ov-head h3 { font-size: 17px; font-weight: 700; }
.ov-head .ov-cnt { font-size: 12px; color: var(--muted); font-weight: 500; }
.ov-all { color: var(--primary); font-weight: 600; font-size: 13px; white-space: nowrap; }
/* 2026 Challenge özeti (Genel Bakış) — tür başına X/Y + ince ilerleme çubuğu */
.ch-wrap { display: flex; flex-direction: column; gap: 14px; }
.ch-row-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 14px; }
.ch-ad { font-weight: 600; }
.ch-say { font-weight: 600; color: var(--muted); }
.ch-say b { font-weight: 800; }
.ch-bar { height: 8px; border-radius: 5px; background: var(--line); overflow: hidden; }
.ch-bar-in { height: 100%; border-radius: 5px; transition: width .4s ease; }
.strip { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.strip::-webkit-scrollbar { display: none; }
.strip .card { flex: 0 0 auto; width: 104px; }
.catposter { aspect-ratio: 1; object-fit: contain; background: transparent; box-shadow: none; }

/* kedi grid */
.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.cat-card { background: var(--card); border-radius: 14px; padding: 12px 8px; text-align: center; box-shadow: var(--shadow); cursor: pointer; transition: transform 0.15s; }
.cat-card:active { transform: scale(0.96); }
.cat-card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.cat-card .cname { font-size: 12px; font-weight: 600; margin-top: 6px; }

/* aktivite / günlük */
.akt { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); margin-bottom: 10px; cursor: pointer; }
.akt > img, .akt .akt-ph { width: 44px; aspect-ratio: 2/3; border-radius: 6px; object-fit: cover; background: var(--line); flex-shrink: 0; }
.akt .akt-ph { display: flex; align-items: center; justify-content: center; font-size: 20px; }
/* Profil aktivitesi: kapak yerine kare kutu + büyük emoji (bio/3x3/liste vb.) */
.akt-profil { cursor: default; }
.akt-profil .akt-emoji { aspect-ratio: 1 / 1; font-size: 24px; background: var(--line); }
.akt-body { min-width: 0; flex: 1; }
.akt-line { font-size: 12px; color: var(--muted); }
.akt-name { font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.akt-not { font-size: 12.5px; color: var(--ink); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.akt-date { font-size: 11px; color: var(--muted); margin-top: 3px; }
.akt-sub { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.akt-rel { font-size: 12px; color: var(--muted); font-weight: 600; flex-shrink: 0; align-self: flex-start; }
.diary-ay { margin-bottom: 22px; }
.diary-ay h3 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.diary-tarih { flex-shrink: 0; min-width: 42px; text-align: center; }
.diary-tarih b { font-size: 20px; font-weight: 700; color: var(--ink); display: block; line-height: 1; }
.diary-tarih span { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.akt-card .akt-badge { font-size: 10px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.3px; margin-top: 5px; }
.akt-card .title { margin-top: 1px; }
.akt-kedi .akt-ph { background: #fff4d6; }

/* liste bölümü */
.liste-blok { margin-bottom: 26px; }
.liste-blok h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.liste-blok h3 .cnt { font-size: 12px; color: var(--muted); font-weight: 500; }
.liste-toggle { margin-top: 12px; background: var(--card); border: 1px solid var(--line); color: var(--primary); font-weight: 600; font-size: 13px; padding: 8px 18px; border-radius: 20px; box-shadow: var(--shadow); }
.liste-blok h3.liste-tik { cursor: pointer; transition: color 0.12s; }
.liste-blok h3.liste-tik:hover { color: var(--primary); }

/* ---- sahip başlığı (list + 3x3 — library ile TUTARLI) ---- */
.owner-header { padding-bottom: 6px; }
.owner-header .header-info h1 { font-size: 23px; }
.owner-link { color: inherit; text-decoration: none; }
.owner-link:hover { text-decoration: underline; }
.owner-lib { display: inline-block; margin-top: 9px; font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; }
.owner-lib:hover { text-decoration: underline; }
/* 3x3 dar koyu kart sayfasında sahip başlığı kompakt + kartla hizalı */
.uk3-page .owner-header { padding: 6px 6px 14px; }
.uk3-page .owner-header .header-top { gap: 14px; }
.uk3-page .owner-header .avatar { width: 64px; height: 64px; }
.uk3-page .owner-header .header-info h1 { font-size: 21px; }

/* ---- tek liste paylaşım sayfası (/list/<key>) ---- */
.liste-title { max-width: 1080px; margin: 0 auto; padding: 2px 18px 6px; }
.liste-badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--card); border: 1px solid var(--line); padding: 4px 12px; border-radius: 14px; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: var(--shadow); }
.liste-name { font-size: 21px; font-weight: 700; margin-top: 10px; word-break: break-word; line-height: 1.2; }
.liste-meta { font-size: 14px; color: var(--muted); margin-top: 7px; font-weight: 600; }

/* ---- 3x3 (üç kare) ---- */
.uk-mor { color: #8B7FF5; }
.uk-baslik-link { display: inline-block; }
.uk-baslik-link:hover h3 { opacity: 0.75; }
.uk-wrap { display: flex; flex-direction: column; gap: 14px; }
.uk-ana { font-size: 14px; color: var(--muted); font-style: italic; overflow-wrap: anywhere; }
.uk-satir { display: flex; align-items: flex-start; gap: 12px; }
.uk-label { width: 92px; flex-shrink: 0; overflow: hidden; }
.uk-emoji { font-size: 18px; }
/* uzun tagline taşıp sayfayı bozmasın: kelime kır + 3 satırda kes */
.uk-tag { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 13px; font-style: italic; color: var(--uk); margin-top: 3px; line-height: 1.3; }
.uk-kapaklar { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 104px)); gap: 8px; justify-content: start; }
.uk-kare { aspect-ratio: 2/3; border-radius: 8px; overflow: hidden; background: var(--line); cursor: pointer; box-shadow: var(--shadow); transition: transform 0.15s; }
.uk-kare:active { transform: scale(0.96); }
.uk-kare img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uk-bos { display: flex; align-items: center; justify-content: center; font-size: 20px; opacity: 0.4; cursor: default; box-shadow: none; }
/* overview mini: kompakt, sabit küçük kapaklar (desktop'ta da büyümez) */
.uk-mini .uk-label { width: 64px; }
.uk-mini .uk-tag { -webkit-line-clamp: 2; font-size: 10px; }
.uk-mini .uk-kapaklar { display: flex; gap: 6px; }
.uk-mini .uk-kare { width: 52px; flex: 0 0 auto; }

/* Overview yatay 3x3: 3 kategori grubu yan yana; kartlar diğer eserlerle birebir aynı (kapak+isim+yazar) */
.uk2-ana { display: flex; align-items: baseline; font-size: 13.5px; color: var(--muted); margin: -4px 0 14px; }
/* tagline metni içeriği kadar yer kaplar (clamp), 🌐 hemen sonrasında + boşluk, kesilse de hep görünür */
.uc-tag-metin { flex: 0 1 auto; min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.uk2-ana .uc-tag-metin, .uk3-ana .uc-tag-metin, .uk2-tag .uc-tag-metin { -webkit-line-clamp: 2; }
.uk3-tag .uc-tag-metin { -webkit-line-clamp: 5; }
.uk2-tag, .uk3-tag, .uk2-ana, .uk3-ana { gap: 4px; }
.uc-tag-emoji { flex: 0 0 auto; }
.uc-tag-tr { flex: 0 0 auto; cursor: pointer; font-size: 11px; opacity: 0.65; }
.uc-tag-tr:hover { opacity: 1; }
.uk2-wrap { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.uk2-wrap::-webkit-scrollbar { display: none; }
.uk2-grup { flex: 0 0 auto; }
/* min-height: 2 satır rezerve → 1 satırlık tagline'da bile kapaklar aynı hizada başlar */
.uk2-tag { display: flex; align-items: baseline; font-size: 12px; font-style: italic; margin-bottom: 8px; max-width: 344px; min-height: 2.7em; }
.uk2-kapaklar { display: flex; gap: 12px; }
.uk2-kapaklar .card { width: 104px; flex: 0 0 auto; }
.uk2-bos { width: 104px; flex: 0 0 auto; }

/* ---- Kedi Kartları overview şeridi (perlibre.com/<slug> Genel Bakış) ---- */
.cc-wrap { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.cc-wrap::-webkit-scrollbar { display: none; }
.cc-kart { flex: 0 0 auto; width: 132px; border-radius: 12px; overflow: hidden; display: block; box-shadow: 0 3px 12px rgba(0,0,0,.14); transition: transform .15s ease; }
.cc-kart:hover { transform: translateY(-3px); }
.cc-kart img { width: 100%; height: auto; display: block; }

/* ---- Holo foil (uygulamadaki kart efektinin web ikizi) — overview şeridi, albüm
   grid'i ve tek kart sayfası aynı .cc-kart sınıfını paylaşır. Fare/dokunuş kartı 3D
   eğer, parıltı imleci takip eder; el değmiyorken yavaşça kendi kendine gezinir. ---- */
.cc-kart { --fx: 50%; transition: transform .18s ease; will-change: transform; }
/* Opaklıklar bilinçli DÜŞÜK: kart PNG'si zaten uygulamada çizilmiş foil içeriyor,
   bu CSS ikinci kat. Yüksek değerlerde kart yanık/aşırı parlak görünüyordu. */
.cc-kart::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 34%, rgba(255,255,255,.12) 45%, rgba(255,120,220,.09) 50%, rgba(120,220,255,.10) 55%, transparent 66%),
    repeating-linear-gradient(115deg, rgba(255,0,140,.025) 0 7px, rgba(0,210,255,.025) 7px 14px);
  background-size: 260% 260%, auto;
  mix-blend-mode: screen;
  animation: ccFoil 7s ease-in-out infinite;
}
/* Etkileşimde animasyon durur, parıltı imlece kilitlenir (--fx JS'ten gelir). */
.cc-kart:hover::after, .cc-kart.cc-aktif::after {
  animation: none;
  background-position: var(--fx) 50%, 0 0;
}
@keyframes ccFoil {
  0%, 100% { background-position: 14% 50%, 0 0; }
  50% { background-position: 86% 50%, 0 0; }
}
/* Tek kart sayfasındaki büyük kart — aynı .cc-kart efekti, sadece daha iri. */
.cc-buyuk { width: min(360px, 88vw); }

/* ---- Kedi Kartı paylaşım sayfaları (/catcards/<slug> + /<slug>/catcards) ---- */
.cc-page { max-width: 820px; margin: 0 auto; padding: 0 16px 10px; }
.cc-single { display: flex; justify-content: center; margin: 10px 0 32px; }
/* Genişliği .cc-buyuk belirler; burada width vermek holo katmanının (::after, kartın
   %100'ü) resimden (o zaman %90) taşmasına yol açıyordu. */
.cc-single img { width: 100%; border-radius: inherit; box-shadow: 0 12px 44px rgba(120,90,255,.4); }
.cc-albumhd { font-size: 17px; font-weight: 700; margin: 6px 0 14px; display: flex; align-items: center; gap: 8px; }
.cc-albumhd .cnt { font-size: 13px; opacity: .55; font-weight: 500; }
.cc-albumwrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cc-albumwrap .cc-kart { width: auto; }

/* ---- 3x3 paylaşım sayfası (perlibre.com/3x3/<key>) — koyu, ekran görüntüsü dostu, temadan bağımsız ---- */
.uk3-top { background: #0E0E12 !important; border-bottom: 1px solid #1E1E26; }
.uk3-top .lang-sel { background: #1A1A20; color: #fff; border-color: #2A2A32; }
.uk3-page { min-height: 100vh; background: #0A0A0E; max-width: 560px; margin: 0 auto; padding: 16px 14px 40px; }
.uk3-card { background: linear-gradient(135deg, #1A1A20, #121216); border: 1px solid rgba(255,255,255,0.08); border-radius: 22px; padding: 22px 18px 18px; }
.uk3-title { font-size: 26px; font-weight: 800; color: #fff; line-height: 1.1; }
.uk3-title span { color: #8B7FF5; }
.uk3-ana { display: flex; align-items: baseline; font-size: 14px; color: rgba(255,255,255,0.55); font-style: italic; margin: 4px 0 16px; }
.uk3-satir { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.uk3-label { width: 92px; flex-shrink: 0; overflow: hidden; }
.uk3-emoji { font-size: 15px; }
.uk3-tag { display: flex; align-items: baseline; font-size: 13px; font-style: italic; margin-top: 3px; line-height: 1.3; }
.uk3-kapaklar { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 104px)); gap: 8px; justify-content: start; }
.uk3-kare { aspect-ratio: 2/3; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,0.06); cursor: pointer; transition: transform 0.15s; }
.uk3-kare:active { transform: scale(0.96); }
.uk3-kare img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uk3-bos { display: flex; align-items: center; justify-content: center; font-size: 18px; opacity: 0.4; }
.uk3-brand { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 14px; font-weight: 700; font-size: 15px; }
.uk3-brand .b-per { color: #5663FF; }
.uk3-brand .b-libre { color: #FFCC00; }
.uk3-logo { width: 20px; height: 20px; border-radius: 5px; margin-right: 3px; }
.uk3-hash { color: rgba(255,255,255,0.4); font-size: 11px; margin-left: 8px; font-weight: 600; }
.uk3-owner { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 14px; background: #161618; border-radius: 16px; }
.uk3-av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #222; flex-shrink: 0; }
.uk3-oinfo { min-width: 0; }
.uk3-oname { color: #fff; font-weight: 700; font-size: 16px; }
.uk3-obio { color: rgba(255,255,255,0.55); font-size: 12px; margin-top: 2px; line-height: 1.4; overflow-wrap: anywhere; }
.uk3-dsrc { color: rgba(255,255,255,0.4); font-size: 11px; margin-top: 4px; }
.uk3-dtr { color: #8B7FF5; font-size: 12px; font-weight: 600; margin-top: 2px; cursor: pointer; display: inline-block; }
.uk3-profil { display: block; margin-top: 10px; color: #8B7FF5; font-weight: 600; font-size: 13px; }
.uk3-footer { background: #121216; border-top: 1px solid #1E1E26; margin-top: 20px; border-radius: 16px; padding: 26px 18px; }
.uk3-footer h3 { color: #fff; }
.uk3-footer p { color: rgba(255,255,255,0.5); }

/* düşünceler */
.dusunce { background: var(--card); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); margin-bottom: 12px; display: flow-root; cursor: pointer; }
.dusunce:active { transform: scale(0.99); }
.dusunce img { float: left; width: 46px; height: 69px; border-radius: 6px; object-fit: cover; background: var(--line); margin: 0 12px 4px 0; }
.dusunce .d-body { min-width: 0; }
.dusunce .d-name { font-weight: 700; font-size: 14px; }
.d-tur { font-size: 10px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.3px; }
.d-tr { color: var(--primary); font-size: 12px; font-weight: 600; margin-top: 6px; cursor: pointer; display: inline-block; }
.d-src { font-size: 11px; color: var(--muted); margin-top: 6px; }
.bio-src { font-size: 12px; color: var(--muted); margin-top: 4px; }
.dusunce .d-text { font-size: 14px; color: var(--ink); margin-top: 4px; line-height: 1.5; }
.dusunce .d-date { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* ---- footer CTA ---- */
.footer { border-top: 1px solid var(--line); background: var(--card); padding: 30px 18px; text-align: center; }
.footer h3 { font-size: 18px; font-weight: 700; }
.footer p { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }
.footer .cta { display: inline-block; background: var(--primary); color: #fff; padding: 12px 28px; border-radius: 24px; font-weight: 600; }

/* ---- modal (mini detay) ---- */
/* En üste git butonu — aşağı kaydırınca sağ altta belirir (modal z:60'ın altında). */
.scrolltop {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--primary); color: #fff; font-size: 24px; line-height: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.scrolltop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scrolltop:active { transform: scale(0.92); }
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,22,50,0.55); backdrop-filter: blur(3px); }
.modal-box { position: relative; background: var(--card); border-radius: 18px; max-width: 460px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modal-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,0.06); font-size: 15px; z-index: 2; }
.modal-content { padding: 22px; }
.modal-hero { display: flex; gap: 16px; }
.modal-hero img { width: 108px; aspect-ratio: 2/3; border-radius: 10px; object-fit: cover; background: var(--line); box-shadow: var(--shadow); flex-shrink: 0; }
.modal-hero h2 { font-size: 20px; font-weight: 700; line-height: 1.2; }
.modal-hero .m-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.modal-hero .m-badge { display: inline-block; margin-top: 8px; background: var(--line); color: var(--muted); font-size: 11px; padding: 3px 9px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.modal-subject { margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.modal-app { margin-top: 18px; text-align: center; }
.modal-app a { display: inline-block; background: var(--highlight); color: var(--ink); font-weight: 700; padding: 10px 22px; border-radius: 22px; font-size: 14px; }

/* ---- responsive ---- */
@media (max-width: 560px) {
  .header-info h1 { font-size: 22px; }
  .liste-hero h1 { font-size: 24px; }
  .avatar { width: 74px; height: 74px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 11px; }
  .stat b { font-size: 18px; }
  .modal-hero { flex-direction: column; align-items: center; text-align: center; }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* Visualis marker chip'leri (düşünce metni içi) */
.v-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; margin: 0 1px; border-radius: 5px; font-size: .82em; font-weight: 600; text-decoration: none; vertical-align: baseline; }
.v-img { background: rgba(46,125,50,.12); color: #2E7D32; cursor: pointer; }
.v-link { background: rgba(21,101,192,.12); color: #1565C0; }
.v-bkz { background: rgba(106,61,232,.12); color: #6A3DE8; cursor: pointer; }
.v-spoiler { background: rgba(120,120,120,.15); color: #666; cursor: pointer; }
/* Album (visualis) kartları — kare thumbnail, fotoğraf tam dolar (gri çerçeve/padding yok) */
.alb-card { cursor: pointer; background: transparent; padding: 0; box-shadow: none; border-radius: 8px; overflow: hidden; }
.alb-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; display: block; background: var(--line); box-shadow: var(--shadow); }
/* Overview düşünce özeti — marker'lar chip kalır, taşarsa satır bazında temiz kesilir (yarım marker yok) */
.d-text.ov-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
