/* Kodvira — Akış, yazı ve profil sayfaları */
.akis { --k: #1d3b8f; --k-bg: #e3e8f4; }

/* Profil fotoğrafı (yoksa baş harf) */
.av { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--grad); color: #fff;
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 19px; text-decoration: none; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.s { width: 36px; height: 36px; font-size: 15px; }
.av.l { width: 132px; height: 132px; font-size: 48px; border: 4px solid #fff; box-shadow: var(--shadow-lg); }

/* İki sütun düzen */
.akis-dz { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .akis-dz { grid-template-columns: 1fr; } }
.akis-ana { display: grid; gap: 14px; min-width: 0; }
.akis-yan { display: grid; gap: 14px; position: sticky; top: 90px; }
@media (max-width: 960px) { .akis-yan { position: static; } }
.kutu { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-sm); }
.kutu h3 { margin: 0 0 8px; font-size: 16px; }
.kutu p { margin: 0; color: var(--muted); font-size: 14.5px; }
.kutu .btn { width: 100%; margin-top: 12px; padding: 11px 16px; font-size: 15px; }
.ben { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.ben b { display: block; font-size: 15.5px; }
.ben small { color: var(--muted); font-size: 13px; display: block; line-height: 1.35; }
.kurallar-kisa { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.kurallar-kisa li { display: flex; gap: 8px; } .kurallar-kisa li::before { content: "•"; color: var(--k); font-weight: 800; }

/* Paylaşım kutusu */
.yazbox { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-sm); display: grid; gap: 12px; }
.yazbox .ust { display: flex; gap: 12px; align-items: center; }
.yazbox .ac { flex: 1; text-align: left; font: inherit; font-size: 15.5px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; cursor: pointer; }
.yazbox .ac:hover { background: var(--light); }
.yazbox .secim { display: flex; gap: 6px; flex-wrap: wrap; }
.yazbox .secim button { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 8px 12px; border-radius: 9px; cursor: pointer; }
.yazbox .secim button:hover { background: var(--light); color: var(--text); }
.yazbox .secim .i { width: 19px; height: 19px; color: var(--k); }
.yform { display: grid; gap: 10px; }
.yform .tur { display: inline-flex; background: var(--soft); border-radius: 10px; padding: 3px; justify-self: start; }
.yform .tur button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: none; padding: 7px 14px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.yform .tur button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.yform input[type=text], .yform textarea, .yform select { font: inherit; font-size: 16px; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--text); width: 100%; }
.yform input.baslik { font-family: "Sora", sans-serif; font-weight: 700; font-size: 19px; }
.yform textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.yform textarea.uzun { min-height: 300px; }
.yform :is(input, textarea, select):focus { outline: none; border-color: var(--k); box-shadow: 0 0 0 3px rgba(29,59,143,.15); }
.yform .alt { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.yform .alt .sol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.yform .alt select { width: auto; padding: 8px 10px; font-size: 14.5px; }
.yform .sayac { font-size: 12.5px; color: var(--faint); }
.yform .ipucu { font-size: 12.5px; color: var(--faint); margin: -4px 0 0; }
.yform .sag { display: flex; gap: 8px; margin-left: auto; }
.yform .sag .btn { padding: 10px 18px; font-size: 15px; }
.yform .uyari { font-size: 12.5px; color: var(--muted); background: var(--light); border-radius: 9px; padding: 8px 10px; margin: 0; }

/* Yazı kartı */
.ykart { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 16px 18px 6px; min-width: 0; }
@media (max-width: 520px) { .ykart { padding: 14px 14px 4px; border-radius: 14px; } }
.ykart .bas { display: flex; gap: 11px; align-items: flex-start; }
.ykart .kim { flex: 1; min-width: 0; line-height: 1.3; }
.ykart .kim a { text-decoration: none; }
.ykart .kim a b { font-size: 15.5px; } .ykart .kim a:hover b { color: var(--k); text-decoration: underline; }
.ykart .kim small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ykart .kim .zaman { color: var(--faint); font-size: 12.5px; }
.menu { position: relative; }
.menu > button { width: 34px; height: 34px; border-radius: 9px; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; }
.menu > button:hover { background: var(--light); }
.menu .lst { position: absolute; right: 0; top: 38px; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 190px; display: grid; }
.menu .lst[hidden] { display: none; }
.menu .lst button, .menu .lst a { text-align: left; font: inherit; font-size: 14.5px; padding: 9px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--text); text-decoration: none; }
.menu .lst button:hover, .menu .lst a:hover { background: var(--light); }
.menu .lst .kirmizi { color: #b4233c; }
.ykart .konu { display: inline-block; font-size: 12px; font-weight: 700; color: var(--k); background: var(--k-bg); border-radius: 7px; padding: 2px 9px; margin: 10px 0 0; }
.ykart h2 { font-size: 20px; line-height: 1.3; margin: 8px 0 4px; word-break: break-word; }
.ykart h2 a { text-decoration: none; } .ykart h2 a:hover { color: var(--k); }
.ykart .govde { font-size: 15.5px; line-height: 1.6; word-break: break-word; margin-top: 8px; }
.ykart .govde.kisa { max-height: 9.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.ykart .devam { background: none; border: 0; padding: 0; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--k); cursor: pointer; text-decoration: none; display: inline-block; margin-top: 4px; }
.metin p { margin: 0 0 .8em; } .metin p:last-child { margin-bottom: 0; }
.metin h3 { font-size: 18px; margin: 1.1em 0 .4em; }
.metin ul { margin: 0 0 .8em; padding-left: 1.3em; }
.metin a { color: var(--k); word-break: break-all; }
.ykart .ekler { margin-top: 10px; }
.ykart .ek-resim { width: 100%; height: auto; max-height: 460px; aspect-ratio: auto; }
.ykart .ekler:has(.ek-resim + .ek-resim) .ek-resim { width: calc(50% - 4px); height: 200px; }
.ykart .ek-resim img { object-fit: cover; max-height: 460px; }
.ykart .sayilar { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--faint); padding: 10px 0 8px; border-bottom: 1px solid var(--line); }
.ykart .eylem { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px 0; }
.ykart .eylem button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 10px 6px; border-radius: 9px; cursor: pointer; }
.ykart .eylem button:hover { background: var(--light); color: var(--text); }
.ykart .eylem .i { width: 20px; height: 20px; }
.ykart .eylem [aria-pressed="true"] { color: var(--k); }
.ykart .eylem [aria-pressed="true"] .i { fill: currentColor; }
.ykart .gizli-not { margin: 10px 0 4px; font-size: 13.5px; background: #fff4dc; color: #7a5200; border-radius: 9px; padding: 8px 10px; }
.ykart .yorumlar { border-top: 1px solid var(--line); padding: 12px 0 10px; display: grid; gap: 10px; }
.yrm { display: flex; gap: 9px; align-items: flex-start; }
.yrm .bal { flex: 1; min-width: 0; background: var(--light); border-radius: 0 12px 12px 12px; padding: 8px 12px; font-size: 14.5px; }
.yrm .bal .ust { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 13px; color: var(--faint); }
.yrm .bal .ust a { color: var(--text); font-weight: 700; text-decoration: none; }
.yrm .bal .ust button { margin-left: auto; background: none; border: 0; color: #b4233c; font: inherit; font-size: 12.5px; cursor: pointer; padding: 0 2px; }
.yrm .bal p { margin: 2px 0 0; white-space: pre-line; word-break: break-word; }
.yyaz { display: flex; gap: 9px; align-items: flex-start; }
.yyaz form { flex: 1; display: grid; gap: 6px; }
.yyaz textarea { font: inherit; font-size: 15px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); min-height: 44px; height: 44px; resize: vertical; width: 100%; background: #fff; }
.yyaz textarea:focus { height: 84px; outline: none; border-color: var(--k); }
.yyaz .btn { justify-self: end; padding: 8px 16px; font-size: 14.5px; }
.bos-not { font-size: 14px; color: var(--muted); margin: 0; }
.akis-daha { justify-self: center; }

/* Yazı sayfası (makale okuma) */
.okuma { max-width: 760px; margin: 0 auto; }
.okuma .ykart { padding: 26px 30px 10px; }
@media (max-width: 520px) { .okuma .ykart { padding: 18px 16px 6px; } }
.okuma .ykart h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; margin: 14px 0 8px; word-break: break-word; }
.okuma .ykart .govde { font-size: 17px; line-height: 1.75; }
.okuma .metin h3 { font-size: 21px; }
.sorumluluk { font-size: 12.5px; color: var(--faint); border-top: 1px solid var(--line); margin-top: 18px; padding-top: 10px; }

/* Profil sayfası */
.pkapak { height: 170px; background: radial-gradient(500px 220px at 85% 0%, rgba(240,90,26,.32), transparent 70%), #17181b; }
@media (max-width: 600px) { .pkapak { height: 110px; } }
.pkart { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; margin-top: -80px; position: relative; }
.pkart .ic { padding: 0 26px 22px; }
@media (max-width: 600px) { .pkart { margin-top: -50px; } .pkart .ic { padding: 0 16px 18px; } }
.pkart .av.l { margin-top: -66px; }
@media (max-width: 600px) { .pkart .av.l { width: 104px; height: 104px; margin-top: -52px; font-size: 38px; } }
.pkart .ust { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding-top: 22px; }
.pkart .ust .bt { display: flex; gap: 8px; flex-wrap: wrap; }
.pkart .ust .btn { padding: 9px 16px; font-size: 14.5px; }
.pkart h1 { font-size: clamp(24px, 3.4vw, 30px); margin: 12px 0 0; line-height: 1.2; }
.pkart .kadi { color: var(--faint); font-size: 14.5px; }
.pkart .unvan { font-size: 16.5px; margin: 6px 0 0; }
.pkart .yer { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 14px; margin-top: 8px; }
.pkart .yer a { color: var(--k); font-weight: 600; text-decoration: none; }
.pkart .hakkinda { margin: 14px 0 0; white-space: pre-line; color: var(--text); font-size: 15.5px; }

/* Profil düzenleme formu */
.pform { display: grid; gap: 14px; }
.pform label { display: grid; gap: 6px; font-size: 14.5px; font-weight: 600; }
.pform small { font-weight: 400; color: var(--faint); font-size: 13px; }
.pform input[type=text], .pform input[type=url], .pform textarea { font: inherit; font-size: 16px; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--text); width: 100%; }
.pform textarea { min-height: 100px; resize: vertical; }
.pform :is(input, textarea):focus { outline: none; border-color: var(--k); box-shadow: 0 0 0 3px rgba(29,59,143,.15); }
.pform .iki { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .pform .iki { grid-template-columns: 1fr; } }
.pform .foto { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.pform .foto .av { width: 88px; height: 88px; font-size: 32px; }
.pform .kadi-alan { position: relative; }
.pform .kadi-alan input { padding-left: 30px; }
.pform .kadi-alan::before { content: "@"; position: absolute; left: 13px; bottom: 12px; color: var(--faint); font-weight: 600; }
.pform .durum { font-size: 13px; font-weight: 600; min-height: 1.2em; }
.pform .durum.ok { color: #0f7a4f; } .pform .durum.no { color: #b4233c; }
.pform .onay { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; background: var(--light); border-radius: 12px; padding: 12px 14px; }
.pform .onay input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: #1d3b8f; }
.pform .onay a { color: var(--k); font-weight: 600; }
.pform .btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Şikâyet penceresi */
.kv-modal { position: fixed; inset: 0; z-index: 100; background: rgba(22,23,26,.55); display: grid; place-items: center; padding: 16px; }
.kv-modal .pen { background: #fff; border-radius: 18px; padding: 22px; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.kv-modal h3 { margin: 0 0 4px; font-size: 19px; }
.kv-modal p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.kv-modal .nedenler { display: grid; gap: 6px; margin-bottom: 12px; }
.kv-modal .nedenler label { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14.5px; }
.kv-modal .nedenler label:has(input:checked) { border-color: #1d3b8f; background: #e3e8f4; }
.kv-modal textarea { font: inherit; font-size: 15px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); width: 100%; min-height: 70px; resize: vertical; }
.kv-modal .bt { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.kv-modal .bt .btn { padding: 10px 18px; font-size: 15px; }
.btn.kirmizi { background: #c62842; box-shadow: none; }

.kv-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; background: #17181b; color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14.5px; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); }


/* #etiket bağlantıları */
.metin a.etiket, .govde a.etiket { color: var(--k); font-weight: 600; text-decoration: none; word-break: normal; }
.metin a.etiket:hover { text-decoration: underline; }

/* Bağlantı önizleme kartı */
.onz { display: flex; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s; }
.onz:hover { border-color: #cfcbc0; box-shadow: var(--shadow-sm); }
.onz .r { flex: none; width: 34%; max-width: 220px; min-height: 110px; background: var(--soft); }
.onz .r img { width: 100%; height: 100%; object-fit: cover; display: block; }
.onz .m { flex: 1; min-width: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.onz .m small { font-size: 12px; color: var(--faint); text-transform: lowercase; }
.onz .m b { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.onz .m span { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 520px) { .onz { flex-direction: column; } .onz .r { width: 100%; max-width: none; height: 170px; } }
.onz-kutu { position: relative; }
.onz-kutu .onz { margin-top: 0; pointer-events: none; }
.onz-x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(22,23,26,.7); color: #fff; font-size: 18px; cursor: pointer; }
.onz-not { margin: 0; font-size: 13.5px; color: var(--muted); }
.onz-not.hata { color: #b4233c; background: #fdecef; border-radius: 9px; padding: 8px 10px; }

/* Video (YouTube / Vimeo) */
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 10px; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: #17181b; cursor: pointer; }
.video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.video .oynat { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 14px; background: rgba(224,36,36,.92); color: #fff; display: grid; place-items: center; transition: transform .15s; }
.video:hover .oynat { transform: scale(1.08); }
.video .oynat svg { width: 28px; height: 28px; }
.video .kaynak { position: absolute; left: 10px; bottom: 10px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); border-radius: 7px; padding: 2px 8px; }
.video.oynuyor iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Kodvira içinde site penceresi */
.kv-cerceve { position: fixed; inset: 0; z-index: 130; background: rgba(22,23,26,.6); display: grid; place-items: center; padding: 16px; }
.kv-cerceve .pen { width: min(1100px, 100%); height: min(88vh, 900px); background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.kv-cerceve .ust { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.kv-cerceve .adr { flex: 1; min-width: 0; font-size: 13.5px; color: var(--muted); background: var(--light); border-radius: 9px; padding: 7px 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv-cerceve .ust .btn { padding: 8px 14px; font-size: 14px; }
.kv-cerceve .x { width: 36px; height: 36px; border: 0; border-radius: 9px; background: var(--soft); font-size: 20px; cursor: pointer; }
.kv-cerceve iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.kv-cerceve .not { margin: 0; padding: 6px 12px; font-size: 12px; color: var(--faint); border-top: 1px solid var(--line); }
@media (max-width: 600px) { .kv-cerceve { padding: 0; } .kv-cerceve .pen { height: 100vh; border-radius: 0; } }

/* Rozetler */
.rozetler { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rozet { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--soft); color: var(--muted); }
.rozet::before { content: "★"; font-size: 11px; }
.rozet.ekip { background: #f05a1a; color: #16171a; }
.rozet.ekip::before { content: "✓"; }
.rozet.yazar { background: #e3e8f4; color: #1d3b8f; }
.rozet.uretken { background: #e2f8ee; color: #0f7a4f; }
.rozet.sevilen { background: #fde8ef; color: #c0244f; }
.rozet.sevilen::before { content: "♥"; }
.rozet.lider { background: #fff4dc; color: #9a6500; }
.rozet.kucuk { font-size: 10.5px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px; }
