/* =========================================================
   ANA SAYFA
   ---------------------------------------------------------
   home.php içindeki İKİ gömülü <style> bloğunun yerine geçer
   (satır 36 ve 74-134). İkincisi gövdedeydi ve akış çizilmeye
   başladıktan sonra geliyordu.

   YAPI

     .page-hero   → gönderi formu (öndeki kart)
     .page-tabs   → Akış / Keşfet (arkadaki kart, yapışkan)
     #feedContainer

   Form eskiden sekme barının ALTINDAYDI. Bu, formun sekmeye ait
   olduğunu ima ediyordu — oysa hangi sekmede olursan ol aynı form.
   Sekmeye ait olan akış. Değerlendirmeler sayfasındaki düzenin aynısı:
   sayfaya ait olan hero'da, sekmeye ait olan sekmenin altında.
   ========================================================= */

/* Geri dönüş sırasında sayfa gizlenir; konum oturunca açılır.
   Bu kural home.php'nin en başındaki tek satırlık <style> idi.
   Buradan geldiğinde sınıf eklenmeden ÖNCE tanımlı oluyor. */
html.home-restoring .home-center-surface { visibility: hidden !important; }


/* ---------- ORTA YÜZEY ----------
   Zemin eskiden hsl(220,20%,97%) idi; diğer sayfalar #f6f7f9
   kullanıyor. Aradaki fark tek birim ama iki sayfa yan yana
   açıldığında tek kaynak olması daha iyi. */
.home-center-surface {
    box-sizing: border-box;
    min-height: 100vh;
    margin-top: -1px;
    padding-top: 1px;
    background: #f6f7f9;
    border-left: 1px solid #e7ebf1;
    border-right: 1px solid #e7ebf1;
    box-shadow: none;
}

html.dark .home-center-surface {
    background: transparent;
    border-color: rgba(255, 255, 255, .10);
    box-shadow: none;
}


/* ---------- HERO: GÖNDERİ FORMU ----------
   Hero'da başlık satırı yok, doğrudan gövde geliyor; üst boşluk
   .page-hero-body'nin 14px'i yerine 18px. */
.home-center-surface .home-hero .page-hero-body { padding-top: 18px; }

/* UYARI — SİLİNEBİLİR BLOK
   includes/post_form.php'yi görmedim. Kendi kartını çiziyorsa
   hero kartının içinde ikinci bir kart görünür. Bu kural yalnızca
   sarmalayıcının DOĞRUDAN çocuğuna uygulanır ve o çocuğun kart
   görünümünü siler; iç yapısına dokunmaz. Form zaten düz bir
   <form> ise hiçbir görünür etkisi olmaz.
   Formun kendi kartını görmek istersen bu bloğu sil. */
.home-post-form-shell > .post-form-trigger {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}


/* ---------- SAYFALAR ----------
   İlk aşama yalnızca görsel kabuk. Veri/API ikinci adımda bağlanacak. */
.home-pages {
    margin: -2px 0 14px;
    padding: 0 2px 14px;
    border-bottom: 1px solid #edf0f4;
}

.home-pages-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 22px;
    margin-bottom: 8px;
}

.home-pages-head h2 {
    margin: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: -.015em;
}

