/**
 * Kurumsal Web - Ortak stiller (gündüz modu)
 * Bu dosya tüm sayfalarda include edilir.
 */

:root {
    --bg: #ffffff;
    --bg-page: #ffffff;
    --bg-card: #ffffff;
    --border: #dbdbdb;
    --text: #262626;
    --text-muted: #8e8e8e;
    --accent: #0095f6;
    --accent-hover: #1877f2;
    --gap: 4px;
    --sidebar-w: 280px;
    --max-content: 935px;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: #ffffff;
    /* Sol sidebar kaymasını önle: scrollbar her zaman yer kaplasın */
    overflow-y: scroll;
    scrollbar-gutter: stable;
    /* Tıklamada mavi/kare vurguyu kaldır */
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

/* Tıklanabilir öğelerde vurgu yok; klavye odağında outline kalsın */
a, button, input, select, textarea, [role="button"], [tabindex]:not([tabindex="-1"]) {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: none;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Layout: sol sidebar + orta + sağ (X tarzı 3 sütun) */
.layout {
    display: flex;
    min-height: 100vh;
    max-width: 1280px;
    margin: 0 auto;
    background: #ffffff;
}

.page-wrap {
    flex: 1;
    display: flex;
    min-width: 0;
}

/* Sol sidebar - sağ bar ile aynı yükseklik (100vh), logo üstte, menü ortada, footer altta */
.sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    border-right: 1px solid var(--border);
    padding: 16px 14px 12px 16px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    overflow: hidden;
}

.sidebar-logo {
    display: block;
    flex-shrink: 0;
    padding: 0 16px 24px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid transparent;
}
.sidebar-logo:hover {
    text-decoration: none;
    color: inherit;
}
.sidebar-logo-text {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.02em;
    line-height: 1.25;
    text-align: left;
}
.sidebar-logo-short {
    display: none;
}
.sidebar-logo-img {
    display: block;
    max-height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin-top: 100px;
}

.sidebar-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    color: var(--text-muted);
    border-radius: 9999px;
    transition: color .15s, background .15s;
    text-decoration: none;
    font-size: 19px;
    font-weight: 400;
}
.sidebar-item:hover {
    color: var(--text);
    background: #f5f5f5;
    text-decoration: none;
}
.sidebar-item.active {
    color: var(--text);
    font-weight: 600;
    background: #f5f5f5;
}

.sidebar-item .icon,
.sidebar-item .icon-instagram {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    transition: transform .15s ease;
}
.sidebar-item:hover .icon,
.sidebar-item:hover .icon-instagram,
.sidebar-item-footer:hover .icon,
.sidebar-item-footer:hover .icon-instagram {
    transform: scale(1.08);
}
.sidebar-item span {
    font-size: inherit;
}

.sidebar-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.sidebar-item-footer {
    font-size: 16px;
    color: var(--text-muted);
}
.sidebar-item-footer:hover {
    color: var(--text);
    background: #f5f5f5;
}
.sidebar-item-footer.active {
    color: var(--text);
    background: #f5f5f5;
}

/* Ortak: orta sütun başlık alanı - yükseklik ve border her sayfada sabit */
.page-header,
.feed-header {
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0;
}

.feed-header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    z-index: 10;
}

