/* PC SİDEBAR STİLLERİ */
.sidebar {
    width: 80px;
    background: var(--bg-tertiary);
    height: 100vh;
    position: fixed;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 4px 0 12px var(--shadow-medium);
    border-right: 1px solid var(--border-sidebar);
}

.sidebar.expanded {
    width: 280px;
}

/* TOGGLE BUTON */
.toggle_sidebar {
    position: absolute;
    right: -14px;
    top: 24px;
    width: 28px;
    height: 28px;
    background: var(--bg-primary);
    border: 2px solid var(--bg-tertiary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px var(--shadow-medium);
}

.sidebar.expanded .toggle_sidebar {
    background: var(--accent);
    border-color: var(--accent-hover);
}

.toggle_sidebar::before {
    content: "›";
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.sidebar.expanded .toggle_sidebar::before {
    content: "‹";
    color: white;
}

/* NAVİGASYON BUTONLARI */
.nav_buttons_container {
    padding: 16px 8px;
    flex-grow: 1;
    overflow-y: auto;
}

.nav_button {
    width: 100%;
    height: 64px;
    margin: 4px 0;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    gap: 6px;
}

.nav_button:hover {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border-radius: 16px;
}

.nav_button.active {
    background: var(--accent);
    color: var(--text-primary);
}

.nav_button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
    transition: height 0.2s ease;
}

.nav_button.active::before {
    height: 80%;
}

.nav_button img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    filter: brightness(0.9);
    transition: all 0.2s ease;
}

.nav_button:hover img,
.nav_button.active img {
    filter: brightness(1);
}

.nav_label_under {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    transition: opacity 0.15s;
    pointer-events: none;
    user-select: none;
    opacity: 1;
    text-align: center;
    line-height: 1.2;
}

.nav_button_text {
    font-size: 15px;
    font-weight: 500;
    margin-left: 16px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s 0.1s ease;
    display: none;
}

/* EXPANDED STATE */
.sidebar.expanded .nav_button {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    height: 48px;
    padding: 0 16px;
    gap: 14px;
}

.sidebar.expanded .nav_label_under {
    opacity: 0;
    display: none;
}

.sidebar.expanded .nav_button_text {
    opacity: 1;
    display: inline;
}

/* KULLANICI PROFİL - NORMAL */
.user_profile_container {
    padding: 16px;
    background: var(--bg-profile);
    border-top: 1px solid var(--border-sidebar);
    margin-top: auto;
    transition: all 0.3s ease;
    position: relative;
}

/* KULLANICI PROFİL - TURBO */
.user_profile_container.turbo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ffd700 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user_profile_container.turbo:hover {
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.3);
    transform: translateY(-1px);
}

.user_profile_container.turbo:active {
    transform: translateY(0) scale(0.98);
}

.user_profile_container.turbo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.user_profile_container.turbo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
    animation: goldGlow 2s ease-in-out infinite alternate;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes goldGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
        opacity: 0.8;
    }

    100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
        opacity: 1;
    }
}

.profile_content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.profile_avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 2px 8px var(--shadow-medium);
    flex-shrink: 0;
    transition: all 0.3s ease;
    background-color: var(--bg-primary);
    background-image: url('../ui/icons/default-avatar.png');
    background-size: cover;
    background-position: center;
}

.user_profile_container.turbo .profile_avatar {
    border: 3px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.3);
    animation: avatarGlow 2s ease-in-out infinite alternate;
}

@keyframes avatarGlow {
    from {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }

    to {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.4);
        transform: scale(1.02);
    }
}

