/* =====================================================
   RadyoSever — Sol Menü: Kurumsal açılır menü + ek öğeler
   Mevcut koyu tema ile uyumlu; main.css üzerine ekleme.
===================================================== */

/* Sidebar içeriği uzarsa scroll yapılabilsin; alt tema/pin butonu
   sabit kalsın, menü onların altında kaybolmasın. */
.rs-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.rs-sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.rs-sidebar-nav::-webkit-scrollbar { width: 6px; }
.rs-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 6px;
}
.rs-sidebar-bottom { flex-shrink: 0; }

/* ── Kurumsal toggle butonu — nav-link ile aynı görünüm ── */
.rs-corp-toggle {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.rs-corp-caret {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    transition: transform 0.25s ease;
    opacity: 0.7;
}
.rs-nav-corporate.rs-corp-open > .rs-corp-toggle .rs-corp-caret {
    transform: rotate(180deg);
}

/* ── Açılır alt menü ── */
.rs-corp-sub {
    list-style: none;
    margin: 4px 0 4px 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
}
.rs-nav-corporate.rs-corp-open > .rs-corp-sub {
    max-height: 420px;
    opacity: 1;
}
.rs-corp-sub li { margin: 0; }
.rs-corp-sub li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px 9px 30px;       /* girintili */
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.18s ease, color 0.18s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rs-corp-sub-icon {
    display: inline-flex;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    opacity: 0.8;
}
.rs-corp-sub-icon svg { width: 16px; height: 16px; }

.rs-corp-sub li a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.rs-corp-sub li.active a {
    color: var(--rs-primary, #7c3aed);
    background: rgba(124, 58, 237, 0.12);
    font-weight: 600;
}

/* Aktif sayfa Kurumsal altındaysa üst başlık da vurgulansın */
.rs-nav-corporate.active > .rs-corp-toggle .rs-nav-label {
    color: var(--rs-primary, #7c3aed);
}

/* ── Light mode uyumu ── */
[data-theme="light"] .rs-corp-sub li a { color: rgba(0, 0, 0, 0.6); }
[data-theme="light"] .rs-corp-sub li a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #111;
}
[data-theme="light"] .rs-corp-sub li.active a {
    color: var(--rs-primary, #7c3aed);
    background: rgba(124, 58, 237, 0.1);
}
[data-theme="light"] .rs-sidebar-nav {
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}
[data-theme="light"] .rs-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

/* ── Daraltılmış (icon-only) sidebar: caret ve alt menü gizlensin,
      ikonlar bozulmasın ── */
.rs-sidebar.rs-collapsed .rs-corp-caret,
body.rs-sidebar-collapsed .rs-corp-caret { display: none; }
.rs-sidebar.rs-collapsed .rs-corp-sub,
body.rs-sidebar-collapsed .rs-corp-sub { display: none; }

/* ── Mobil: alt menü yazıları kaybolmasın, dokunma alanı yeterli ── */
@media (max-width: 1024px) {
    .rs-corp-sub li a { padding: 11px 16px 11px 30px; font-size: 14px; }
    .rs-corp-sub-icon { width: 18px; height: 18px; }
    .rs-corp-sub-icon svg { width: 18px; height: 18px; }
}

/* ── Footer disclaimer (yayın sağlayıcı sorumluluk notu) ── */
.rs-footer-disclaimer {
    margin: 10px 0 0;
    padding-top: 12px;
    font-size: 12px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .rs-footer-disclaimer {
    color: rgba(0, 0, 0, 0.45);
    border-top-color: rgba(0, 0, 0, 0.08);
}