.home-pages-track {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    overflow-x: auto;
    padding: 2px 5px 6px 1px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.home-pages-track::-webkit-scrollbar { display: none; }

.home-page-item {
    flex: 0 0 58px;
    width: 58px;
    min-width: 0;
    color: inherit;
    font: inherit;
    text-align: center;
    transition: opacity .18s ease;
}

.home-page-thumb-wrap {
    position: relative;
    width: 58px;
    height: 68px;
    overflow: visible;
}

.home-page-thumb-action {
    display: block;
    width: 58px;
    height: 68px;
    padding: 0;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: inherit;
    appearance: none;
    cursor: pointer;
}

.home-page-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 68px;
    overflow: hidden;
    border: 1px solid #d7dde5;
    border-radius: 13px;
    background: #eef1f5;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: transform .16s ease, opacity .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.home-page-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Kalın kutu yerine küçük, yüzen ekleme işareti. */
.home-page-add {
    position: absolute;
    right: -4px;
    bottom: -4px;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #1d9bf0;
    box-shadow: 0 1px 5px rgba(15, 23, 42, .18), 0 0 0 1px rgba(15, 23, 42, .05);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.home-page-add svg {
    display: block;
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.home-page-add:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 7px rgba(15, 23, 42, .20), 0 0 0 1px rgba(29, 155, 240, .10);
}
.home-page-add:focus-visible {
    outline: 2px solid rgba(29,155,240,.28);
    outline-offset: 2px;
}

.home-page-profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
    color: #6b7280;
    text-decoration: none;
}

.home-page-name {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: 10.5px;
    font-weight: 400;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-page-premium {
    display: block;
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    object-fit: contain;
}

.home-page-profile-link:hover .home-page-name {
    color: #374151;
}

/* Veri bağlanana kadar kullanılan nötr önizleme slotları. */
.home-page-item-preview .home-page-thumb {
    border-color: #e3e7ec;
    background: linear-gradient(145deg, #f5f7f9 0%, #eceff3 100%);
    box-shadow: none;
}

.home-page-preview-mark {
    width: 18px;
    height: 22px;
    border: 1px solid #d6dbe2;
    border-radius: 5px;
    background: rgba(255,255,255,.7);
}

html.dark .home-pages { border-bottom-color: rgba(255,255,255,.08); }
html.dark .home-pages-head h2 { color: #f3f4f6; }
html.dark .home-page-thumb {
    border-color: rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    box-shadow: none;
}
html.dark .home-page-item-preview .home-page-thumb {
    border-color: rgba(255,255,255,.08);
    background: rgba(255,255,255,.035);
}
html.dark .home-page-preview-mark {
    border-color: rgba(255,255,255,.10);
    background: rgba(255,255,255,.035);
}


/* ---------- AKIŞ ----------
   Kart genişliği profil sayfasıyla aynı: dış boşluk buradan 14px,
   kartın kendi margin'i 0. */
.home-center-surface #feedContainer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Yan boşluk --feed-x'ten geliyor (post_card.css :root, 10px).
       Aynı sayı dört yerde elle yazılıydı; tek kaldıraca bağlandı. */
    padding: 0 var(--feed-x, 10px) 24px;
}

.home-center-surface #feedContainer > article.post-card {
    margin: 0 !important;
}

/* Sekme barından sonraki ilk boşluk .page-tabs + * kuralından (24px)
   geliyor; #feedContainer'ın kendi üst boşluğu yok. */

.home-empty-state {
    padding: 72px 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06),
                0 1px 2px rgba(15, 23, 42, .04);
    text-align: center;
}
html.dark .home-empty-state {
    background: rgba(255, 255, 255, .045);   /* #161a22 yanlış siyahtı — sözleşme kart rengi (SIYAH_20261026) */
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35),
                inset 0 1px 0 rgba(255, 255, 255, .04);
}
.home-empty-icon  { margin: 0 auto 14px; width: 34px; height: 34px; color: #c2c8d0; }
html.dark .home-empty-icon { color: #4b5563; }
.home-empty-title { margin: 0 0 6px; color: #374151; font-size: 18px; font-weight: 700; }
html.dark .home-empty-title { color: #d1d5db; }
.home-empty-note  { margin: 0; color: #9ca3af; font-size: 14px; line-height: 1.5; }


/* ---------- SONSUZ KAYDIRMA YÜKLEYİCİSİ ---------- */
.home-scroll-loader {
    padding: 28px 0 40px;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}


/* =========================================================
   AKIŞ SEKMELERİ — Sana Özel eklentileri
   ---------------------------------------------------------
   İki yeni parça var, ikisi de #feedContainer'ın flex çocuğu:
   üst boşlukları oradaki gap:12px'ten geliyor, ayrıca margin
   VERİLMİYOR — verilirse gap'le toplanır ve arası açılır.

     .feed-suggest    Sana Özel'de araya giren kulüp öneri kartı
     .feed-tail-head  Akış tükendiğinde çıkan "Sana Özel'den" ayırıcı
   ========================================================= */


/* ---------- KULÜP ÖNERİSİ ----------
   Gönderi kartına BENZEMİYOR, benzememeli: kullanıcı neyin içerik
   neyin öneri olduğunu bir bakışta ayırt etsin. Onun için zemin
   düz beyaz değil, kenarlıklı ve gölgesiz. */
.feed-suggest {
    padding: 16px 18px 18px;
    border: 1px solid #e5e9ee;
    border-radius: 20px;
    background: #fbfcfd;
}
html.dark .feed-suggest {
    border-color: rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .035);
}

.feed-suggest-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.feed-suggest-title {
    margin: 0;
    color: #0f1419;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
}
html.dark .feed-suggest-title { color: #f1f3f7; }

.feed-suggest-all {
    flex: 0 0 auto;
    color: #1d9bf0;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}
.feed-suggest-all:hover { text-decoration: underline; }

/* Üç kart yan yana; dar ekranda yana kayar (alt alta dizilirse
   kart akışın içinde bir "sayfa" gibi uzuyor). */
.feed-suggest-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}
.feed-suggest-row::-webkit-scrollbar { display: none; }

.feed-suggest-card {
    display: flex;
    flex: 1 1 0;
    min-width: 128px;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e7eaee;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease;
}
.feed-suggest-card:hover { border-color: #c9d0d9; }
html.dark .feed-suggest-card {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
}
html.dark .feed-suggest-card:hover { border-color: rgba(255, 255, 255, .2); }

.feed-suggest-cover {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    object-fit: cover;
    background: #eef1f5;
}
.feed-suggest-cover-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b929d;
}
html.dark .feed-suggest-cover { background: rgba(255, 255, 255, .07); }



.feed-suggest-name {
    display: -webkit-box;
    overflow: hidden;
    color: #0f1419;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;

    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

html.dark .feed-suggest-name { color: #f1f3f7; }

.feed-suggest-meta {
    color: #9099a5;
    font-size: 11.5px;
    line-height: 1.2;
}
html.dark .feed-suggest-meta { color: #79838f; }



/* =========================================================
   FEED_LIVE_ACTIVITY_20261012
   ---------------------------------------------------------
   Masaüstü:
   Sağ sidebar'da zaten gösteriliyor, akışta tekrar ETMEZ.

   Mobil:
   Sağ sidebar olmadığı için yatay kaydırılabilir kompakt rail.
   ========================================================= */

.feed-live-activity {
    display: none;
}


/* =========================================================
   MOBİL ŞU AN INBOOK'TA
   ========================================================= */

@media (max-width: 640px) {

    .feed-live-activity {
        box-sizing: border-box;

        display: block;

        width: 100%;

        padding: 10px 0 9px;

        overflow: hidden;

        border-top: 1px solid #e7eaee;
        border-bottom: 1px solid #e7eaee;

        background: transparent;
    }


    .feed-live-head {
        display: flex;
        align-items: center;

        gap: 6px;

        padding: 0 12px 8px;
    }


    .feed-live-pulse {
        display: block;

        flex: 0 0 5px;

        width: 5px;
        height: 5px;

        border-radius: 50%;

        background: #1d9bf0;

        box-shadow:
            0 0 0 3px rgba(29, 155, 240, .08);
    }


    .feed-live-title {
        color: #7e8792;

        font-size: 10.5px;
        font-weight: 800;
        line-height: 1;

        letter-spacing: .075em;
        text-transform: uppercase;
    }


    /* Yatay rail */

    .feed-live-list {
        display: flex;

        gap: 8px;

        overflow-x: auto;
        overflow-y: hidden;

        padding: 0 12px 2px;

        scroll-snap-type: x proximity;
        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;
    }

    .feed-live-list::-webkit-scrollbar {
        display: none;
    }


    /* Tek aktivite */

    .feed-live-row {
        box-sizing: border-box;

        display: grid;

        grid-template-columns:
            32px
            minmax(0, 1fr)
            12px;

        align-items: center;

        gap: 8px;

        flex: 0 0 220px;

        width: 220px;
        min-width: 220px;
        min-height: 61px;

        padding: 9px 10px;

        scroll-snap-align: start;

        border: 1px solid #e9edf1;
        border-radius: 14px;

        background: #fafbfc;

        color: inherit;
        text-decoration: none;

        transition:
            border-color .14s ease,
            background .14s ease;
    }


    .feed-live-row + .feed-live-row {
        border-top: 1px solid #e9edf1;
    }


    .feed-live-row:active {
        background: #f5f7f9;
    }


    /* Görsel */

    .feed-live-media {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 32px;
        height: 32px;

        overflow: hidden;

        border-radius: 9px;

        background: #eef1f4;
        color: #7d8792;
    }


    .feed-live-media--author {
        border-radius: 50%;
    }


    .feed-live-media img {
        display: block;

        width: 100%;
        height: 100%;

        object-fit: cover;
    }


    .feed-live-media svg {
        display: block;

        width: 16px;
        height: 16px;
    }


    /* Metin */

    .feed-live-copy {
        display: block;

        min-width: 0;
    }


    /* Hikâye / Yazar yazısını kaldır.
       Mobil rail'de gereksiz görsel kalabalık yaratıyor. */

    .feed-live-label {
        display: none;
    }


    .feed-live-name {
        display: block;

        min-width: 0;

        overflow: hidden;

        color: #1b2128;

        font-size: 12.5px;
        font-weight: 750;
        line-height: 1.25;

        text-overflow: ellipsis;
        white-space: nowrap;
    }


    .feed-live-meta {
        display: block;

        margin-top: 3px;

        min-width: 0;

        overflow: hidden;

        color: #818b96;

        font-size: 10px;
        font-weight: 450;
        line-height: 1.25;

        text-overflow: ellipsis;
        white-space: nowrap;
    }


    .feed-live-arrow {
        display: block;

        width: 12px;
        height: 12px;

        color: #b4bbc4;
    }


    /* DARK */

    html.dark .feed-live-activity {
        border-top-color: rgba(255, 255, 255, .07);
        border-bottom-color: rgba(255, 255, 255, .07);
    }


    html.dark .feed-live-title {
        color: #77818d;
    }


    html.dark .feed-live-row {
        border-color: rgba(255, 255, 255, .07);

        background: rgba(255, 255, 255, .035);
    }


    html.dark .feed-live-row + .feed-live-row {
        border-top-color: rgba(255, 255, 255, .07);
    }


    html.dark .feed-live-row:active {
        background: rgba(255, 255, 255, .055);
    }


    html.dark .feed-live-media {
        background: rgba(255, 255, 255, .065);
        color: #929ba5;
    }


    html.dark .feed-live-name {
        color: #e6e9ed;
    }


    html.dark .feed-live-meta {
        color: #77818d;
    }


    html.dark .feed-live-arrow {
        color: #5f6872;
    }
}


/* ---------- "SANA ÖZEL'DEN" AYIRICI ----------
   Akış tükendiğinde çıkıyor. Sekme değişmiyor; bu çizgi kullanıcıya
   "buradan sonrası takip etmediklerin" diyor. Karıştırmak yerine
   ayırmak, akışa duyulan güveni korur. */
.feed-tail-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 4px 2px;
}

.feed-tail-line {
    flex: 1 1 auto;
    height: 1px;
    background: #e2e6eb;
}
html.dark .feed-tail-line { background: rgba(255, 255, 255, .1); }

.feed-tail-label {
    flex: 0 0 auto;
    color: #8b929d;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}
html.dark .feed-tail-label { color: #79838f; }


/* ---------- BOŞ AKIŞTAKİ ÇIKIŞ YOLU ----------
   Akış boşsa (kimseyi takip etmiyorsa) kullanıcıyı boş ekranda
   bırakmıyoruz. Sekmeyi kendiliğinden DEĞİŞTİRMİYORUZ — varsayılan
   Akış kalsın — sadece yol gösteriyoruz. */
.home-empty-cta {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 22px;
    border-radius: 9999px;
    background: #0f1419;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}
.home-empty-cta:hover { opacity: .86; }
html.dark .home-empty-cta { background: #f3f4f6; color: #111827; }


/* =========================================================
   MOBİL YOĞUNLUK  (≤640px)
   ---------------------------------------------------------
   MASAÜSTÜ ETKİLENMEZ.

   Bu dosya post_card.css ve mobile.css'ten SONRA yükleniyor
   (page_css en son). Onun için ana akışa özel ölçüler burada.
   ========================================================= */
@media (max-width: 640px) {

    /* --- AKIŞ KAPSAYICISI ---
       Yan boşluk 14px → 6px. Kart artık ekran kenarına yapışıyor
       (Tumblr mobil yaklaşımı). Alt boşluk sabit alt navigasyon
       için ayrıca body'de veriliyor (mobile.css). */
    .home-center-surface #feedContainer {
        gap: var(--m-card-gap, 8px);
        padding: 0 var(--m-gutter, 6px) 16px;
    }

    /* Kart yan çizgileri 6px kenarda gereksiz görsel gürültü
       yapıyordu; orta yüzeyin kendi çizgileri kalkıyor. */
    .home-center-surface {
        border-left: 0;
        border-right: 0;
        box-shadow: none;
    }

    /* --- KART İÇİ ---
       Buradaki değerler post_card.css'teki 640 bloğunu değil,
       bu dosyanın ÜSTÜNDEKİ ".home-center-surface .post-card"
       !important kurallarını ezmek için var (satır 191-219).
       Aynı özgüllük + aynı !important → sonra gelen kazanır. */
    .home-center-surface .post-card {
        padding: var(--m-card-pad-y, 10px) var(--m-card-pad-x, 12px) 8px !important;
        box-shadow: none !important;
    }

    .home-center-surface .post-card > .flex { gap: 10px !important; }

    .home-center-surface .post-card > .flex > .flex-1 > .flex.items-start {
        margin-bottom: 4px !important;
    }

    /* İçerik–etkileşim arası: komşu kardeş marjları çakıştığı için
       görünen boşluk = max(metnin alt marjı, actions'ın üst marjı). */
    .home-center-surface .post-card .quote-block-bg { margin-bottom: 8px !important; }
    .home-center-surface .post-card .post-actions   { margin-top: 14px !important; }
    .home-center-surface .post-card .post-main-text { margin-bottom: 4px !important; }
    .home-center-surface .post-card .quote-optional-text { margin-bottom: 8px !important; }



    /* --- KOMPOZİSYON KARTI ---
       BURAYA "display: none" YAZMA. Sebebi ciddi:

       includes/post_form.php'nin render_post_form() fonksiyonu İKİ şey
       basıyor — tetikleyici kart (.post-form-trigger) VE gönderi modalı
       (#newPostModal). home.php ikisini birden .home-hero'nun içine
       koyuyor. Hero'yu gizlersen modal da gizlenir: FAB'a bastığında
       openNewPostModal() çalışır, kaydırmayı kilitler, ama ekranda
       hiçbir şey görünmez — sayfa donmuş gibi olur.

       Onun için yalnızca tetikleyici kart gizleniyor; hero görünmez
       biçimde sıfır yüksekliğe iniyor, modal DOM'da ve görünür kalıyor. */
    .home-center-surface .home-hero .post-form-trigger { display: none !important; }

    .home-center-surface .home-hero {
        /* position: static ŞART, en kritik satır burası.
           layout.php'de .page-hero "position: relative; z-index: 20"
           taşıyor ve bu bir YIĞIN BAĞLAMI kuruyor. #newPostModal o
           bağlamın içinde olduğu için z-index'i ne olursa olsun dışarıya
           "z-20" olarak görünüyordu: üst bar (45), alt navigasyon (40)
           ve FAB (44) modalın ÜSTÜNE biniyordu — modal açılıyor ama
           altında kalıyordu. static yapınca bağlam kalkıyor, modal
           kök seviyede yarışıyor. */
        position: static;
        /* margin-bottom SIFIR DEĞİL.
           Kabuk tasarımında .page-hero, sekme barının üstüne
           --shell-overlap kadar biner ve .page-tabs'ın aynı kadar üst
           dolgusu bunu karşılar. Burada sıfırlayınca anasayfada sekme
           barının üstünde diğer sayfalarda OLMAYAN 12px'lik bir şerit
           kalıyordu; aydınlık modda üst barın çizgisiyle birleşip kalın
           bir bant gibi görünüyordu. */
        margin-bottom: calc(var(--shell-overlap, 12px) * -1);
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    .home-center-surface .home-hero .page-hero-body { padding: 0 !important; }

    /* --- SAYFALAR --- */
    .home-center-surface .home-pages {
        margin: 0;
        padding: 10px var(--m-gutter, 10px) 11px;
    }

    .home-center-surface .home-pages-head {
        margin-bottom: 7px;
    }

    .home-center-surface .home-pages-track {
        gap: 9px;
    }

    .home-center-surface .home-page-item {
        flex-basis: 54px;
        width: 54px;
    }

    /* Bu blok dosyanin ustunde, asagidaki !important kurallarindan
       once geliyor; olculeri oradan aliyor. Yine de tutarli olsun
       diye ayni degerlere cekildi — ileride biri !important'i
       kaldirirsa buradan sapma cikmasin. */
    .home-center-surface .home-page-thumb-wrap,
    .home-center-surface .home-page-thumb-action,
    .home-center-surface .home-page-thumb {
        width: 52px;
        height: 74px;
    }

    .home-center-surface .home-page-thumb {
        border-radius: 5px;
    }

    .home-center-surface .home-page-profile-link {
        margin-top: 5px;
    }

    .home-center-surface .home-page-name {
        font-size: 10px;
    }

    /* --- BOŞ DURUM --- */
    .home-empty-state { padding: 48px 20px; border-radius: 18px; }

    /* --- KULÜP ÖNERİ KARTI --- */
    .feed-suggest { padding: 12px 12px 14px; border-radius: 16px; }
    .feed-suggest-head { margin-bottom: 10px; }
    .feed-suggest-card { padding: 10px; border-radius: 12px; min-width: 118px; }
    .feed-tail-head { padding: 8px 2px 0; }
}

/* =========================================================
   SADECE ANA SAYFA ÜST KABUK — GÖLGEYİ KALDIR
   Şekil, radius ve mevcut çizgiler DEĞİŞMEZ.
   Yeni border/çerçeve EKLENMEZ.
   ========================================================= */

/* Yeşille işaretlenen iki derinlik gölgesi */
/* Üst ayırıcı çizginin altında çok hafif derinlik:
   tab yüzeyinin rengini değiştirmez, sadece çizgiyi belli eder. */
.home-center-surface .home-hero {
    box-shadow: 0 3px 6px -5px rgba(15, 23, 42, .32) !important;
}

/* Tabın kendi altında gölge yok. */
.home-center-surface .home-tabs {
    box-shadow: none !important;
}

/* Akış / Sana Özel / Alıntılar yüzeyi üst kart gibi saf beyaz */
html:not(.dark) .home-center-surface .home-tabs {
    background: #ffffff !important;
}

/* Koyu temada yalnız gölge kalkar; mevcut koyu yüzey rengi korunur. */
html.dark .home-center-surface .home-hero {
    box-shadow: 0 3px 6px -5px rgba(0, 0, 0, .70) !important;
}
html.dark .home-center-surface .home-tabs {
    box-shadow: none !important;
}


/* =========================================================
   SAYFALAR SONRASI HIZLI GÖNDERİ — HİZALAMA
   Sayfalar ile aynı sol aksa gelir; tetikleyici PP biraz büyür.
   Yalnız ana sayfadaki hızlı oluşturma alanını etkiler.
   ========================================================= */
.home-center-surface .home-post-form-shell {
    width: 100%;
}

.home-center-surface .home-post-form-shell > .post-card.post-form-trigger {
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 2px 14px !important;
    box-sizing: border-box !important;
}

/* Sayfalar satırının başladığı sol aksla aynı hiza. */
.home-center-surface .home-post-form-shell .post-form-trigger > .flex:first-child {
    width: 100%;
    margin: 0 !important;
}

/* Hızlı gönderi alanındaki profil fotoğrafı: 40px -> 48px. */
.home-center-surface .home-post-form-shell .post-form-trigger > .flex:first-child > img {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
}

/* Butonlar, büyüyen PP + 12px gap sonrasında metin alanıyla aynı hizada kalır. */
.home-center-surface .home-post-form-shell .post-form-trigger > .flex:nth-child(2) {
    padding-left: 60px !important;
}

/* =========================================================
   SAYFALAR — CANLI DURUMLAR + YENİ SAYFA MODALI
   ========================================================= */
.home-page-item.is-unseen .home-page-thumb {
    border: 2px solid #1d9bf0;
    box-shadow: 0 0 0 2px rgba(29, 155, 240, .08), 0 4px 12px rgba(29, 155, 240, .14);
}

.home-page-item.is-viewed:not(.home-page-item-own) {
    opacity: .56;
}

.home-page-item.is-viewed:not(.home-page-item-own):hover {
    opacity: .78;
}

.home-page-item:not(.home-page-item-own):hover .home-page-thumb {
    transform: translateY(-1px);
}

.home-page-count {
    position: absolute;
    right: 3px;
    bottom: 3px;
    z-index: 4;
    display: grid;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, .84);
    color: #fff;
    box-shadow: 0 1px 5px rgba(15, 23, 42, .20);
    backdrop-filter: blur(5px);
    font-size: 9px;
    font-weight: 650;
    line-height: 1;
}

html.dark .home-page-item.is-unseen .home-page-thumb {
    border-color: #1d9bf0;
    box-shadow: 0 0 0 2px rgba(29, 155, 240, .10), 0 4px 13px rgba(29, 155, 240, .16);
}
html.dark .home-page-item.is-viewed:not(.home-page-item-own) { opacity: .50; }
html.dark .home-page-add {
    background: #f5f7fa;
    color: #168bd2;
    box-shadow: 0 1px 5px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08);
}
html.dark .home-page-profile-link { color: #9aa3af; }
html.dark .home-page-profile-link:hover .home-page-name { color: #e5e7eb; }
html.dark .home-page-count { background: rgba(245,247,250,.88); color: #111827; }

html.page-modal-open,
html.page-modal-open body { overflow: hidden !important; }

.home-page-create-modal[hidden] { display: none !important; }
.home-page-create-modal {
    position: fixed;
    inset: 0;
    z-index: 240;
    display: grid;
    place-items: center;
    padding: 20px;
}

.home-page-create-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(15, 23, 42, .46);
    backdrop-filter: blur(4px);
    cursor: default;
}

.home-page-create-box {
    position: relative;
    z-index: 1;
    width: min(430px, 100%);
    overflow: hidden;
    border: 1px solid #e6e9ee;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}

.home-page-create-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #eef1f4;
}

.home-page-create-head h3 {
    margin: 0;
    color: #111827;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -.015em;
}

.home-page-create-head p {
    margin: 3px 0 0;
    color: #8a94a3;
    font-size: 12px;
}

.home-page-create-close {
    padding: 0;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 27px;
    font-weight: 300;
    line-height: .8;
    cursor: pointer;
}
.home-page-create-close:hover { color: #111827; }

#socialPageCreateForm { padding: 16px 20px 18px; }

.home-page-upload-picker {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 430px;
    overflow: hidden;
    place-items: center;
    border: 1px dashed #cfd6df;
    border-radius: 18px;
    background: #f7f8fa;
    cursor: pointer;
}

.home-page-upload-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.home-page-upload-empty {
    display: flex;
    max-width: 250px;
    align-items: center;
    flex-direction: column;
    color: #7b8491;
    text-align: center;
}
.home-page-upload-empty svg { width: 29px; height: 29px; margin-bottom: 10px; }
.home-page-upload-empty strong { color: #202631; font-size: 14px; font-weight: 650; }
.home-page-upload-empty small { margin-top: 5px; font-size: 11px; line-height: 1.4; }

.home-page-upload-preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0f1115;
}
.home-page-upload-preview[hidden] { display: none !important; }

.home-page-caption-wrap {
    position: relative;
    display: block;
    margin-top: 14px;
}
.home-page-caption-wrap > span:first-child {
    display: block;
    margin-bottom: 6px;
    color: #343b46;
    font-size: 12px;
    font-weight: 650;
}
.home-page-caption-wrap > span:first-child small {
    color: #9aa2ad;
    font-weight: 500;
}
.home-page-caption-wrap textarea {
    display: block;
    width: 100%;
    min-height: 78px;
    resize: vertical;
    padding: 11px 12px 24px;
    border: 1px solid #e0e5eb;
    border-radius: 14px;
    outline: 0;
    background: #fafbfc;
    color: #111827;
    font: inherit;
    font-size: 13px;
    line-height: 1.45;
}
.home-page-caption-wrap textarea:focus { border-color: #aeb8c5; }
.home-page-caption-count {
    position: absolute;
    right: 10px;
    bottom: 8px;
    color: #a0a8b3;
    font-size: 10px;
}
.home-page-caption-count b { font-weight: 500; }

.home-page-create-status {
    min-height: 18px;
    padding-top: 8px;
    color: #77808d;
    font-size: 11.5px;
}
.home-page-create-status.is-error { color: #b42318; }
.home-page-create-status.is-success { color: #067647; }

.home-page-create-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding-top: 4px;
}
.home-page-create-cancel,
.home-page-create-submit {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 650;
    cursor: pointer;
}
.home-page-create-cancel {
    border: 1px solid #dce1e7;
    background: #fff;
    color: #4b5563;
}
.home-page-create-submit {
    border: 1px solid #111827;
    background: #111827;
    color: #fff;
}
.home-page-create-submit:disabled { opacity: .35; cursor: default; }

html.dark .home-page-create-backdrop { background: rgba(0,0,0,.64); }
html.dark .home-page-create-box {
    border-color: rgba(255,255,255,.09);
    background: #15171b;
    box-shadow: 0 24px 70px rgba(0,0,0,.45);
}
html.dark .home-page-create-head { border-bottom-color: rgba(255,255,255,.08); }
html.dark .home-page-create-head h3 { color: #f3f4f6; }
html.dark .home-page-create-head p,
html.dark .home-page-create-close { color: #8993a0; }
html.dark .home-page-create-close:hover { color: #f3f4f6; }
html.dark .home-page-upload-picker {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.035);
}
html.dark .home-page-upload-empty { color: #7f8996; }
html.dark .home-page-upload-empty strong { color: #e5e7eb; }
html.dark .home-page-caption-wrap > span:first-child { color: #d7dce3; }
html.dark .home-page-caption-wrap textarea {
    border-color: rgba(255,255,255,.09);
    background: rgba(255,255,255,.035);
    color: #f3f4f6;
}
html.dark .home-page-create-cancel {
    border-color: rgba(255,255,255,.10);
    background: transparent;
    color: #b7bec8;
}
html.dark .home-page-create-submit {
    border-color: #f3f4f6;
    background: #f3f4f6;
    color: #111827;
}

@media (max-width: 640px) {
    .home-page-create-modal { padding: 10px; align-items: end; }
    .home-page-create-box { width: 100%; border-radius: 20px 20px 14px 14px; }
    .home-page-create-head { padding: 16px 16px 13px; }
    #socialPageCreateForm { padding: 14px 16px 16px; }
    .home-page-upload-picker { max-height: min(54vh, 390px); }
}


/* =========================================================
   SAYFALAR — TAM EKRAN GÖRÜNTÜLEYİCİ
   ========================================================= */
html.page-viewer-open,
html.page-viewer-open body { overflow: hidden !important; }

.home-page-viewer[hidden] { display: none !important; }
.home-page-viewer {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: grid;
    place-items: center;
    padding: 18px;
}

.home-page-viewer-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(7, 9, 13, .86);
    backdrop-filter: blur(10px);
}

.home-page-viewer-shell {
    position: relative;
    z-index: 1;
    width: min(430px, calc(100vw - 36px));
    height: min(760px, calc(100dvh - 36px));
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 22px;
    background: #0b0d12;
    box-shadow: 0 28px 90px rgba(0,0,0,.42);
}

.home-page-viewer-progress {
    position: absolute;
    z-index: 5;
    top: 10px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
}

.home-page-viewer-progress-bar {
    position: relative;
    flex: 1 1 0;
    height: 2px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.28);
}

.home-page-viewer-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #fff;
}
.home-page-viewer-progress-fill.is-complete { width: 100%; }
.home-page-viewer-progress-fill.is-current {
    animation: homePageProgress var(--page-view-duration, 6000ms) linear forwards;
}
@keyframes homePageProgress {
    from { width: 0; }
    to { width: 100%; }
}

.home-page-viewer-head {
    position: absolute;
    z-index: 6;
    top: 22px;
    left: 14px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
}

.home-page-viewer-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 999px;
    object-fit: cover;
    background: #20242d;
}

.home-page-viewer-identity {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 7px;
}
.home-page-viewer-identity strong {
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-page-viewer-identity span {
    flex: 0 0 auto;
    color: rgba(255,255,255,.66);
    font-size: 11px;
}

.home-page-viewer-head-actions {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.home-page-viewer-menu-wrap {
    position: relative;
}

.home-page-viewer-more,
.home-page-viewer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.home-page-viewer-more {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 999px;
}

.home-page-viewer-more[hidden] {
    display: none !important;
}

.home-page-viewer-more:hover {
    background: rgba(255,255,255,.10);
}

.home-page-viewer-more svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    pointer-events: none;
}

.home-page-viewer-close {
    width: 30px;
    height: 30px;
    padding: 0 2px;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}

.home-page-viewer-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 5px);
    right: 0;
    min-width: 154px;
    padding: 5px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 13px;
    background: rgba(18,21,27,.96);
    box-shadow: 0 14px 34px rgba(0,0,0,.38);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.home-page-viewer-menu[hidden] {
    display: none !important;
}

.home-page-viewer-menu-delete {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #ff7168;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.home-page-viewer-menu-delete:hover {
    background: rgba(255,255,255,.08);
}

.home-page-viewer-menu-delete svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-page-delete-confirm {
    position: absolute;
    z-index: 40;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5,7,10,.56);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.home-page-delete-confirm[hidden] {
    display: none !important;
}

.home-page-delete-confirm-card {
    width: min(330px, 100%);
    padding: 20px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    background: #171a20;
    color: #fff;
    box-shadow: 0 24px 70px rgba(0,0,0,.45);
}

.home-page-delete-confirm-card h3 {
    margin: 0 0 7px;
    font-size: 17px;
    font-weight: 750;
}

.home-page-delete-confirm-card p {
    margin: 0;
    color: rgba(255,255,255,.68);
    font-size: 12.5px;
    line-height: 1.5;
}

.home-page-delete-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.home-page-delete-confirm-actions button {
    min-height: 37px;
    padding: 8px 16px;
    border-radius: 999px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.home-page-delete-cancel {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.07);
    color: #f3f4f6;
}

.home-page-delete-submit {
    border: 1px solid #d92d20;
    background: #d92d20;
    color: #fff;
}

.home-page-delete-submit:disabled {
    opacity: .55;
    cursor: default;
}

.home-page-delete-status {
    display: block;
    min-height: 16px;
    margin-top: 8px;
    color: rgba(255,255,255,.62);
    font-size: 11.5px;
    text-align: right;
}

.home-page-delete-status.is-error {
    color: #ff8a82;
}

.home-page-viewer-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0b0d12;
}

.home-page-viewer-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0b0d12;
}

.home-page-viewer-image[hidden] { display: none !important; }

.home-page-viewer-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: rgba(255,255,255,.72);
    font-size: 12.5px;
    text-align: center;
}

.home-page-viewer-caption {
    position: absolute;
    z-index: 5;
    left: 18px;
    right: 18px;
    bottom: 22px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(10,12,16,.54);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    backdrop-filter: blur(8px);
}
.home-page-viewer-caption[hidden] { display: none !important; }

.home-page-viewer-nav {
    position: absolute;
    z-index: 4;
    top: 70px;
    bottom: 0;
    width: 42%;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.home-page-viewer-nav.is-prev { left: 0; }
.home-page-viewer-nav.is-next { right: 0; }
.home-page-viewer-nav:disabled { cursor: default; }

@media (max-width: 640px) {
    .home-page-viewer {
        padding: 0;
        background: #0b0d12;
    }

    .home-page-viewer-backdrop { display: none; }

    .home-page-viewer-shell {
        width: 100vw;
        height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

/* =========================================================
   SAYFALAR — YAZI ÖZELLEŞTİRME + VIEWER DÜZELTMELERİ
   ========================================================= */

/* Görsel yüklendiğinde "Yükleniyor…" gerçekten kaybolsun. */
.home-page-viewer-loading[hidden] { display: none !important; }

/* Yeni Sayfa penceresi ek seçeneklerle uzadığında ekrandan taşmasın. */
.home-page-create-box {
    max-height: calc(100dvh - 40px);
    overflow-x: hidden;
    overflow-y: auto;
}

/* Oluşturma önizlemesindeki yazı, gerçek viewer ile aynı mantıkta. */
.home-page-upload-caption-preview {
    position: absolute;
    z-index: 3;
    left: 16px;
    right: 16px;
    display: block;
    max-width: calc(100% - 32px);
    margin: 0 auto;
    padding: 8px 10px;
    border-radius: 11px;
    background: rgba(10, 12, 16, .48);
    color: #fff;
    line-height: 1.35;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .42);
    backdrop-filter: blur(7px);
    pointer-events: none;
}
.home-page-upload-caption-preview[hidden] { display: none !important; }
.home-page-upload-caption-preview.is-size-small  { font-size: 12px; }
.home-page-upload-caption-preview.is-size-medium { font-size: 16px; }
.home-page-upload-caption-preview.is-size-large  { font-size: 22px; font-weight: 650; line-height: 1.22; }
.home-page-upload-caption-preview.is-pos-top    { top: 16px; bottom: auto; transform: none; }
.home-page-upload-caption-preview.is-pos-center { top: 50%; bottom: auto; transform: translateY(-50%); }
.home-page-upload-caption-preview.is-pos-bottom { top: auto; bottom: 16px; transform: none; }
.home-page-upload-caption-preview.is-align-left   { text-align: left; }
.home-page-upload-caption-preview.is-align-center { text-align: center; }
.home-page-upload-caption-preview.is-align-right  { text-align: right; }

.home-page-style-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 13px;
}

.home-page-style-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.home-page-style-group legend {
    margin: 0 0 6px;
    padding: 0;
    color: #596271;
    font-size: 11px;
    font-weight: 650;
}

.home-page-style-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    padding: 3px;
    border: 1px solid #e1e6ec;
    border-radius: 11px;
    background: #f7f8fa;
}

.home-page-style-options label {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.home-page-style-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.home-page-style-options span {
    display: flex;
    min-height: 27px;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 8px;
    color: #7b8491;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .14s ease, color .14s ease, box-shadow .14s ease;
}

.home-page-style-options input:checked + span {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .10);
}

html.dark .home-page-style-group legend { color: #9aa3af; }
html.dark .home-page-style-options {
    border-color: rgba(255,255,255,.09);
    background: rgba(255,255,255,.035);
}
html.dark .home-page-style-options span { color: #8993a0; }
html.dark .home-page-style-options input:checked + span {
    background: rgba(255,255,255,.10);
    color: #f3f4f6;
    box-shadow: none;
}

/* Viewer kullanıcı adı: tek satır, kontrollü genişlik + premium rozeti. */
.home-page-viewer-identity {
    flex: 1 1 auto;
    overflow: hidden;
    align-items: center;
}

.home-page-viewer-identity strong {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(205px, 46vw);
}

.home-page-viewer-premium {
    display: block;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    object-fit: contain;
}
.home-page-viewer-premium[hidden] { display: none !important; }

/* Sayfa yazısı artık fotoğrafın üstünde, seçilen boyut/konum/hizada. */
.home-page-viewer-caption {
    top: auto;
    bottom: auto;
    max-width: calc(100% - 36px);
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    text-shadow: 0 1px 4px rgba(0,0,0,.42);
}
.home-page-viewer-caption.is-size-small  { font-size: 13px; }
.home-page-viewer-caption.is-size-medium { font-size: 18px; line-height: 1.35; }
.home-page-viewer-caption.is-size-large  { font-size: 27px; font-weight: 680; line-height: 1.18; }
.home-page-viewer-caption.is-pos-top {
    top: 82px;
    bottom: auto;
    transform: none;
}
.home-page-viewer-caption.is-pos-center {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}
.home-page-viewer-caption.is-pos-bottom {
    top: auto;
    bottom: 24px;
    transform: none;
}
.home-page-viewer-caption.is-align-left   { text-align: left; }
.home-page-viewer-caption.is-align-center { text-align: center; }
.home-page-viewer-caption.is-align-right  { text-align: right; }

@media (max-width: 640px) {
    .home-page-create-box { max-height: calc(100dvh - 10px); }
    .home-page-style-controls {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .home-page-style-group {
        display: grid;
        grid-template-columns: 62px 1fr;
        align-items: center;
        gap: 8px;
    }
    .home-page-style-group legend { margin: 0; }
    .home-page-viewer-identity strong { max-width: 52vw; }
    .home-page-viewer-caption.is-size-large { font-size: 25px; }
}


/* =========================================================
   SAYFALAR — DOKUNMATİK EDİTÖR + UZUN BASMA DAVRANIŞI
   ========================================================= */
.home-page-create-box {
    width: min(430px, calc(100vw - 24px));
    height: min(760px, calc(100dvh - 24px));
    max-height: none;
    overflow: hidden;
    border-color: rgba(255,255,255,.10);
    background: #0b0d12;
    box-shadow: 0 28px 90px rgba(0,0,0,.38);
}
.home-page-create-head {
    position: absolute;
    z-index: 12;
    top: 0;
    left: 0;
    right: 0;
    align-items: center;
    padding: 18px 16px 30px;
    border: 0;
    background: linear-gradient(to bottom, rgba(3,5,9,.86), rgba(3,5,9,.48) 62%, transparent);
    pointer-events: none;
}
.home-page-create-head > * { pointer-events: auto; }
.home-page-create-head h3 { color: #fff; font-size: 16px; }
.home-page-create-head p { color: rgba(255,255,255,.62); font-size: 11px; }
.home-page-create-close { color: #fff; }
.home-page-create-close:hover { color: #fff; transform: scale(1.06); }
#socialPageCreateForm { position: absolute; inset: 0; padding: 0; }
.home-page-media-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.home-page-editor-canvas {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #0b0d12;
    user-select: none;
    -webkit-user-select: none;
}
.home-page-editor-canvas .home-page-upload-empty[hidden] { display: none !important; }
.home-page-editor-canvas .home-page-upload-empty {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    max-width: none;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle at 50% 35%, #20252e 0, #11151b 45%, #0b0d12 100%);
    color: rgba(255,255,255,.62);
    text-align: center;
    cursor: pointer;
}
.home-page-editor-canvas .home-page-upload-empty strong { color: #fff; font-size: 15px; }
.home-page-editor-canvas .home-page-upload-empty small { color: rgba(255,255,255,.52); }
.home-page-editor-canvas .home-page-upload-empty svg { color: rgba(255,255,255,.84); }
.home-page-upload-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0b0d12;
    pointer-events: none;
    -webkit-user-drag: none;
}
.home-page-media-change {
    position: absolute;
    z-index: 9;
    top: 72px;
    right: 14px;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(9,11,15,.48);
    color: #fff;
    font-size: 11px;
    font-weight: 650;
    backdrop-filter: blur(10px);
    cursor: pointer;
}
.home-page-media-change[hidden] { display: none !important; }
.home-page-upload-caption-preview {
    position: absolute;
    z-index: 8;
    left: 50%;
    top: 72%;
    right: auto;
    bottom: auto;
    display: inline-block;
    width: max-content;
    max-width: 84%;
    margin: 0;
    padding: 7px 10px;
    border-radius: 11px;
    transform: translate(-50%, -50%);
    background: rgba(10,12,16,.50);
    color: #fff;
    line-height: 1.28;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    text-shadow: 0 1px 4px rgba(0,0,0,.48);
    backdrop-filter: blur(8px);
    cursor: grab;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 3px 18px rgba(0,0,0,.16);
}
.home-page-upload-caption-preview.is-dragging {
    cursor: grabbing;
    outline: 1px solid rgba(255,255,255,.55);
    box-shadow: 0 5px 24px rgba(0,0,0,.30);
}
.home-page-upload-caption-preview[hidden] { display: none !important; }
.home-page-editor-panel {
    position: absolute;
    z-index: 10;
    left: 14px;
    right: 14px;
    bottom: 66px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 17px;
    background: rgba(8,10,14,.68);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 36px rgba(0,0,0,.22);
}
.home-page-editor-panel[hidden] { display: none !important; }
.home-page-caption-composer { position: relative; }
.home-page-caption-composer textarea {
    display: block;
    width: 100%;
    min-height: 42px;
    max-height: 92px;
    resize: none;
    overflow-y: auto;
    padding: 11px 56px 10px 12px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 13px;
    outline: 0;
    background: rgba(255,255,255,.08);
    color: #fff;
    font: inherit;
    font-size: 13px;
    line-height: 1.4;
}
.home-page-caption-composer textarea::placeholder { color: rgba(255,255,255,.47); }
.home-page-caption-composer textarea:focus { border-color: rgba(255,255,255,.24); }
.home-page-caption-composer .home-page-caption-count { right: 11px; bottom: 10px; color: rgba(255,255,255,.48); }
.home-page-editor-toolbar { display: flex; min-height: 34px; align-items: center; gap: 9px; margin-top: 8px; }
.home-page-size-control {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    font-weight: 700;
}
.home-page-size-control input[type="range"] { min-width: 70px; flex: 1 1 auto; accent-color: #fff; }
.home-page-size-control output { width: 20px; color: rgba(255,255,255,.60); font-size: 10px; font-weight: 600; text-align: right; }
.home-page-align-control {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    color: #fff;
    cursor: pointer;
}
.home-page-align-lines { display: flex; width: 15px; flex-direction: column; gap: 2px; }
.home-page-align-lines i { display: block; width: 100%; height: 1.5px; border-radius: 99px; background: currentColor; }
.home-page-align-lines i:nth-child(2) { width: 70%; }
.home-page-align-control[data-align="left"] .home-page-align-lines { align-items: flex-start; }
.home-page-align-control[data-align="center"] .home-page-align-lines { align-items: center; }
.home-page-align-control[data-align="right"] .home-page-align-lines { align-items: flex-end; }
.home-page-drag-hint { flex: 0 0 auto; color: rgba(255,255,255,.48); font-size: 10.5px; white-space: nowrap; }
.home-page-create-status {
    position: absolute;
    z-index: 11;
    left: 16px;
    right: 16px;
    bottom: 54px;
    min-height: 0;
    padding: 0;
    color: rgba(255,255,255,.72);
    text-align: center;
    pointer-events: none;
}
.home-page-create-status.is-error { color: #ffb4ab; }
.home-page-create-status.is-success { color: #9ee7b7; }
.home-page-create-actions {
    position: absolute;
    z-index: 11;
    left: 14px;
    right: 14px;
    bottom: 14px;
    justify-content: flex-end;
    gap: 8px;
    padding: 0;
}
.home-page-create-cancel,
.home-page-create-submit { min-height: 36px; padding: 0 15px; border-radius: 999px; backdrop-filter: blur(10px); }
.home-page-create-cancel { border-color: rgba(255,255,255,.16); background: rgba(8,10,14,.44); color: rgba(255,255,255,.84); }
.home-page-create-submit { border-color: #fff; background: #fff; color: #0b0d12; }
html.dark .home-page-create-box { background: #0b0d12; }

.home-page-viewer-identity { flex: 1 1 auto; min-width: 0; gap: 0; overflow: hidden; align-items: center; }
.home-page-viewer-identity strong { flex: 0 1 auto; min-width: 0; max-width: 138px; margin: 0; }
.home-page-viewer-premium { width: 11px; height: 11px; flex: 0 0 11px; margin-left: 2px; object-fit: contain; }
.home-page-viewer-identity > span { margin-left: 7px; }
.home-page-viewer-caption {
    left: 50%;
    top: 72%;
    right: auto;
    bottom: auto;
    width: max-content;
    max-width: 84%;
    margin: 0;
    padding: 8px 11px;
    transform: translate(-50%, -50%);
    border-radius: 11px;
    background: rgba(10,12,16,.50);
    color: #fff;
    line-height: 1.28;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    text-shadow: 0 1px 4px rgba(0,0,0,.48);
    backdrop-filter: blur(8px);
    pointer-events: none;
}
.home-page-viewer-progress-fill.is-current.is-paused { animation-play-state: paused; }
.home-page-viewer-stage { user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.home-page-viewer-image { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }

@media (max-width: 640px) {
    .home-page-create-modal { padding: 0; background: #0b0d12; }
    .home-page-create-backdrop { display: none; }
    .home-page-create-box { width: 100vw; height: 100dvh; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
    .home-page-create-head { padding: calc(16px + env(safe-area-inset-top)) 14px 30px; }
    .home-page-media-change { top: calc(66px + env(safe-area-inset-top)); right: 12px; }
    .home-page-viewer-progress { top: calc(10px + env(safe-area-inset-top)); }
    .home-page-viewer-head { top: calc(22px + env(safe-area-inset-top)); }
    .home-page-viewer-nav { top: calc(70px + env(safe-area-inset-top)); }
    .home-page-editor-panel { left: 10px; right: 10px; bottom: 62px; padding: 9px; border-radius: 16px; }
    .home-page-drag-hint { display: none; }
    .home-page-create-actions { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); }
    .home-page-create-cancel { display: none; }
    .home-page-create-submit { min-width: 78px; }
    .home-page-create-status { bottom: 50px; }
    .home-page-viewer-identity strong { max-width: 42vw; }
}

.home-page-viewer-nav[aria-disabled="true"] { cursor: default; }


/* =========================================================
   SAYFALAR — DOKUNMATİK HİKÂYE EDİTÖRÜ
   ========================================================= */
.home-page-editor-canvas {
    touch-action: none;
    background: #06080c;
}
.home-page-upload-preview {
    object-fit: contain;
    transform-origin: 50% 50%;
    will-change: transform;
    transition: none;
}
.home-page-upload-caption-preview {
    z-index: 12;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    width: max-content;
    max-width: 82%;
    min-width: 1.4em;
    margin: 0;
    padding: 2px 3px;
    border: 0;
    border-radius: 0;
    outline: 0;
    transform: translate(-50%, -50%);
    background: transparent !important;
    color: #fff;
    line-height: 1.16;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 5px rgba(0,0,0,.62), 0 0 1px rgba(0,0,0,.6);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    cursor: move;
    touch-action: none;
    user-select: text;
    -webkit-user-select: text;
    caret-color: currentColor;
}
.home-page-upload-caption-preview:focus {
    outline: 1px dashed rgba(255,255,255,.30);
    outline-offset: 5px;
}
.home-page-upload-caption-preview:empty::before {
    content: attr(data-placeholder);
    color: rgba(255,255,255,.68);
    font-size: .72em;
    white-space: nowrap;
    pointer-events: none;
}
.home-page-upload-caption-preview[hidden] { display: none !important; }

.home-page-text-size-rail {
    position: absolute;
    z-index: 15;
    left: 10px;
    top: 50%;
    display: flex;
    width: 30px;
    height: 190px;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    touch-action: none;
}
.home-page-text-size-rail[hidden] { display: none !important; }
.home-page-text-size-rail > span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.88);
    font-size: 15px;
    font-weight: 750;
    text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
.home-page-text-size-rail > span:first-child { top: 0; }
.home-page-text-size-rail > span.is-small { bottom: 0; font-size: 10px; }
.home-page-text-size-rail input[type="range"] {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 140px;
    height: 24px;
    margin: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
    accent-color: #fff;
    cursor: ns-resize;
}

.home-page-style-toolbar {
    position: absolute;
    z-index: 16;
    top: 92px;
    left: 50%;
    display: flex;
    max-width: calc(100% - 86px);
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}
.home-page-style-toolbar[hidden] { display: none !important; }
.home-page-font-picker,
.home-page-color-picker {
    display: flex;
    max-width: 100%;
    align-items: center;
    gap: 7px;
    padding: 5px 6px;
    border-radius: 999px;
    background: rgba(5,7,10,.42);
    box-shadow: 0 5px 20px rgba(0,0,0,.14);
    backdrop-filter: blur(8px);
    overflow-x: auto;
    scrollbar-width: none;
}
.home-page-font-picker::-webkit-scrollbar,
.home-page-color-picker::-webkit-scrollbar { display: none; }
.home-page-font-picker button {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255,255,255,.74);
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
}
.home-page-font-picker button[data-page-font="serif"] { font-family: Georgia, "Times New Roman", serif; }
.home-page-font-picker button[data-page-font="literary"] { font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; }
.home-page-font-picker button.is-active { background: #fff; color: #111318; }
.home-page-color-picker button {
    position: relative;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 2px solid rgba(255,255,255,.62);
    border-radius: 50%;
    background: var(--page-color);
    box-shadow: 0 1px 5px rgba(0,0,0,.24);
    cursor: pointer;
}
.home-page-color-picker button.is-active::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 2px solid #fff;
    border-radius: inherit;
}

.home-page-editor-hint {
    position: absolute;
    z-index: 9;
    left: 50%;
    bottom: 82px;
    transform: translateX(-50%);
    max-width: 80%;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(7,9,12,.40);
    color: rgba(255,255,255,.72);
    font-size: 10.5px;
    white-space: nowrap;
    pointer-events: none;
    backdrop-filter: blur(6px);
}
.home-page-editor-hint[hidden] { display: none !important; }

/* Eski form paneli artık editörde kullanılmıyor. */
.home-page-editor-panel { display: none !important; }

/* Viewer: yazının altında kutu/buğu yok; editördeki görünümün aynısı. */
.home-page-viewer-image {
    transform-origin: 50% 50%;
    will-change: transform;
}
.home-page-viewer-caption {
    width: max-content;
    max-width: 84%;
    padding: 2px 3px;
    border-radius: 0;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    line-height: 1.16;
    text-shadow: 0 1px 5px rgba(0,0,0,.62), 0 0 1px rgba(0,0,0,.6);
}

@media (max-width: 640px) {
    .home-page-create-head { z-index: 30; pointer-events: none; }
    .home-page-create-head > * { pointer-events: auto; }
    .home-page-style-toolbar { top: calc(86px + env(safe-area-inset-top)); max-width: calc(100% - 72px); gap: 6px; }
    .home-page-font-picker, .home-page-color-picker { gap: 6px; padding: 4px 5px; }
    .home-page-font-picker button { min-height: 27px; padding: 0 9px; font-size: 10.5px; }
    .home-page-color-picker button { flex-basis: 22px; width: 22px; height: 22px; }
    .home-page-text-size-rail { left: 6px; height: 178px; }
    .home-page-text-size-rail input[type="range"] { width: 132px; }
    .home-page-editor-hint { bottom: 72px; }
}

/* =========================================================
   SAYFALAR — INSTAGRAM BENZERİ ALT ETKİLEŞİM
   ========================================================= */
.home-page-viewer-actions {
    position: absolute;
    z-index: 18;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    pointer-events: auto;
}
.home-page-viewer-actions[hidden] { display: none !important; }

.home-page-viewer-reply {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    align-items: center;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 999px;
    background: rgba(8,10,14,.24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.home-page-viewer-reply:focus-within {
    border-color: rgba(255,255,255,.62);
    background: rgba(8,10,14,.38);
}
.home-page-viewer-reply input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 10px 0 15px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
}
.home-page-viewer-reply input::placeholder { color: rgba(255,255,255,.72); }

.home-page-viewer-send {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    margin-right: 4px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    color: #111318;
    cursor: pointer;
    transition: opacity .15s ease, transform .15s ease;
}
.home-page-viewer-send:disabled { opacity: .30; cursor: default; }
.home-page-viewer-send:not(:disabled):hover { transform: scale(1.04); }
.home-page-viewer-send svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-page-viewer-like {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}
.home-page-viewer-like:hover { transform: scale(1.06); }
.home-page-viewer-like:disabled { opacity: .55; cursor: default; }
.home-page-viewer-like svg { width: 27px; height: 27px; }
.home-page-viewer-like .is-outline {
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.home-page-viewer-like .is-filled { display: none; fill: #ff3040; }
.home-page-viewer-like.is-liked .is-outline { display: none; }
.home-page-viewer-like.is-liked .is-filled { display: block; }

.home-page-viewer-action-status {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: calc(100% + 10px);
    z-index: 4;
    max-width: calc(100% - 28px);
    padding: 8px 14px;
    border-radius: 999px;
    background: #0f1419;
    color: #fff;
    box-shadow: 0 6px 20px rgba(15,20,25,.24);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    text-shadow: none;
    transform: translateX(-50%);
    pointer-events: none;
}
.home-page-viewer-action-status:empty {
    display: none;
}
.home-page-viewer-action-status.is-success {
    background: #0f1419;
    color: #fff;
}
.home-page-viewer-action-status.is-error {
    background: #b42318;
    color: #fff;
}
html.dark .home-page-viewer-action-status,
html.dark .home-page-viewer-action-status.is-success {
    background: #fff;
    color: #0f1419;
    box-shadow: 0 6px 20px rgba(0,0,0,.34);
}
html.dark .home-page-viewer-action-status.is-error {
    background: #fff;
    color: #b42318;
}

/* Alt etkileşim varken sağ/sol tıklama alanı inputun üstüne binmesin. */
.home-page-viewer-nav { bottom: 72px; }

@media (max-width: 640px) {
    .home-page-viewer-actions {
        left: 10px;
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        gap: 6px;
    }
    .home-page-viewer-reply { height: 46px; }
    .home-page-viewer-reply input { font-size: 14px; padding-left: 16px; }
    .home-page-viewer-like { width: 44px; height: 44px; flex-basis: 44px; }
    .home-page-viewer-like svg { width: 29px; height: 29px; }
    .home-page-viewer-nav { bottom: 76px; }
}


/* =========================================================
   SAYFALAR — KENDİ SAYFANDA TEKİL GÖRÜNTÜLENME SAYISI
   ========================================================= */
.home-page-viewer-own-stats {
    position: absolute;
    z-index: 18;
    left: 18px;
    bottom: 17px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1;
    text-shadow: 0 1px 5px rgba(0,0,0,.72);
    pointer-events: none;
}

.home-page-viewer-own-stats[hidden] {
    display: none !important;
}

.home-page-viewer-own-stats svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 640px) {
    .home-page-viewer-own-stats {
        left: 14px;
        bottom: max(16px, env(safe-area-inset-bottom));
        font-size: 13px;
    }
}


/* =========================================================
   2026-09-17 — AKIŞ ÜST ALANI / TEK YÜZEY
   ---------------------------------------------------------
   Amaç:
   - Sayfalar'ı kısa yatay bir ray yapmak
   - avatar üstündeki + rozetini kaldırıp ayrı "Yeni sayfa" elemanı kullanmak
   - hızlı oluşturmayı tek satıra indirmek
   - Gönderi / Alıntı haplarını ana sayfadan kaldırmak
   - sekmeleri ayrı oval karttan çıkarıp yüzeyin doğal devamı yapmak

   Yalnızca home.php'yi etkiler. post_form modalının kendi tasarımına dokunmaz.
   ========================================================= */

/* Üst alan artık kart içinde kart değil: orta kolonun beyaz üst yüzeyi. */
.home-center-surface .home-hero {
    position: static !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

html.dark .home-center-surface .home-hero {
    background: var(--dp-panel-bg, #0b0b0b) !important;
    box-shadow: none !important;
}

.home-center-surface .home-hero .page-hero-body,
.home-center-surface .home-hero .home-hero-composer {
    width: 100%;
    padding: 0 !important;
}

/* ---------- SAYFALAR: ince yatay ray ---------- */
.home-center-surface .home-pages {
    margin: 0 !important;
    padding: 13px 16px 10px !important;
    border: 0 !important;
    background: transparent;
}

.home-center-surface .home-pages-track {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0;
    padding: 1px 2px 3px !important;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.home-center-surface .home-pages-track::-webkit-scrollbar {
    display: none;
}

.home-center-surface .home-page-item {
    flex: 0 0 52px !important;
    width: 52px !important;
    min-width: 52px;
    opacity: 1;
}

/* SAYFA KARTI — "SAYFA" GİBİ DURSUN

   Eskiden 52x58, radius 14. Bu oran (1:1.12) neredeyse kare ve o
   yuvarlaklıkta bir kare "rozet" gibi okunuyordu, sayfa gibi değil.

   Yeni: 52x74, radius 5.
   - 52:74 orani 1:1.42 — kagidin kendi orani (ISO A serisi, 1:V2).
     Goz bunu "sayfa" olarak taniyor, cunku tuttugu her kitap ve her
     A4 bu orandadir.
   - radius 14 -> 5: kagidin kosesi keskindir. 14px yuvarlaklik
     "uygulama ikonu" der, 5px "kagit" der. Sifir yapmadim; ekranda
     tamamen keskin kose sert duruyor ve dokunulabilir hissettirmiyor. */
.home-center-surface .home-page-thumb-wrap,
.home-center-surface .home-page-thumb-action {
    width: 52px !important;
    height: 74px !important;
}

.home-center-surface .home-page-thumb-action {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
}

.home-center-surface .home-page-thumb {
    width: 52px !important;
    height: 74px !important;
    border: 1px solid #dfe4ea;
    border-radius: 5px !important;
    background: #eef1f4;
    box-shadow: none;
}

.home-center-surface .home-page-item:not(.home-page-item-own):hover .home-page-thumb {
    transform: translateY(-1px);
    border-color: #c9d1da;
    box-shadow: 0 5px 14px rgba(15,23,42,.07);
}

.home-center-surface .home-page-item.is-unseen .home-page-thumb {
    border: 2px solid #1d9bf0;
    box-shadow: 0 0 0 2px rgba(29,155,240,.08);
}

.home-center-surface .home-page-item.is-viewed:not(.home-page-item-own) {
    opacity: .68;
}

.home-center-surface .home-page-item.is-viewed:not(.home-page-item-own):hover {
    opacity: .9;
}

.home-center-surface .home-page-profile-link {
    width: 52px;
    margin-top: 5px;
    gap: 2px;
}

.home-center-surface .home-page-name {
    max-width: 43px;
    font-size: 10px;
    font-weight: 450;
    line-height: 1.15;
    color: #707987;
}

.home-center-surface .home-page-premium {
    width: 8px;
    height: 8px;
    flex-basis: 8px;
}

/* İlk eleman: avatar üstüne eklenen küçük + yerine bağımsız oluşturma girişi. */
.home-center-surface .home-page-create-tile {
    display: flex;
    width: 52px;
    padding: 0;
    border: 0;
    flex-direction: column;
    align-items: center;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

/* "+" karosu da ayni sayfa oranina cekildi (52x74, radius 5) —
   yoksa serit icinde tek basina kare ve yuvarlak durur, yanindaki
   sayfalarla hizasi bozulur. */
.home-center-surface .home-page-create-thumb {
    display: grid;
    place-items: center;
    width: 52px;
    height: 74px;
    border: 1px dashed #cbd3dc;
    border-radius: 5px;
    background: #f6f8fa;
    color: #677383;
    transition:
        transform .15s ease,
        border-color .15s ease,
        background-color .15s ease,
        color .15s ease;
}

.home-center-surface .home-page-create-thumb svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
}

.home-center-surface .home-page-create-label {
    display: block;
    width: 52px;
    margin-top: 5px;
    overflow: hidden;
    color: #707987;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-center-surface .home-page-create-tile:hover .home-page-create-thumb {
    transform: translateY(-1px);
    border-color: #9eabb9;
    background: #fff;
    color: #111827;
}

/* Eski avatar üstü + artık markup'ta yok; geride bir yerde kalsa da ana sayfada gösterme. */
.home-center-surface .home-page-add {
    display: none !important;
}

html.dark .home-center-surface .home-page-thumb {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
}

html.dark .home-center-surface .home-page-name,
html.dark .home-center-surface .home-page-create-label {
    color: #9099a7;
}

html.dark .home-center-surface .home-page-create-thumb {
    border-color: rgba(255,255,255,.15);
    background: rgba(255,255,255,.035);
    color: #9aa4b2;
}

html.dark .home-center-surface .home-page-create-tile:hover .home-page-create-thumb {
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.065);
    color: #f3f4f6;
}

/* ---------- KOMPAKT COMPOSER ---------- */
.home-center-surface .home-post-form-shell {
    width: 100%;
    margin: 0;
}

.home-center-surface .home-post-form-shell > .home-quick-compose {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 !important;
    padding: 11px 16px 13px !important;
    border: 0 !important;
    border-top: 1px solid #edf0f4 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

.home-center-surface .home-quick-compose-avatar {
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: cover;
    border: 1px solid #e4e8ed;
    border-radius: 9999px;
}

.home-center-surface .home-quick-compose-trigger {
    display: flex;
    min-width: 0;
    min-height: 42px;
    flex: 1 1 auto;
    align-items: center;
    gap: 10px;
    padding: 0 9px 0 15px;
    border: 1px solid transparent;
    border-radius: 9999px;
    outline: none;
    background: #f3f5f7;
    color: #7b8492;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 450;
    text-align: left;
    cursor: pointer;
    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.home-center-surface .home-quick-compose-trigger:hover {
    border-color: #e4e8ed;
    background: #eef1f4;
    color: #596372;
}

.home-center-surface .home-quick-compose-trigger:focus-visible {
    border-color: #bdc7d2;
    box-shadow: 0 0 0 3px rgba(29,155,240,.08);
}

.home-center-surface .home-quick-compose-placeholder {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-center-surface .home-quick-compose-icon {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border-radius: 9999px;
    color: #687384;
}

.home-center-surface .home-quick-compose-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html.dark .home-center-surface .home-post-form-shell > .home-quick-compose {
    border-top-color: rgba(255,255,255,.075) !important;
}

html.dark .home-center-surface .home-quick-compose-avatar {
    border-color: rgba(255,255,255,.10);
}

html.dark .home-center-surface .home-quick-compose-trigger {
    background: rgba(255,255,255,.055);
    color: #8f99a7;
}

html.dark .home-center-surface .home-quick-compose-trigger:hover {
    border-color: rgba(255,255,255,.09);
    background: rgba(255,255,255,.075);
    color: #c3cad3;
}

html.dark .home-center-surface .home-quick-compose-icon {
    color: #9aa4b2;
}

/* ---------- AKIŞ SEKMELERİ: ayrı oval kart değil ---------- */
.home-center-surface .home-tabs {
    top: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-height: 48px;
    margin: 0 !important;
    padding: 0 14px !important;
    overflow: visible !important;
    border: 0 !important;
   border-top: 1px solid #edf0f4 !important;
    border-bottom: 1px solid #e7ebf0 !important;
    border-radius: 0 0 20px 20px !important;
    background: #fff !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

.home-center-surface .home-tab {
    position: relative;
    display: flex !important;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #7c8592 !important;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: color .15s ease;
}

.home-center-surface .home-tab:hover {
    background: transparent !important;
    color: #374151 !important;
}

.home-center-surface .home-tab::after {
    content: "";
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: -1px;
    height: 2px;
    border-radius: 999px 999px 0 0;
    background: transparent;
    transform: scaleX(.55);
    transform-origin: center;
    transition: transform .16s ease, background-color .16s ease;
}

.home-center-surface .home-tab.is-active {
    background: transparent !important;
    color: #111827 !important;
    font-weight: 700;
}

.home-center-surface .home-tab.is-active::after {
    background: #111827;
    transform: scaleX(1);
}

html.dark .home-center-surface .home-tabs {
    border-top-color: rgba(255,255,255,.075) !important;
    border-bottom-color: rgba(255,255,255,.09) !important;
    background: rgba(14,16,21,.86) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

html.dark .home-center-surface .home-tab {
    color: #818b99 !important;
}

html.dark .home-center-surface .home-tab:hover {
    color: #c9d0d9 !important;
}

html.dark .home-center-surface .home-tab.is-active {
    color: #f5f7fa !important;
}

html.dark .home-center-surface .home-tab.is-active::after {
    background: #f5f7fa;
}

/* Sekme ile ilk kart arasındaki eski 24px kabuk boşluğunu kaldır. */
.home-center-surface .home-tabs + #feedContainer {
    margin-top: 0 !important;
    padding-top: 12px;
}

/* ---------- MOBİL ---------- */
@media (max-width: 640px) {
    .home-center-surface .home-hero {
        position: static !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    .home-center-surface .home-pages {
        display: block !important;
        padding: 10px var(--m-gutter, 10px) 8px !important;
    }

    .home-center-surface .home-pages-track {
        gap: 9px;
        padding-bottom: 2px !important;
    }

    .home-center-surface .home-page-item,
    .home-center-surface .home-page-create-tile {
        flex-basis: 49px !important;
        width: 49px !important;
        min-width: 49px;
    }

    .home-center-surface .home-page-thumb-wrap,
    .home-center-surface .home-page-thumb-action,
    .home-center-surface .home-page-thumb,
    .home-center-surface .home-page-create-thumb {
        width: 52px !important;
        height: 74px !important;
        border-radius: 5px !important;
    }

    .home-center-surface .home-page-profile-link,
    .home-center-surface .home-page-create-label {
        width: 49px;
    }

    .home-center-surface .home-post-form-shell > .home-quick-compose {
        display: none !important;
        padding: 9px var(--m-gutter, 10px) 11px !important;
    }

    .home-center-surface .home-quick-compose-avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .home-center-surface .home-quick-compose-trigger {
        min-height: 38px;
        padding-left: 13px;
        font-size: 13px;
    }

    .home-center-surface .home-quick-compose-icon {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }

    .home-center-surface .home-tabs {
        min-height: 46px;
        padding: 0 var(--m-gutter, 6px) !important;
    }

    .home-center-surface .home-tab {
        min-height: 46px;
        font-size: 13px;
    }

    .home-center-surface .home-tabs + #feedContainer {
        padding-top: 8px;
    }
}


/* =========================================================
   MİSAFİR PUBLIC AKIŞ BAŞLIĞI
   ---------------------------------------------------------
   Yalnızca giriş yapmamış kullanıcıların /home.php ve /alintilar
   görünümünü etkiler. Giriş yapılmış ana sayfadaki hero, sekmeler,
   composer, Sayfalar ve scroll-restore davranışına dokunmaz.
   ========================================================= */

.home-center-surface.guest-feed-surface {
    padding-top: 0;
}

.guest-feed-header {
    background: #ffffff;
    border-bottom: 1px solid #e7ebf1;
}

.guest-feed-copy {
    padding: 22px 24px 14px;
}

.guest-feed-title {
    margin: 0;
    color: #0f1419;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.guest-feed-description {
    max-width: 560px;
    margin: 6px 0 0;
    color: #656d7a;   /* #7a8491 beyazda 3.8:1 idi — OKUNURLUK_20261026 */
    font-size: 13px;
    line-height: 1.5;
}

.guest-feed-tabs {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 42px;
    padding: 0 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.guest-feed-tabs::-webkit-scrollbar {
    display: none;
}

.guest-feed-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    flex: 0 0 auto;
    padding: 0 2px;
    color: #656d7a;   /* #7a8491 idi — OKUNURLUK_20261026 */
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease, transform .15s ease;
}

.guest-feed-tab:hover {
    color: #0f1419;
    transform: translateY(-1px);
}

.guest-feed-tab::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 9999px;
    background: #0f1419;
    transform: translateX(-50%);
    transition: width .15s ease;
}

.guest-feed-tab.is-active {
    color: #0f1419;
    font-weight: 800;
}

.guest-feed-tab.is-active::after {
    width: 100%;
}

.home-center-surface.guest-feed-surface #feedContainer {
    padding-top: 18px;
}

html.dark .guest-feed-header {
    background: #0f1117;
    border-bottom-color: rgba(255,255,255,.10);
}

html.dark .guest-feed-title {
    color: #f3f4f6;
}

html.dark .guest-feed-description,
html.dark .guest-feed-tab {
    color: #8f98a5;
}

html.dark .guest-feed-tab:hover,
html.dark .guest-feed-tab.is-active {
    color: #f9fafb;
}

html.dark .guest-feed-tab::after {
    background: #f9fafb;
}

@media (max-width: 640px) {
    .guest-feed-copy {
        padding: 18px 16px 12px;
    }

    .guest-feed-title {
        font-size: 20px;
    }

    .guest-feed-description {
        margin-top: 5px;
        font-size: 12.5px;
    }

    .guest-feed-tabs {
        gap: 24px;
        min-height: 40px;
        padding: 0 16px;
    }

    .guest-feed-tab {
        min-height: 40px;
        font-size: 13.5px;
    }

    .home-center-surface.guest-feed-surface #feedContainer {
        padding-top: 14px;
    }
}
/* =========================================================
   MOBİL ANA SAYFA — SON ZORLAYICI DÜZELTMELER
   2) Sol/kenar gölgelerini kaldır
   Sayfalar görünür kalır, hızlı composer gizli kalır.
   Bu blok dosyanın sonunda bilerek durur; önceki !important
   kurallarını mobilde kesin olarak ezer.
   ========================================================= */
@media (max-width: 640px), (max-device-width: 767px) {
    .home-center-surface,
    .home-center-surface .home-hero,
    .home-center-surface .home-tabs,
    .home-center-surface #feedContainer > article.post-card {
        box-shadow: none !important;
        filter: none !important;
    }

    .home-center-surface .home-pages {
        display: block !important;
    }

    .home-center-surface .home-post-form-shell > .home-quick-compose {
        display: none !important;
    }
}

/* =========================================================
   ANA SAYFA — SON UX / MOBİL ERİŞİLEBİLİRLİK DÜZELTMELERİ
   ========================================================= */
.home-center-surface #feedContainer {
    transition: opacity .15s ease;
}
.home-center-surface #feedContainer.is-feed-switching {
    opacity: .58;
}
@media (prefers-reduced-motion: reduce) {
    .home-center-surface #feedContainer { transition: none; }
}

@media (max-width: 640px), (max-device-width: 767px) {
    /* Görsel küçük kalabilir; dokunma alanı en az 44px. */
    .home-page-create-close,
    .home-page-viewer-more,
    .home-page-viewer-close,
    .home-page-align-control,
    .home-page-viewer-send {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    .home-page-viewer-menu-delete,
    .home-page-delete-confirm-actions button,
    .home-page-create-cancel,
    .home-page-create-submit,
    .home-page-media-change,
    .home-page-font-picker button {
        min-height: 44px !important;
    }

    .home-page-font-picker button {
        padding-left: 12px !important;
        padding-right: 12px !important;
        font-size: 12px !important;
    }

    .home-page-color-picker button {
        position: relative;
        flex: 0 0 44px !important;
        width: 44px !important;
        height: 44px !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .home-page-color-picker button::before {
        content: '';
        position: absolute;
        inset: 10px;
        border: 2px solid rgba(255,255,255,.62);
        border-radius: 50%;
        background: var(--page-color);
        box-shadow: 0 1px 5px rgba(0,0,0,.24);
    }
    .home-page-color-picker button.is-active::after {
        inset: 5px;
        border-radius: 50%;
    }

    .home-center-surface .home-page-name,
    .home-center-surface .home-page-create-label {
        font-size: 11.5px !important;
    }
}

/* =========================================================
   ANA SAYFA — MOBİL GENİŞLİK SINIRI
   Kırpma/overflow hilesi yok: merkez yüzey ve akış viewport kabuğunu
   aşamaz. Yatay Sayfalar rayı kendi içinde kaymaya devam eder.
   ========================================================= */
@media (max-width: 767px), (max-device-width: 767px) {
    html.page-home .home-center-surface,
    html.page-home .home-center-surface #feedContainer,
    html.page-home .home-center-surface .home-tabs {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
}

/* =========================================================
   ŞU AN inBook'TA — sağ sidebar
   Mevcut hashtag "Okurların Gündemi" kutusundan bağımsızdır.
   Yalnız home.php bu veriyi prefetch ettiği için diğer sayfalarda çizilmez.
   ========================================================= */

















/* =========================================================
   YÜKSELEN KİTAPLAR — sağ sidebar
   Türler kutusunun geçici olarak yerine geçer.
   ========================================================= */
.rising-books-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rising-book-row {
    display: grid;
    grid-template-columns: 18px 32px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 7px 6px;
    margin: 0 -6px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: background-color .15s ease;
}

.rising-book-row:hover { background: rgba(15, 20, 25, .045); }

.rising-book-rank {
    color: #9aa3af;
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    text-align: center;
}

.rising-book-cover {
    display: grid;
    place-items: center;
    width: 30px;
    height: 42px;
    overflow: hidden;
    border-radius: 6px;
    background: #eef1f5;
    color: #8993a0;
}

.rising-book-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rising-book-cover svg { width: 16px; height: 16px; }

.rising-book-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rising-book-title,
.rising-book-author,
.rising-book-meta {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rising-book-title {
    color: #111827;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
}

.rising-book-author {
    margin-top: 1px;
    color: #8b95a2;
    font-size: 10.5px;
    font-weight: 400;
    line-height: 1.2;
}

.rising-book-meta {
    margin-top: 2px;
    color: #747f8d;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
}

html.dark .rising-book-row:hover { background: rgba(255, 255, 255, .055); }
html.dark .rising-book-rank { color: #717b87; }
html.dark .rising-book-cover { background: rgba(255, 255, 255, .07); color: #8e98a5; }
html.dark .rising-book-title { color: #f1f3f5; }
html.dark .rising-book-author { color: #7f8996; }
html.dark .rising-book-meta { color: #929ca8; }


/* =========================================================
   HOME_FEED_TAIL_STATUS_20261008
   Sonsuz scroll loader / son durum alanı.
   Sabit yükseklik, yükleme sırasında sayfa dibinin oynayıp
   scroll konumunu yukarı-aşağı itmesini engeller.
   ========================================================= */
.home-feed-tail-status {
    position: relative;
    height: 76px;
    flex: 0 0 76px;
}

.home-feed-tail-status .home-scroll-loader,
.home-feed-tail-status .home-feed-end {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-feed-tail-status .home-scroll-loader {
    padding: 0;
}

.home-feed-tail-status .home-feed-end {
    padding: 0 16px;
    color: #8b95a1;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}

html.dark .home-feed-tail-status .home-feed-end {
    color: #737d89;
}

.home-feed-tail-status .hidden {
    display: none !important;
}

/* =========================================================
   GUEST_QUOTE_SEARCH_20261008
   Yalnız giriş yapmamış kullanıcının Alıntılar araması.
   ========================================================= */
.guest-quote-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(100%, 520px);
    margin-top: 12px;
}

.guest-quote-search input {
    width: 100%;
    height: 40px;
    padding: 0 42px 0 38px;
    border: 1px solid #dfe4ea;
    border-radius: 9999px;
    outline: none;
    background: #f5f7f9;
    color: #111827;
    font: inherit;
    font-size: 13.5px;
    transition:
        border-color .15s ease,
        background-color .15s ease,
        box-shadow .15s ease;
}

.guest-quote-search input::placeholder {
    color: #8b95a1;
}

.guest-quote-search input:focus {
    background: #fff;
    border-color: #9aa5b1;
    box-shadow: 0 0 0 1px #9aa5b1;
}

.guest-quote-search-icon {
    position: absolute;
    left: 13px;
    width: 17px;
    height: 17px;
    color: #7d8793;
    pointer-events: none;
    z-index: 1;
}

.guest-quote-search-spinner {
    position: absolute;
    right: 14px;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(100,116,139,.25);
    border-top-color: #64748b;
    border-radius: 50%;
    animation: guestQuoteSearchSpin .65s linear infinite;
}

@keyframes guestQuoteSearchSpin {
    to { transform: rotate(360deg); }
}

html.dark .guest-quote-search input {
    border-color: rgba(255,255,255,.10);
    background: rgba(255,255,255,.055);
    color: #f3f4f6;
}

html.dark .guest-quote-search input:focus {
    border-color: rgba(255,255,255,.25);
    background: rgba(255,255,255,.075);
    box-shadow: 0 0 0 1px rgba(255,255,255,.16);
}

html.dark .guest-quote-search input::placeholder,
html.dark .guest-quote-search-icon {
    color: #808a96;
}

@media (max-width: 640px) {
    .guest-quote-search {
        width: 100%;
        margin-top: 10px;
    }

    .guest-quote-search input {
        height: 40px;
        font-size: 16px;
    }
}


/* =========================================================
   GUEST_QUOTE_COMPACT_HEADER_20261008
   Misafir Alıntılar üst alanı — kompakt / X benzeri.
   ========================================================= */

.home-center-surface.guest-feed-surface .guest-feed-copy {
    padding: 18px 22px 9px !important;
}

.home-center-surface.guest-feed-surface .guest-feed-title {
    font-size: 20px !important;
    line-height: 1.18 !important;
    letter-spacing: -.02em !important;
}

.home-center-surface.guest-feed-surface .guest-quote-search {
    width: 100% !important;
    max-width: none !important;
    margin-top: 8px !important;
}

.home-center-surface.guest-feed-surface .guest-quote-search input {
    height: 30px !important;
    padding: 0 34px 0 34px !important;

    border: 1px solid #dfe3e8 !important;
    border-radius: 9999px !important;

    background: #f6f7f8 !important;

    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    box-shadow: none !important;
}

.home-center-surface.guest-feed-surface .guest-quote-search input:focus {
    background: #fff !important;
    border-color: #aeb6c0 !important;
    box-shadow: 0 0 0 1px rgba(15,20,25,.08) !important;
}

.home-center-surface.guest-feed-surface .guest-quote-search-icon {
    left: 11px !important;
    width: 15px !important;
    height: 15px !important;
}

.home-center-surface.guest-feed-surface .guest-quote-search-spinner {
    right: 11px !important;
    width: 13px !important;
    height: 13px !important;
}

.home-center-surface.guest-feed-surface .guest-feed-tabs {
    min-height: 38px !important;
    padding: 0 22px !important;
    gap: 26px !important;
}

.home-center-surface.guest-feed-surface .guest-feed-tab {
    min-height: 38px !important;
    font-size: 16px !important;
}

html.dark .home-center-surface.guest-feed-surface .guest-quote-search input {
    background: rgba(255,255,255,.055) !important;
    border-color: rgba(255,255,255,.11) !important;
}

html.dark .home-center-surface.guest-feed-surface .guest-quote-search input:focus {
    background: rgba(255,255,255,.075) !important;
    border-color: rgba(255,255,255,.22) !important;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08) !important;
}

@media (max-width: 640px) {
    .home-center-surface.guest-feed-surface .guest-feed-copy {
        padding: 15px 16px 8px !important;
    }

    .home-center-surface.guest-feed-surface .guest-feed-title {
        font-size: 19px !important;
    }

    .home-center-surface.guest-feed-surface .guest-quote-search {
        margin-top: 7px !important;
    }

    /*
     * iOS input focus zoomunu engellemek için mobilde 16px.
     * Kutunun kendisi yine kompakt kalıyor.
     */
    .home-center-surface.guest-feed-surface .guest-quote-search input {
        height: 32px !important;
        font-size: 16px !important;
    }

    .home-center-surface.guest-feed-surface .guest-feed-tabs {
        min-height: 38px !important;
        padding: 0 16px !important;
    }

    .home-center-surface.guest-feed-surface .guest-feed-tab {
        min-height: 38px !important;
    }
}


/* GUEST_SEARCH_IN_TABBAR_20261008
   Yalnızca mevcut arama formunu tab satırında sağa hizalar.
   Input ölçülerini değiştirmez. */
.home-center-surface.guest-feed-surface
.guest-feed-tabs
.guest-quote-search {
    margin-top: 0 !important;
    margin-left: auto !important;
}



/* GUEST_SEARCH_TAB_TEXT_ALIGN_20261008
   Arama kutusu sekme YAZILARI ile aynı düşey merkezde. */
.home-center-surface.guest-feed-surface
.guest-feed-tabs
.guest-quote-search {
    align-self: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: translateY(2px) !important;
}

/* HOME_LIVE_SIDEBAR_COMPACT_20261012
   =========================================================
   Şu an inBook'ta + Yükselen Kitaplar

   Daha az boşluk, aynı panel genişliği.
   ========================================================= */

.sidebar-box.rising-books-box {
    padding: 10px 12px !important;
    margin-bottom: 12px !important;
}


/* Başlık */
.rising-books-box > .sidebar-compact-title {
    margin-top: 0 !important;
    margin-bottom: 7px !important;

    line-height: 1.15 !important;
}


/* =========================================================
   ŞU AN INBOOK'TA
   ========================================================= */








/* Hikâye kapağı */


/* Kulüp kapağı */










/* =========================================================
   YÜKSELEN KİTAPLAR
   ========================================================= */

.rising-books-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}


.rising-book-row {
    grid-template-columns:
        16px
        28px
        minmax(0, 1fr) !important;

    gap: 7px !important;

    padding: 4px 2px !important;
    margin: 0 -2px !important;

    min-height: 0 !important;
}


.rising-book-cover {
    width: 28px !important;
    height: 38px !important;

    border-radius: 5px !important;
}


.rising-book-rank {
    font-size: 10.5px !important;
}


.rising-book-title {
    font-size: 12.5px !important;
    line-height: 1.16 !important;
}


.rising-book-author {
    margin-top: 0 !important;

    font-size: 10px !important;
    line-height: 1.12 !important;
}


.rising-book-meta {
    margin-top: 1px !important;

    font-size: 10.5px !important;
    line-height: 1.12 !important;
}

/* END_HOME_LIVE_SIDEBAR_COMPACT_20261012 */