.profile_details {
    flex: 1;
    min-width: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar.expanded .profile_details {
    opacity: 1;
}

.profile_username {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user_profile_container.turbo .profile_username {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ffffff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.turbo_badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    color: #1a1a1a;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 3px 8px rgba(255, 215, 0, 0.4);
    animation: pulseTurbo 2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes pulseTurbo {
    0% {
        transform: scale(1);
        box-shadow: 0 3px 8px rgba(255, 215, 0, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 3px 8px rgba(255, 215, 0, 0.4);
    }
}

.profile_status {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease;
}

.profile_status:hover {
    background: rgba(255, 255, 255, 0.12);
}

.status_chevron {
    color: var(--text-muted);
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.15s ease;
}

.profile_status:hover .status_chevron {
    opacity: 1;
}

.status_dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 4px var(--shadow-medium);
    background: var(--status-online);
    flex-shrink: 0;
}

.status_dot.dot_idle {
    background: var(--status-idle);
}

.status_dot.dot_dnd {
    background: var(--status-dnd);
}

.status_dot.dot_offline {
    background: var(--status-offline);
}

.user_profile_container.turbo .status_dot {
    background: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.user_profile_container.turbo .status_dot.dot_idle {
    background: #f0b232;
    box-shadow: 0 0 10px rgba(240, 178, 50, 0.6);
}

.user_profile_container.turbo .status_dot.dot_dnd {
    background: #f23f43;
    box-shadow: 0 0 10px rgba(242, 63, 67, 0.6);
}

.user_profile_container.turbo .status_dot.dot_offline {
    background: #80848e;
    box-shadow: 0 0 10px rgba(128, 132, 142, 0.4);
}

/* Status Picker Popup */
.status_picker {
    position: fixed;
    width: 220px;
    background: var(--bg-floating);
    border: 1px solid var(--border-floating);
    border-radius: 8px;
    padding: 6px;
    z-index: 99999;
    box-shadow: 0 8px 24px var(--shadow-heavy), 0 0 0 1px rgba(255,255,255,0.05);
    animation: statusPickerIn 0.15s ease-out;
    display: none;
}

@keyframes statusPickerIn {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.status_picker_title {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 8px 4px;
}

.status_picker_option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.1s ease;
}

.status_picker_option:hover {
    background: rgba(88, 101, 242, 0.15);
}

.status_picker_option.active {
    background: rgba(88, 101, 242, 0.2);
}

.status_picker_dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status_picker_dot.dot_online {
    background: var(--status-online);
}

.status_picker_dot.dot_idle {
    background: var(--status-idle);
}

.status_picker_dot.dot_dnd {
    background: var(--status-dnd);
}

.status_picker_dot.dot_offline {
    background: var(--status-offline);
}

.status_picker_name {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
}

.status_text {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.user_profile_container.turbo .status_text {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.turbo_expiry {
    font-size: 10px;
    color: rgba(255, 215, 0, 0.9);
    font-weight: 600;
    margin-top: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 6px;
    display: inline-block;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* ===== KANAL BİLDİRİM BADGE STİLLERİ ===== */

/* Badge container - mention ve normal badge'leri yan yana gösterir */
.notification-badge-container {
    position: absolute;
    top: 2px;
    right: 4px;
    display: flex;
    flex-direction: row;
    gap: 3px;
    z-index: 10;
    align-items: center;
}

.notification-badge {
    position: relative;
    top: auto;
    right: auto;
    min-width: 16px;
    height: 16px;
    background: #5865f2;
    color: var(--badge-text);
    font-size: 11px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px var(--shadow-medium);
    z-index: 10;
    animation: badgeAppear 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--bg-tertiary);
    line-height: 1;
}

/* Mention badge (kırmızı) */
.notification-badge.mention {
    background: var(--danger);
    box-shadow: 0 2px 8px rgba(242, 63, 67, 0.4);
    animation: mentionPulse 0.5s ease-out, badgeAppear 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Badge animasyonları */
@keyframes badgeAppear {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes mentionPulse {
    0% {
        box-shadow: 0 2px 8px rgba(242, 63, 67, 0.4);
    }

    50% {
        box-shadow: 0 2px 12px rgba(242, 63, 67, 0.8), 0 0 0 3px rgba(242, 63, 67, 0.2);
    }

    100% {
        box-shadow: 0 2px 8px rgba(242, 63, 67, 0.4);
    }
}

/* Channel item container için relative positioning */
.channel_item {
    position: relative;
}

/* Kanal badge'leri için responsive tasarım */
@media (max-width: 768px) {
    .notification-badge-container {
        top: 0px;
        right: 2px;
        gap: 2px;
    }

    .notification-badge {
        min-width: 14px;
        height: 14px;
        font-size: 10px;
    }
}

/* SPOTIFY CONNECT BUTTON */
.spotify-connect-btn {
    width: 100%;
    padding: 8px 12px;
    margin-top: 12px;
    background: #1db954;
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: none !important;
    /* Sidebar kapalıyken tamamen gizle - !important ile inline style'ı ez */
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.sidebar.expanded .spotify-connect-btn {
    display: flex !important;
    /* Sidebar açıkken göster - !important ile inline style'ı ez */
}

.spotify-connect-btn:hover {
    background: #1ed760;
    transform: scale(1.02);
}

.spotify-connect-btn:active {
    transform: scale(0.98);
}

.spotify-connect-btn svg {
    flex-shrink: 0;
}

.spotify-connect-btn.connected {
    background: #1a1a1a;
    border: 2px solid #1db954;
}

.spotify-connect-btn.connected:hover {
    background: #252525;
}