/* ==========================================================================
   Flanör — Chat header bildirim çanı
   Sağ üst sabit, dropdown peek
   ========================================================================== */

.flanor-bell {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 9990;
}

.flanor-bell-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2B2D31;
    border: 1px solid #3F4147;
    color: #DBDEE1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.flanor-bell-btn:hover {
    transform: translateY(-1px);
    background: #34373D;
    border-color: #5865F2;
    color: #FFFFFF;
}

.flanor-bell.has-unread .flanor-bell-btn {
    border-color: #5865F2;
    color: #FFFFFF;
    animation: flanor-bell-pulse 2.4s ease-in-out infinite;
}

@keyframes flanor-bell-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.45); }
    50%      { box-shadow: 0 0 0 6px rgba(88, 101, 242, 0); }
}

.flanor-bell-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, #F23F42, #B92C2F);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1E1F22;
    line-height: 1;
    letter-spacing: 0.02em;
}

/* Dropdown */
.flanor-bell-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 340px;
    max-width: calc(100vw - 24px);
    background: #1E1F22;
    border: 1px solid #3F4147;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: flanor-bell-slide 0.2s ease;
}

@keyframes flanor-bell-slide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.flanor-bell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #2B2D31;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
}

.flanor-bell-header a {
    color: #5865F2;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.flanor-bell-header a:hover {
    text-decoration: underline;
}

.flanor-bell-list {
    max-height: 360px;
    overflow-y: auto;
    padding: 4px 0;
}

.flanor-bell-empty {
    padding: 28px 18px;
    text-align: center;
    color: #80848E;
    font-size: 13px;
}

.flanor-bell-item {
    display: flex;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid #2B2D31;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
    align-items: flex-start;
}

.flanor-bell-item:last-child {
    border-bottom: none;
}

.flanor-bell-item:hover {
    background: #2B2D31;
}

.flanor-bell-item-unread {
    background: linear-gradient(90deg, rgba(88, 101, 242, 0.08), transparent 60%);
    border-left: 3px solid #5865F2;
    padding-left: 15px;
}

.flanor-bell-item-emoji {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #2B2D31;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.flanor-bell-item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
}

.flanor-bell-item-title {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
}

.flanor-bell-item-body {
    color: #B5BAC1;
    font-size: 12px;
    word-break: break-word;
}

.flanor-bell-item-time {
    color: #80848E;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .flanor-bell {
        top: 10px;
        right: 12px;
    }
    .flanor-bell-btn {
        width: 36px;
        height: 36px;
    }
    .flanor-bell-dropdown {
        width: calc(100vw - 24px);
        right: -2px;
    }
}
