/* ============================================
   Profil Butonu & Açılır Menü Stilleri
   ============================================ */

/* Header + sidebar ortak buton */
body .fanchaty-profile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: linear-gradient(135deg, #1e1f24, #121318);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}
body .fanchaty-profile-toggle .label {
    color: #ffffff;
}
.fanchaty-profile-toggle .avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8bbf, #ff6c9a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #101016;
}
.fanchaty-profile-toggle .chevron {
    font-size: 10px;
    opacity: 0.7;
}
.fanchaty-profile-toggle:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}
.fanchaty-profile-toggle:active {
    background: #070708;
}

/* Flyout panel (masaüstü + mobil header) */
.fanchaty-profile-panel--flyout {
    position: absolute;
    top: calc(100% + 3px);
    right: 0;
    min-width: 210px;
}

/* Panel genel stili */
.fanchaty-profile-panel {
    background: #0b0c10;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
}
.fanchaty-profile-panel.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.fanchaty-profile-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #f6f6f8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}
.fanchaty-profile-panel a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f6f6f8;
}
.fanchaty-profile-panel a.logout {
    color: #ff6d6d;
}

/* Sidebar içindeki profil satırı */
.fanchaty-sidebar-item--profile {
    display: flex;
    align-items: center;
    padding: 0;
    margin-bottom: 8px;
    border: none;
    background: transparent;
}
.fanchaty-sidebar-item--profile .fanchaty-profile-toggle {
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    transition: background 0.2s ease, border 0.2s ease;
}
.fanchaty-sidebar-item--profile .fanchaty-profile-toggle:hover,
.fanchaty-sidebar-item--profile .fanchaty-profile-toggle:active,
.fanchaty-sidebar-item--profile .fanchaty-profile-toggle:focus-visible {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    outline: none;
    outline-offset: 0;
}

/* Sidebar paneli (menü aşağı iner) */
.fanchaty-profile-panel--inline {
    position: static;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
    transform: none;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.2s ease, margin 0.2s ease;
}
.fanchaty-profile-panel--inline.open {
    max-height: 250px;
    padding: 8px 0;
    margin: 8px 0 10px;
    width: 100%;
    box-sizing: border-box;
    opacity: 1;
    pointer-events: auto;
}
.fanchaty-profile-panel--inline a {
    padding: 10px 12px;
    border-radius: 10px;
}