.page-title,
.feed-title {
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Geri butonu - alt sayfalarda header sağda */
.page-header-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 -4px 0 0;
    color: var(--text);
    text-decoration: none;
    border-radius: 50%;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.page-header-back:hover {
    background: #f0f0f0;
    color: var(--text);
    text-decoration: none;
}
.page-header-back svg {
    width: 22px;
    height: 22px;
}

.page-content {
    padding: 16px;
}

.text-muted {
    color: var(--text-muted);
    margin: 0;
}

/* Kurumsal Bilgiler - 2’li grid kartlar */
.kurumsal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.kurumsal-kart {
    display: block;
    padding: 20px;
    background: var(--bg-secondary, #f7f9fa);
    border: 1px solid var(--border-color, #e1e8ed);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s;
    position: relative;
}
.kurumsal-kart:hover,
.kurumsal-kart:hover .kurumsal-kart-baslik,
.kurumsal-kart:hover .kurumsal-kart-aciklama {
    text-decoration: none;
}
.kurumsal-kart:hover {
    border-color: #0f172a;
}
.kurumsal-kart-baslik {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}
.kurumsal-kart-aciklama {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.kurumsal-kart-ok {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.2rem;
    color: var(--text-muted);
}
.kurumsal-kart:hover .kurumsal-kart-ok {
    color: #0f172a;
}

/* Kurumsal sayfa içerik (tek sayfa) */
.page-content-icerik {
    padding-bottom: 24px;
}
.kurumsal-icerik {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}
.kurumsal-icerik p { margin: 0 0 1em; }
.kurumsal-icerik h2 { font-size: 1.25rem; margin: 1.25em 0 0.5em; }
.kurumsal-icerik h3 { font-size: 1.1rem; margin: 1em 0 0.5em; }
.kurumsal-icerik ul, .kurumsal-icerik ol { margin: 0 0 1em; padding-left: 1.5em; }

@media (max-width: 520px) {
    .kurumsal-grid {
        grid-template-columns: 1fr;
    }
}

/* Mesajlar sayfası */
.page-content-mesajlar {
    padding-bottom: 32px;
}
.mesaj-alindi {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    color: #166534;
}
.mesaj-alindi-ikon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
}
.mesaj-alindi-metin {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}
.mesajlar-section {
    margin-bottom: 32px;
}
.mesajlar-section:last-child {
    margin-bottom: 0;
}
.mesajlar-section-title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.mesajlar-section-desc {
    margin: 0 0 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.form-hata {
    margin: 0 0 12px;
    padding: 10px 12px;
    font-size: 0.875rem;
    color: #b91c1c;
    background: #fef2f2;
    border-radius: 8px;
}
.mesaj-form {
    max-width: 100%;
}
.form-row {
    margin-bottom: 14px;
}
.form-row-iki {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}
.form-row-iki .form-row {
    margin-bottom: 0;
}
.form-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}
.form-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-primary);
    background: #fff;
    border: 1px solid var(--border-color, #e1e8ed);
    border-radius: 8px;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.form-input:focus {
    outline: none;
    border-color: #0f172a;
}
.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}
.form-textarea {
    resize: vertical;
    min-height: 96px;
}
.form-actions {
    margin-top: 18px;
}
.form-submit {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: #0f172a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}
.form-submit:hover {
    background: #1e293b;
}
.form-submit:active {
    opacity: 0.9;
}

/* Giriş sayfası - X tarzı ortalanmış form */
.giris-sayfa .giris-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 52px);
    min-height: calc(100dvh - 52px);
    padding: 8vh 16px 40px;
}
.giris-orta {
    width: 100%;
    max-width: 340px;
}
/* Logo üstü büyük giriş ikonu */
.giris-buyuk-ikon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--primary);
}
.giris-buyuk-ikon svg {
    width: 32px;
    height: 32px;
}
/* Giriş sayfası logo include */
.giris-logo {
    display: block;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    margin-bottom: 24px;
}
.giris-logo:hover {
    color: var(--primary);
}
.giris-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.giris-aciklama {
    margin: 0 0 24px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
}
@media (max-width: 420px) {
    .giris-aciklama { white-space: normal; }
}
/* Giriş sayfası üst bar - giriş ikonu */
.page-header-giris {
    display: flex;
    align-items: center;
    gap: 10px;
}
.giris-header-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--primary);
    flex-shrink: 0;
}
.giris-header-ikon svg {
    width: 22px;
    height: 22px;
}
.giris-form {
    width: 100%;
}
/* Adım adım giriş - başlıksız input, ortada buton */
.giris-form .giris-adim-gizli {
    display: none;
}
.giris-form .giris-input-wrap {
    max-width: 280px;
    margin: 0 auto 20px;
}
.giris-form .giris-input {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.giris-form .giris-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.giris-form .giris-devam-btn,
.giris-form .giris-submit-btn {
    min-width: 140px;
}
.giris-form .giris-geri-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.giris-form .giris-geri-btn:hover {
    background: var(--bg-secondary);
    color: var(--text);
}
.giris-form .form-hata.giris-form-hata {
    margin-bottom: 16px;
    text-align: center;
}
.giris-basarili {
    text-align: center;
    padding: 32px 24px;
}
.giris-basarili-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    background: #22c55e;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
}
.giris-basarili-metin {
    margin: 0 0 24px;
    font-size: 1.05rem;
    color: var(--text);
}
.giris-devam {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

/* Duyurular */
.duyurular-section .mesajlar-section-title {
    margin-bottom: 12px;
}
.duyuru-listesi {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.duyuru-item {
    border: 1px solid var(--border-color, #e1e8ed);
    border-radius: 12px;
    overflow: hidden;
}
.duyuru-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px 20px;
    font: inherit;
    font-size: 0.9rem;
    text-align: left;
    color: var(--text-primary);
    background: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    list-style: none;
}
.duyuru-item-header:hover {
    background: var(--bg-secondary, #f7f9fa);
}
.duyuru-item-tarih {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.duyuru-item-baslik {
    flex: 1;
    font-weight: 500;
}
.duyuru-item-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center;
    background-size: 20px;
    transition: transform 0.2s;
}
.duyuru-item.is-open .duyuru-item-chevron {
    transform: rotate(180deg);
}
.duyuru-item-icerik {
    padding: 4px 20px 24px;
    border-top: 1px solid var(--border-color, #e1e8ed);
}
.duyuru-item-icerik[hidden] {
    display: none;
}
.duyuru-ozet {
    margin: 16px 0 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.duyuru-icerik-body {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
}
.duyuru-icerik-body p {
    margin: 0 0 0.75em;
}
.duyuru-icerik-body p:last-child {
    margin-bottom: 0;
}

/* İletişim sayfası - diğer sayfalarla aynı padding (page-content: 16px) */
.page-content-iletisim {
    padding: 16px;
    padding-bottom: 32px;
}
.iletisim-map-wrap {
    width: 100%;
    margin: 0 0 24px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary, #f7f9fa);
}
.iletisim-map {
    display: block;
    width: 100%;
    height: 280px;
    min-height: 200px;
}
.iletisim-map-link {
    margin: 8px 0 0;
    font-size: 14px;
}
.iletisim-map-link a { color: var(--accent); }
.iletisim-map-placeholder {
    padding: 32px 20px;
    text-align: center;
    background: var(--bg-secondary, #f7f9fa);
    border-radius: 12px;
}
.iletisim-map-placeholder p { margin: 0 0 16px; color: var(--text-muted); }
.iletisim-map-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}
.iletisim-map-btn:hover { opacity: 0.9; }
.iletisim-kutular {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.iletisim-kutu {
    padding: 20px;
    background: var(--bg-secondary, #f7f9fa);
    border: 1px solid var(--border-color, #e1e8ed);
    border-radius: 12px;
    text-align: center;
}
.iletisim-kutu-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    color: #0f172a;
}
.iletisim-kutu-ikon svg {
    width: 24px;
    height: 24px;
}
.iletisim-kutu-baslik {
    margin: 0 0 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.iletisim-kutu-deger {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text);
    text-decoration: none;
}
a.iletisim-kutu-deger:hover {
    text-decoration: underline;
    color: var(--accent);
}
.iletisim-aciklama {
    padding: 20px 0 0;
    border-top: 1px solid var(--border-color, #e1e8ed);
}
.iletisim-aciklama-baslik {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}
.iletisim-aciklama-metin {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .iletisim-kutular {
        grid-template-columns: 1fr;
    }
}

/* Acil Yol Yardım sayfası - minimal, kullanıcı odaklı */
.page-content-acil {
    padding: 16px;
    padding-bottom: 40px;
}
.acil-giris {
    margin: 0 0 28px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-muted);
}
.acil-cta-wrap {
    margin-bottom: 32px;
}
.acil-cta-kart {
    padding: 28px 24px;
    background: linear-gradient(180deg, #f8fdf9 0%, #fff 100%);
    border: 1px solid rgba(37, 211, 102, 0.18);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.acil-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 14px;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
}
.acil-btn:hover {
    text-decoration: none;
}
.acil-btn:active {
    transform: scale(0.98);
}
.acil-btn-konum {
    background: linear-gradient(180deg, #34e077 0%, #25D366 50%, #20bd5a 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3), 0 1px 0 rgba(255,255,255,0.2) inset;
}
.acil-btn-konum:hover {
    color: #fff;
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.4), 0 1px 0 rgba(255,255,255,0.2) inset;
}
.acil-btn-wa,
.acil-btn-ikon {
    display: inline-flex;
    flex-shrink: 0;
}
.acil-btn-wa {
    opacity: 0.95;
}
.acil-btn-wa svg,
.acil-btn-ikon svg {
    width: 24px;
    height: 24px;
}
.acil-btn-yazi {
    letter-spacing: 0.02em;
}
.acil-cta-not {
    margin: 18px 0 0;
    padding: 0 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.acil-alt {
    padding: 20px 0;
    border-top: 1px solid var(--border-color, #e1e8ed);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.acil-numara-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.acil-etiket {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.acil-numara {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}
.acil-numara:hover {
    color: #25D366;
    text-decoration: none;
}
.acil-link-wa {
    font-size: 0.9rem;
    font-weight: 500;
    color: #25D366;
    text-decoration: none;
}
.acil-link-wa:hover {
    text-decoration: underline;
    color: #1da851;
}
.acil-adimlar {
    margin: 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--border-color, #e1e8ed);
    list-style: none;
    counter-reset: acil;
}
.acil-adimlar li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
}
.acil-adimlar li:last-child {
    margin-bottom: 0;
}
.acil-adimlar li::before {
    counter-increment: acil;
    content: counter(acil);
    position: absolute;
    left: 0;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #25D366;
    background: rgba(37, 211, 102, 0.12);
    border-radius: 50%;
}

@media (max-width: 520px) {
    .form-row-iki {
        grid-template-columns: 1fr;
    }
}

/* Ana içerik - tüm sayfalarda aynı sol/hiza */
.main {
    flex: 1;
    padding: 0;
    max-width: var(--max-content);
    margin: 0 auto;
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    background: #ffffff;
}

/* Keşfet: orta akış alanı */
.main-feed {
    max-width: 600px;
    margin: 0;
    padding: 0;
    border-right: 1px solid var(--border);
    min-height: 100vh;
}


.feed-tabs {
    display: flex;
    gap: 0;
}

.feed-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}

.feed-tab:hover {
    color: var(--text);
}

.feed-tab.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.feed-compose {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.feed-compose-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
}

.feed-compose-input-wrap {
    flex: 1;
    min-width: 0;
}

.feed-compose-input {
    width: 100%;
    padding: 12px 0;
    border: none;
    font-size: 20px;
    color: var(--text);
    background: none;
    outline: none;
}

.feed-compose-input::placeholder {
    color: var(--text-muted);
}

.feed-compose-actions {
    display: flex;
    gap: 8px;
    padding-top: 8px;
}

.feed-compose-icon {
    font-size: 18px;
    cursor: default;
}

.feed-list {
    padding: 0;
}

.feed-card {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}

.feed-card:hover {
    background: #fafafa;
}

.feed-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.feed-card-header-right {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.feed-card-time-header {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}
.feed-card-menu-wrap { position: relative; }
.feed-card-menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border: none; background: none; cursor: pointer;
    color: var(--text-muted); border-radius: 50%; transition: color .15s, background .15s;
}
.feed-card-menu-btn:hover { color: var(--text); background: rgba(0,0,0,.06); }
.feed-card-menu-dots { font-size: 18px; line-height: 1; font-weight: 700; }
.feed-card-dropdown {
    position: absolute; top: 100%; right: 0; margin-top: 4px;
    min-width: 180px; background: #fff; border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15); border: 1px solid var(--border);
    padding: 6px; z-index: 50;
}
.feed-card-dropdown-item {
    display: block; width: 100%; text-align: left; padding: 10px 12px;
    border: none; background: none; cursor: pointer; font-size: 14px; color: var(--text);
    border-radius: 8px;
}
.feed-card-dropdown-item:hover { background: #f0f0f0; }
.feed-card[data-sabit="1"] .feed-card-time-header::before { content: '📌 '; }

.feed-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
    text-decoration: none;
}
.feed-card-avatar:hover { opacity: 0.9; }

.feed-card-avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 12px;
}
@media (max-width: 768px) {
    .feed-card-avatar { width: 32px; height: 32px; font-size: 14px; }
    .feed-card-avatar-sm { width: 24px; height: 24px; font-size: 11px; }
    .paylasim-bar-avatar { width: 28px; height: 28px; font-size: 12px; }
}
.feed-card-avatar img.feed-card-avatar-img,
.paylasim-bar-avatar img.paylasim-bar-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.feed-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.feed-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
}

.feed-card-username {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.25;
}

.feed-card-text-wrap { margin: 0 0 12px; }
.feed-card-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feed-card-text-wrap.expanded .feed-card-text {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
}
.feed-card-text-more,
.feed-card-text-less {
    margin: 4px 0 0;
    padding: 0;
    border: none;
    background: none;
    font-size: 14px;
    color: var(--accent);
    cursor: pointer;
    font-weight: 500;
}
.feed-card-text-more:hover,
.feed-card-text-less:hover { text-decoration: underline; }
.feed-card-text-more[hidden],
.feed-card-text-less[hidden] { display: none !important; }

.feed-card-media {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.feed-card-media img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

/* Video gönderi: sabit 1175×745 ebat içinde, dikey videoda da aynı kutu */
.feed-card-video-wrap {
    max-width: 1175px;
    max-height: 745px;
    width: 100%;
    aspect-ratio: 1175 / 745;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}
.feed-card-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    vertical-align: top;
}

/* Görsel altı: Beğen, Yorum, Görüntülenme, Zaman */
.feed-card-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.feed-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color .15s, transform .15s;
}

.feed-card-action:hover {
    color: var(--text);
}

.feed-card-action .icon-heart,
.feed-card-action .icon-comment {
    width: 22px;
    height: 22px;
}

.feed-card-like {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.feed-card-like .icon-heart {
    fill: none;
}
.feed-card-like.liked .icon-heart {
    fill: #ed4956;
    stroke: #ed4956;
}
.feed-card-like-count-wrap {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.feed-card-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 13px;
}
.feed-card-spacer {
    flex: 1;
}
.feed-card-views.feed-card-action .icon-views {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}
.feed-card-views .icon-views {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.feed-card-views-count {
    line-height: 1;
}

/* Keşfet - Neler oluyor (X tarzı: sol hashtag+kategori, sağ paylaşım sayısı) */
.kesfet-list {
    border-top: 1px solid var(--border-color, #e1e8ed);
}
.kesfet-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-color, #e1e8ed);
    transition: background 0.15s;
}
.kesfet-item:hover {
    background: var(--bg-secondary, #f7f9fa);
    text-decoration: none;
    color: inherit;
}
.kesfet-item-left {
    flex: 1;
    min-width: 0;
}
.kesfet-item-tag {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}
.kesfet-item-kategori {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}
.kesfet-item-right {
    flex-shrink: 0;
    text-align: right;
}
.kesfet-item-count {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.kesfet-item-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}
.kesfet-kategori-desc {
    margin: 0;
    padding: 8px 16px 12px;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color, #e1e8ed);
}

.feed-card-actions {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.feed-empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--text-muted);
    margin: 0;
}

/* Sağ sidebar - sol bar ile aynı yükseklik (100vh), Ara üstte, Neler oluyor ortada, copyright en altta */
.right-sidebar {
    display: flex !important;
    flex-direction: column;
    width: 350px;
    min-width: 350px;
    flex-shrink: 0;
    padding: 8px 0 24px;
    box-sizing: border-box;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
}

.right-sidebar-inner {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.right-sidebar-footer {
    margin-top: auto;
    flex-shrink: 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--border);
}
.right-sidebar-footer-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.right-sidebar-footer-copy {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.widget {
    background: #f7f9f9;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.widget-title {
    margin: 0;
    padding: 12px 16px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.widget-search {
    background: transparent;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.widget-search-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #eff3f4;
    border-radius: 9999px;
    padding: 12px 16px;
}

.widget-search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.widget-search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 15px;
    outline: none;
}

.widget-search-input::placeholder {
    color: var(--text-muted);
}

.widget-sayac {
    margin-bottom: 12px;
    padding: 12px;
}
.sayac-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.sayac-kutu {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    text-align: left;
}
.sayac-deger {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
.sayac-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.3;
}

/* Mobil: barın hemen altında 2’li yatay sayaç (sadece mobilde görünür) */
.sayac-mobile {
    display: none;
}
.sayac-mobile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.sayac-mobile-kutu {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    text-align: left;
}
.sayac-mobile-kutu .sayac-deger {
    font-size: 20px;
}
.sayac-mobile-kutu .sayac-label {
    font-size: 11px;
}

.widget-trends {
    margin-top: 0;
    margin-bottom: auto;
    min-height: 0;
    overflow-y: auto;
    flex-shrink: 1;
}
.widget-trends .widget-title {
    padding-bottom: 4px;
}

.trend-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.trend-item {
    padding: 12px 16px;
    transition: background .15s;
}

.trend-item:hover {
    background: #eff1f1;
}

.trend-meta {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.trend-tag {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.trend-tag:hover {
    text-decoration: underline;
}

.trend-count {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.widget-more {
    display: block;
    padding: 16px;
    font-size: 15px;
    color: var(--accent);
    text-decoration: none;
}

.widget-more:hover {
    text-decoration: underline;
}

.widget-hashtags .widget-title {
    padding-bottom: 4px;
}

.hashtag-list {
    list-style: none;
    margin: 0;
    padding: 12px 16px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hashtag-list a {
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
}

.hashtag-list a:hover {
    text-decoration: underline;
}

/* Profil - üstte (iç sayfa hizası) */
.main .profil-header {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 16px;
}
.main .tab-bar {
    padding-left: 16px;
    padding-right: 16px;
}
.main .grid-section {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 40px;
}

.profil-header {
    display: flex;
    gap: 30px;
    margin-bottom: 44px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

/* Minimal X/Instagram tarzı profil: logo + işletme adı + telefon */
.profil-header-minimal {
    gap: 20px;
    margin-bottom: 0;
    padding-bottom: 16px;
    align-items: center;
}

.profil-avatar-wrap {
    flex-shrink: 0;
}

.profil-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.profil-avatar-minimal {
    width: 80px;
    height: 80px;
}

.profil-avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-muted);
}

.profil-avatar-placeholder.profil-avatar-minimal {
    width: 80px;
    height: 80px;
    font-size: 28px;
}

.profil-info,
.profil-info-minimal {
    flex: 1;
    min-width: 0;
}

.profil-baslik {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
}

.profil-baslik-minimal {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
}

.profil-telefon {
    display: inline-block;
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: none;
}
.profil-telefon:hover {
    color: var(--primary);
    text-decoration: underline;
}

.profil-aciklama {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 15px;
    max-width: 400px;
}

.profil-link {
    font-size: 14px;
    font-weight: 500;
}

/* Tab bar - Gönderiler | Videolar | Kurtarılmış | Referanslar */
.tab-bar {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.tab-bar-profil {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
}

.tab-bar-profil .tab-btn {
    flex: 1;
    text-align: center;
    margin-right: 0;
    padding: 14px 8px;
    font-size: 15px;
}

.tab-count {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    opacity: 0.9;
}

.tab-btn {
    padding: 12px 0;
    margin-right: 40px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}


.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    color: var(--text);
    border-bottom-color: var(--text);
}

.tab-btn.active .tab-count {
    color: var(--text);
}

/* Mobil: profil tab bar kayar, minimal ve estetik */
@media (max-width: 768px) {
    .tab-bar-profil {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
        gap: 0;
        border-bottom: 1px solid var(--border);
    }
    .tab-bar-profil::-webkit-scrollbar {
        display: none;
    }
    .tab-bar-profil .tab-btn {
        flex: 0 0 auto;
        min-width: max-content;
        padding: 10px 14px;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        border-bottom: 2px solid transparent;
        margin-bottom: -1px;
    }
    .tab-bar-profil .tab-btn.active {
        border-bottom-color: var(--text);
        font-weight: 600;
    }
    .tab-bar-profil .tab-count {
        font-size: 11px;
        opacity: 0.85;
    }
}

.profil-placeholder-section {
    padding-top: 32px;
}

.profil-placeholder {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

/* Grid - 3 sütun */
.grid-section {
    display: none;
    padding-top: 20px;
}

.grid-section.active {
    display: block;
}

.grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    margin: 0;
    padding: 0;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-card);
    display: block;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 4px;
}

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

.grid-item-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 10px;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.6));
    opacity: 0;
    transition: opacity .2s;
}

.grid-item:hover .grid-item-caption {
    opacity: 1;
}

/* Video öğesi */
.grid-item-video-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-item-video-wrap img,
.grid-item-video-wrap .video-no-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-item-video-wrap .video-no-cover {
    background: #ffffff;
}

.grid-item-play {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.grid-item-play::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: 2px;
    margin-top: -10px;
    border: 10px solid transparent;
    border-left-color: #fff;
    border-width: 10px 0 10px 16px;
}

.grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    margin: 0;
}

/* Lightbox - tam ekran, butonlar sadece siyah alanda */
.lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 1000;
    display: none;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}

.lightbox[aria-hidden="false"] {
    display: flex;
}

/* Kapat: siyah alanın üst sağı (sidebar dışında) */
.lightbox-close {
    position: absolute;
    top: 16px;
    right: calc(360px + 16px);
    width: 44px;
    height: 44px;
    font-size: 26px;
    line-height: 1;
    color: #fff;
    background: rgba(255,255,255,.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.lightbox-close:hover {
    background: rgba(255,255,255,.25);
}

/* Önceki/Sonraki: sadece siyah alanda */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 28px;
    line-height: 1;
    color: #fff;
    background: rgba(255,255,255,.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: calc(360px + 20px); }
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,.3);
}

.lightbox-inner {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    background: #000;
}

.lightbox-media-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 60px 20px 40px;
}

.lightbox-swiper {
    width: 100%;
    height: 100%;
    min-height: 200px;
}
.lightbox-swiper .swiper-wrapper {
    align-items: center;
}
.lightbox-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}
.lightbox-swiper .lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.lightbox-img {
    max-width: 100%;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
/* Lightbox video: 1175×745 ebat içinde */
.lightbox-video-wrap {
    max-width: 1175px;
    max-height: 745px;
    width: 100%;
    aspect-ratio: 1175 / 745;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.lightbox-video-wrap .lightbox-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.lightbox-video {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.lightbox-sidebar {
    width: 360px;
    min-width: 360px;
    padding: 24px;
    background: #fff;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.lightbox-caption {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
}

@media (max-width: 768px) {
    .lightbox-inner {
        flex-direction: column;
    }
    .lightbox-close {
        right: 16px;
    }
    .lightbox-next {
        right: 16px;
    }
    .lightbox-media-wrap {
        padding: 56px 16px 16px;
    }
    .lightbox-sidebar {
        width: 100%;
        min-width: 0;
        max-height: 40vh;
    }
}

/* Responsive - sağ sidebar (Ara + Neler oluyor) HER ZAMAN görünsün, asla kaldırılmaz */
@media (max-width: 1024px) {
    .right-sidebar {
        display: block !important;
    }
    .main-feed {
        max-width: none;
        border-right: none;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }
    .right-sidebar {
        display: none !important;
    }
    /* Mobil: genel fontlar bir tık daha küçük */
    .page-title,
    .feed-title {
        font-size: 16px;
    }
    .feed-card-name {
        font-size: 12px;
    }
    .feed-card-username {
        font-size: 11px;
    }
    .feed-card-text {
        font-size: 13px;
    }
    .feed-card-bar,
    .feed-card-views,
    .feed-card-time-header {
        font-size: 11px;
    }
    .feed-card-views-count {
        font-size: 11px;
    }
    .widget-title {
        font-size: 16px;
    }
    .sayac-deger {
        font-size: 16px;
    }
    .sayac-label,
    .sayac-mobile-kutu .sayac-label {
        font-size: 9px;
    }
    .sayac-mobile-kutu .sayac-deger {
        font-size: 16px;
    }
    .profil-baslik {
        font-size: 18px;
    }
    .profil-aciklama,
    .profil-telefon {
        font-size: 12px;
    }
    .tab-btn {
        font-size: 12px;
    }
    .grid-item-caption {
        font-size: 11px;
    }
    .page-header .page-title,
    .feed-header .feed-title {
        font-size: 16px;
    }
    /* Mobil: barın hemen altında 2’li yatay sayaç */
    .sayac-mobile {
        display: block;
        padding: 12px 16px;
    }
    /* Mobil: sidebar görünen ekrana sığsın, alttaki 2 menü + toggle hep görünsün (100svh) */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 72px;
        min-width: 72px;
        height: 100vh;
        height: 100svh;
        min-height: 100svh;
        max-height: 100svh;
        z-index: 10;
        padding: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transform: translateZ(0);
        transition: width .25s ease, min-width .25s ease;
    }
    .page-wrap {
        margin-left: 72px;
        transition: margin-left .25s ease;
    }
    .sidebar-logo-text {
        display: none;
    }
    .sidebar-logo-short {
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: #000000;
        text-align: center;
    }
    .sidebar-logo {
        flex-shrink: 0;
        padding: 24px 4px 14px;
        text-align: center;
    }
    .sidebar-nav {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 8px;
        padding: 12px 0 4px;
    }
    .sidebar .sidebar-item span {
        display: none;
    }
    .sidebar .sidebar-item {
        justify-content: center;
        padding: 8px 10px;
        min-height: 38px;
        flex-shrink: 0;
    }
    .sidebar .sidebar-item .icon,
    .sidebar .sidebar-item .icon-instagram {
        width: 24px;
        height: 24px;
    }
    .sidebar .sidebar-item:hover,
    .sidebar .sidebar-item-footer:hover {
        background: transparent;
    }
    .sidebar .sidebar-item.active,
    .sidebar .sidebar-item-footer.active {
        background: transparent;
    }
    .sidebar-footer {
        flex-shrink: 0;
        padding-top: 8px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        margin-top: auto;
        border-top: none;
    }
    .sidebar-item-footer {
        padding: 10px;
        min-height: 40px;
    }
    .profil-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profil-aciklama {
        max-width: none;
    }
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 480px) {
    .right-sidebar {
        display: none !important;
    }
    .main .profil-header,
    .main .tab-bar,
    .main .grid-section {
        padding-left: 12px;
        padding-right: 12px;
    }
    .page-header,
    .page-content {
        padding-left: 12px;
        padding-right: 12px;
    }
    .profil-avatar,
    .profil-avatar-placeholder {
        width: 100px;
        height: 100px;
    }
    .profil-baslik {
        font-size: 22px;
    }
}

/* ========== Yönetici paneli (dashboard) ========== */
.body-dashboard .sidebar-dashboard .sidebar-logo-text { display: block; }
.body-dashboard .sidebar-dashboard .sidebar-logo-short { display: none; }

.dashboard-main { max-width: var(--max-content); margin: 0 auto; }
.dashboard-content { padding: 16px; }
.dashboard-panel { margin: 0; }
.dashboard-desc { color: var(--text-muted); margin: 0 0 20px; font-size: 14px; }
.dashboard-form-group { margin-bottom: 16px; }
.dashboard-profile-avatar-section { margin-bottom: 24px; }
.dashboard-profile-avatar-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.dashboard-profile-avatar-preview {
    width: 96px; height: 96px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 28px; overflow: hidden; flex-shrink: 0;
}
.dashboard-profile-avatar-preview .dashboard-profile-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dashboard-profile-avatar-placeholder { display: block; }
.dashboard-profile-avatar-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dashboard-profile-avatar-upload .dashboard-input-file { position: absolute; opacity: 0; width: 0; height: 0; }
.dashboard-profile-avatar-upload .form-submit-secondary { margin: 0; cursor: pointer; }
.form-submit-secondary { background: #f0f0f0; color: var(--text); }
.form-submit-secondary:hover { background: #e5e5e5; }
.dashboard-hint { font-size: 13px; color: var(--text-muted); margin-top: 8px; margin-bottom: 0; }
.dashboard-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; color: var(--text); }
.dashboard-input { width: 100%; max-width: 400px; }
.dashboard-muted { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }
.dashboard-note { font-size: 12px; color: var(--text-muted); margin-top: 20px; }
.dashboard-placeholder { color: var(--text-muted); }
.dashboard-checklist { list-style: none; margin: 0; padding: 0; }
.dashboard-checklist li { margin-bottom: 10px; }
.dashboard-checklist label { font-size: 14px; cursor: pointer; }
.dashboard-basarili { color: var(--success, #0a0); margin: 0 0 12px; font-size: 14px; }
.dashboard-hata { color: var(--error, #c00); margin: 0 0 12px; font-size: 14px; }
.dashboard-form-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dashboard-form-row .dashboard-label { margin-bottom: 0; }
.dashboard-table { width: 100%; max-width: 600px; border-collapse: collapse; margin-bottom: 16px; }
.dashboard-table th, .dashboard-table td { padding: 8px; text-align: left; border-bottom: 1px solid var(--border); }
.dashboard-list { list-style: none; margin: 0 0 16px; padding: 0; }
.dashboard-list-item { padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dashboard-list-item a { font-size: 13px; color: var(--accent); }
.dashboard-link { margin-left: 12px; font-size: 14px; color: var(--accent); }
.dashboard-sil { color: var(--error, #c00); margin-left: 8px; background: none; border: none; cursor: pointer; font-size: inherit; padding: 0; text-decoration: underline; }
.dashboard-sil:hover { opacity: 0.85; }
.dashboard-hr { border: none; border-top: 1px solid var(--border); margin: 24px 0 20px; }
.dashboard-subtitle { font-size: 16px; margin: 0 0 8px; }
.dashboard-sayac-ozet { margin-bottom: 12px; font-size: 14px; }
.dashboard-sayac-ozet p { margin: 4px 0; }
.dashboard-form-inline { display: inline-block; margin: 0; }
.dashboard-btn-secondary { background: #6b7280; }
.dashboard-btn-secondary:hover { background: #4b5563; }

/* Paylaşım barı (giriş yapmış kullanıcı – feed üstü) – minimal */
.paylasim-bar {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-page, #fafafa);
}
.paylasim-bar-inner { display: flex; gap: 10px; align-items: flex-start; }
.paylasim-bar-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--border); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px; flex-shrink: 0;
    overflow: hidden; text-decoration: none; color: inherit;
}
.paylasim-bar-avatar:hover { opacity: 0.85; }
.paylasim-bar-right { flex: 1; min-width: 0; overflow: visible; }
.paylasim-bar-input {
    width: 100%; border: none; outline: none;
    font-size: 15px; padding: 8px 0;
    resize: none; min-height: 40px;
    font-family: inherit; background: transparent;
}
.paylasim-bar-input:focus,
.paylasim-bar-input:focus-visible { outline: none; border: none; box-shadow: none; }
.paylasim-bar-input::placeholder { color: var(--text-muted); }

/* Önizleme alanı */
.paylasim-bar-preview { margin-top: 8px; margin-bottom: 8px; }
.paylasim-bar-preview-inner {
    display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 6px 10px; background: var(--bg-secondary, #f0f0f0); border-radius: 10px; border: 1px solid var(--border);
}
.paylasim-bar-preview-img,
.paylasim-bar-preview-video { max-width: 200px; max-height: 180px; border-radius: 8px; object-fit: contain; background: #000; }
.paylasim-bar-preview-video { max-height: 140px; }
.paylasim-bar-preview-remove { flex-shrink: 0; }

/* Tüm butonlar minimal padding, tek stil */
.paylasim-bar-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    padding: 5px 9px; border-radius: 9999px;
    font-weight: 500; font-size: 12px; cursor: pointer;
    border: 1px solid var(--border);
    background: #fff; color: var(--text-muted);
    transition: border-color .15s, background .15s, color .15s;
    box-sizing: border-box;
}
.paylasim-bar-btn:hover:not(:disabled) { border-color: var(--text-muted); color: var(--text); background: var(--bg-secondary, #f5f5f5); }
.paylasim-bar-btn:disabled { opacity: .5; cursor: not-allowed; }
.paylasim-bar-btn-submit { padding: 5px 9px; font-size: 12px; border-color: var(--accent); background: var(--accent); color: #fff; }
.paylasim-bar-btn-submit:hover:not(:disabled) { background: var(--accent-hover, #1a8cd8); border-color: var(--accent-hover); }
.paylasim-bar-btn-secondary { background: #fff; color: var(--text); }
.paylasim-bar-btn-secondary:hover:not(:disabled) { background: var(--bg-secondary); }
/* İkonlar: padding yok, hover’da arka plan yok – menüdeki gibi zoom */
.paylasim-bar-btn-icon { padding: 0; border: none; background: transparent; color: var(--text-muted); }
.paylasim-bar-btn-icon:hover { color: var(--accent); background: transparent; }
.paylasim-bar-btn-icon svg { width: 22px; height: 22px; flex-shrink: 0; stroke: currentColor; transition: transform .15s ease; }
.paylasim-bar-btn-icon:hover svg { transform: scale(1.08); }
.paylasim-bar-btn-cekilen .paylasim-icon-cekici { width: 22px; height: 22px; }
.paylasim-bar-btn-cekilen.is-active,
.paylasim-bar-btn-cekilen[aria-pressed="true"] { color: var(--accent); }
.paylasim-bar-btn-tip { cursor: pointer; margin: 0; padding: 5px 9px; }
.paylasim-bar-btn-tip input { position: absolute; opacity: 0; pointer-events: none; }
.paylasim-bar-btn-tip span { user-select: none; }
.paylasim-bar-btn-tip:has(input:not(:checked)) { background: #fff; color: var(--text-muted); }
.paylasim-bar-btn-tip:has(input:not(:checked)):hover { color: var(--text); background: var(--bg-secondary); }
.paylasim-bar-btn-tip:has(input:checked) { background: var(--accent); color: #fff; border-color: var(--accent); }
.paylasim-bar-btn-tip:has(input:checked):hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* Actions satırı: ikonlar barın en soluna, arada boşluk */
.paylasim-bar-actions {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px;
    margin-left: -46px; width: calc(100% + 46px);
}
.paylasim-bar-actions-left { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-right: auto; padding-left: 0; }
.paylasim-bar-actions-center { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: center; min-width: 0; flex-wrap: wrap; }
.paylasim-bar-actions-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.paylasim-bar-progress-wrap {
    display: flex; align-items: center; gap: 8px; margin-top: 10px;
    height: 8px; max-width: 200px; background: var(--border); border-radius: 4px; overflow: hidden;
}
.paylasim-bar-progress { height: 100%; background: var(--accent); transition: width .2s; }
.paylasim-bar-progress-text { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
/* Mobil: gönderi paylaş alanı tamamen minimal; başlık ve bar aşağıdaki kartlarla aynı hizada (16px) */
@media (max-width: 768px) {
    .feed-header,
    .paylasim-bar { padding-left: 16px; padding-right: 16px; }
    .paylasim-bar { padding-top: 6px; padding-bottom: 6px; border-bottom-width: 1px; }
    .paylasim-bar-inner { gap: 8px; }
    .paylasim-bar-avatar { width: 28px; height: 28px; font-size: 12px; }
    .paylasim-bar-input {
        min-height: 36px; padding: 6px 0; font-size: 14px;
    }
    .paylasim-bar-input::placeholder { font-size: 14px; }
    .paylasim-bar-preview { margin-top: 6px; margin-bottom: 6px; }
    .paylasim-bar-preview-inner { padding: 5px 8px; gap: 6px; border-radius: 8px; }
    .paylasim-bar-preview-img,
    .paylasim-bar-preview-video { max-width: 120px; max-height: 100px; }
    .paylasim-bar-preview-remove { padding: 5px 9px; font-size: 12px; }
    .paylasim-bar-actions {
        margin-top: 6px; gap: 6px;
        margin-left: 0; width: 100%;
        flex-direction: row; align-items: center; flex-wrap: wrap;
    }
    .paylasim-bar-actions { gap: 10px; }
    .paylasim-bar-actions-left { justify-content: flex-start; gap: 8px; }
    .paylasim-bar-actions-center { justify-content: center; gap: 6px; flex: 1; min-width: 0; }
    .paylasim-bar-actions-right { justify-content: flex-end; gap: 6px; }
    .paylasim-bar-btn,
    .paylasim-bar-btn-submit,
    .paylasim-bar-btn-tip { padding: 6px 8px; font-size: 11px; min-height: 38px; }
    .paylasim-bar-btn-tip span { font-size: 11px; }
    .paylasim-bar-btn-icon { min-height: 38px; min-width: 38px; justify-content: center; }
    .paylasim-bar-btn-icon svg { width: 22px; height: 22px; }
    .paylasim-bar-progress-wrap { margin-top: 6px; max-width: 120px; }
    .paylasim-bar-mesaj { margin-top: 6px; font-size: 12px; }
}

/* Kırpma editörü modal */
.paylasim-crop-backdrop {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; box-sizing: border-box;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.paylasim-crop-backdrop[aria-hidden="false"] { opacity: 1; visibility: visible; }
.paylasim-crop-modal {
    background: #fff; border-radius: 16px; max-width: 90vw; max-height: 90vh;
    display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.paylasim-crop-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.paylasim-crop-title { font-weight: 600; font-size: 16px; }
.paylasim-crop-close {
    width: 32px; height: 32px; border: none; background: none; cursor: pointer;
    font-size: 24px; line-height: 1; color: var(--text-muted); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; padding: 0;
}
.paylasim-crop-close:hover { background: #f0f0f0; color: var(--text); }
.paylasim-crop-body {
    padding: 16px; overflow: auto; min-height: 200px; max-height: 60vh;
    display: flex; align-items: center; justify-content: center;
}
.paylasim-crop-wrap {
    position: relative; display: inline-block; width: fit-content; max-width: 100%;
    cursor: crosshair; user-select: none; touch-action: none;
}
.paylasim-crop-wrap img#paylasim-crop-img { max-width: 100%; max-height: 50vh; display: block; vertical-align: top; }
.paylasim-crop-box {
    position: absolute; box-sizing: border-box;
    border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,0.5);
    left: 10%; top: 10%; width: 80%; height: 80%;
    cursor: move; pointer-events: auto;
}
.paylasim-crop-handle {
    position: absolute; width: 12px; height: 12px;
    background: #fff; border: 1px solid var(--accent); border-radius: 2px;
    pointer-events: auto; cursor: pointer;
}
.paylasim-crop-handle-n  { left: 50%; top: -6px;  margin-left: -6px; cursor: n-resize; }
.paylasim-crop-handle-s  { left: 50%; bottom: -6px; margin-left: -6px; cursor: s-resize; }
.paylasim-crop-handle-e  { right: -6px; top: 50%; margin-top: -6px; cursor: e-resize; }
.paylasim-crop-handle-w  { left: -6px; top: 50%; margin-top: -6px; cursor: w-resize; }
.paylasim-crop-handle-nw { left: -6px; top: -6px;  cursor: nw-resize; }
.paylasim-crop-handle-ne { right: -6px; top: -6px;  cursor: ne-resize; }
.paylasim-crop-handle-sw { left: -6px; bottom: -6px; cursor: sw-resize; }
.paylasim-crop-handle-se { right: -6px; bottom: -6px; cursor: se-resize; }
.paylasim-crop-actions {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 14px 18px; border-top: 1px solid var(--border);
}

/* ========== Minimal modal (onay) ve toast (bildirim) ========== */
.app-modal-backdrop {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; box-sizing: border-box;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.app-modal-backdrop[aria-hidden="false"] {
    opacity: 1; visibility: visible;
}
.app-modal-backdrop[hidden] { display: none !important; }
.app-modal {
    background: #fff; border-radius: 12px; padding: 24px;
    max-width: 360px; width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
}
.app-modal-message { margin: 0 0 20px; font-size: 15px; line-height: 1.45; color: var(--text); }
.app-modal-input-wrap { margin: 0 0 20px; }
.app-modal-textarea { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; resize: vertical; box-sizing: border-box; }
.app-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.app-modal-btn {
    padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 500;
    border: none; cursor: pointer; transition: background .15s;
}
.app-modal-cancel { background: #f0f0f0; color: var(--text); }
.app-modal-cancel:hover { background: #e5e5e5; }
.app-modal-confirm { background: var(--accent); color: #fff; }
.app-modal-confirm:hover { background: var(--accent-hover); }

.app-toast-container {
    position: fixed; top: 16px; right: 16px; z-index: 10000;
    display: flex; flex-direction: column; gap: 8px;
    pointer-events: none;
}
.app-toast {
    padding: 12px 18px; border-radius: 10px; font-size: 14px; font-weight: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    animation: app-toast-in .25s ease;
    pointer-events: auto;
}
@keyframes app-toast-in {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}
.app-toast-success { background: #0f766e; color: #fff; }
.app-toast-error { background: #b91c1c; color: #fff; }
.u-toast-trigger { display: none !important; }
