/**
 * 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 - tam yükseklik, logo üstte / Kurumsal Bilgiler altta, ortada menü gerekirse kayar */
.sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    border-right: 1px solid var(--border);
    padding: 16px 14px 12px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh; /* Tarayıcı çubuğu değişince hareket etmesin */
    max-height: 100vh;
    max-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    overflow: hidden;
}

.sidebar-logo {
    display: block;
    flex-shrink: 0;
    padding: 0 16px 20px;
    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-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 16px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.sidebar-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-muted);
    border-radius: 9999px;
    transition: color .15s, background .15s;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
}
.sidebar-item:hover {
    color: var(--text);
    background: #f5f5f5;
    text-decoration: none;
}
.sidebar-item.active {
    color: var(--text);
    font-weight: 600;
}

.sidebar-item .icon,
.sidebar-item .icon-instagram {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.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: 13px;
    color: var(--text-muted);
}
.sidebar-item-footer:hover {
    color: var(--text);
}

/* 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;
}

/* 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;
}

@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-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;
}

.feed-card-avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.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 {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--text);
}

.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;
}

/* 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 .icon-heart {
    fill: none;
}

.feed-card-like.liked .icon-heart {
    fill: #ed4956;
    stroke: #ed4956;
}

.feed-card-spacer {
    flex: 1;
}

.feed-card-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 13px;
}
.feed-card-views .icon-views {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.feed-card-views-count {
    line-height: 1;
}

.feed-card-bar .feed-card-time {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* 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 - Neler oluyor + Ara (HER SAYFADA GÖRÜNSÜN, KALDIRILMAZ) */
.right-sidebar {
    display: block !important;
    width: 350px;
    min-width: 350px;
    flex-shrink: 0;
    padding: 8px 0 24px;
    overflow-y: auto;
    max-height: 100vh;
    position: sticky;
    top: 0;
}

.right-sidebar-inner {
    padding: 0 16px;
}

.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;
}

.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-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);
}

.profil-avatar-wrap {
    flex-shrink: 0;
}

.profil-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.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-info {
    flex: 1;
    min-width: 0;
}

.profil-baslik {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
}

.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 */
.tab-bar {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.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);
}

/* 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 */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox[aria-hidden="false"] {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 28px;
    line-height: 1;
    color: #fff;
    background: rgba(255,255,255,.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

/* 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) {
    .right-sidebar {
        display: block !important;
    }
    /* Mobil: tarayıcı alt sekmeleri / güvenli alan düşülüyor, en alttaki menü (Kurumsal Bilgiler) hep görünsün */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 72px;
        min-width: 72px;
        height: calc(100svh - 56px - env(safe-area-inset-bottom, 0px));
        height: calc(100vh - 56px - env(safe-area-inset-bottom, 0px));
        max-height: none;
        z-index: 10;
    }
    .page-wrap {
        margin-left: 72px;
    }
    .sidebar-logo-text {
        display: none;
    }
    .sidebar-logo-short {
        display: block;
        font-size: 13px;
        font-weight: 700;
        color: #000000;
        text-align: center;
    }
    .sidebar .sidebar-item span {
        display: none;
    }
    .sidebar .sidebar-item {
        justify-content: center;
        padding: 12px;
    }
    .sidebar-logo {
        padding: 0 8px 12px;
        text-align: center;
    }
    .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: block !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;
    }
}
