/* Notification Bell and Panel Styles */

.notification-bell-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
}

.notification-bell-btn {
    position: relative;
    background: var(--primary-color, #ff3b5c);
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgb(13, 13, 13, 0.4);
    transition: all 0.3s ease;
}

.notification-bell-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(13, 13, 13, 0.4);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff0000;
    color: #FFFFFF;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    border: 2px solid #FFFFFF;
}

.notification-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    min-height: 600px;
    max-height: 1000px;
    background: var(--bg-secondary, #1a1a1a);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color, #333);
}

.notification-panel.active {
    display: flex;
}

/* Tabs */
.notification-tabs {
    display: flex;
    background: var(--bg-primary, #0d0d0d);
    border-bottom: 1px solid var(--border-color, #333);
}

.notification-tab {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary, #888);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.notification-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notification-tab.active {
    color: var(--primary-color, #ff3b5c);
    background: rgba(255, 59, 92, 0.1);
}

.notification-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color, #ff3b5c);
}

.tab-badge {
    display: inline-block;
    background: var(--primary-color, #ff3b5c);
    color: #0D0D0D;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

.tab-content {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.tab-content.active {
    display: flex;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #333);
    background: var(--bg-primary, #0d0d0d);
}

.notification-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mark-all-read-btn {
    background: transparent;
    border: none;
    color: var(--primary-color, #ff3b5c);
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
    transition: opacity 0.3s;
}

.mark-all-read-btn:hover {
    opacity: 0.7;
}

.notification-list {
    overflow-y: auto;
    max-height: 1000px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color, #ff3b5c) var(--bg-primary, #0d0d0d);
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: var(--bg-primary, #0d0d0d);
}

.notification-list::-webkit-scrollbar-thumb {
    background: var(--primary-color, #ff3b5c);
    border-radius: 3px;
}

.notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #333);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notification-item.unread {
    background: rgba(255, 59, 92, 0.1);
    border-left: 3px solid var(--primary-color, #ff3b5c);
}

.notif-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notif-icon-container {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.notif-avatar {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    overflow: hidden;
}

.notif-avatar img {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary, #1a1a1a);
}

.online-indicator.online {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.online-indicator.offline {
    background: #6b7280;
}

.notif-text {
    flex: 1;
}

.notif-text p {
    margin: 0 0 4px 0;
    font-size: 14px;
    line-height: 1.4;
}

.notif-content-link {
    color: var(--primary-color, #ff3b5c);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.notif-content-link:hover {
    border-bottom-color: var(--primary-color, #ff3b5c);
}

.notif-content-title {
    display: block;
    font-size: 12px;
    color: var(--text-secondary, #888);
    font-style: italic;
    margin-top: 4px;
}

.notif-parent-context {
    display: block;
    font-size: 11px;
    color: var(--text-secondary, #666);
    margin-top: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border-left: 2px solid rgba(139, 92, 246, 0.5);
}

.notif-time {
    font-size: 12px;
    color: var(--text-secondary, #888);
}

.notif-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.notif-action-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.notif-action-btn.follow-back-btn {
    background: var(--primary-color, #ff3b5c);
    color: #0D0D0D;
}

.notif-action-btn.follow-back-btn:hover {
    background: var(--secondary-color, #ff1744);
    transform: translateY(-1px);
}

.notif-action-btn.following {
    background: transparent;
    color: var(--text-secondary, #888);
    border: 1px solid var(--border-color, #333);
    cursor: default;
}

.notif-action-btn.dm-btn {
    background: var(--accent-color, #4f46e5);
    color: #FFFFFF;
}

.notif-action-btn.dm-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

.empty-notifications {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary, #888);
}

.empty-notifications i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-notifications p {
    margin: 0;
    font-size: 14px;
}

/* Message Conversation Items */
.message-conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color, #333);
    cursor: pointer;
    transition: background 0.2s;
    max-height: 600px;
}

.message-conversation-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.conversation-content {
    flex: 1;
    min-width: 0;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.conversation-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary, #fff);
}

.conversation-time {
    font-size: 11px;
    color: var(--text-secondary, #888);
}

.conversation-preview {
    font-size: 13px;
    color: var(--text-secondary, #aaa);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-unread-badge {
    background: var(--primary-color, #ff3b5c);
    color: #0D0D0D;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .notification-bell-float {
        bottom: 20px;
        right: 15px;
    }

    .notification-panel {
        width: calc(100% - 30px);
        max-width: 380px;
        bottom: 80px;
        right: -10px;
    }

    .notification-bell-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .notification-panel {
        width: calc(100% - 20px);
        right: -5px;
    }
}

/* Messages Section Headers */
.messages-section {
    margin-bottom: 8px;
}

.section-title {
    padding: 12px 20px 8px;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #888);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-primary, #0d0d0d);
}

/* Mutual Follow Items */
.mutual-follow-item {
    position: relative;
}

.start-chat-icon {
    color: var(--primary-color, #ff3b5c);
    font-size: 18px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.mutual-follow-item:hover .start-chat-icon {
    opacity: 1;
}

/* Message Composer */
.message-composer-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-secondary, #1a1a1a);
}

.composer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #333);
    background: var(--bg-primary, #0d0d0d);
}

.back-btn {
    background: transparent;
    border: none;
    color: var(--text-primary, #fff);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.composer-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.composer-username {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary, #fff);
}

.composer-status {
    font-size: 11px;
    color: var(--text-secondary, #888);
}

.composer-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-full-chat-btn {
    color: var(--text-secondary, #888);
    font-size: 16px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
    text-decoration: none;
}

.view-full-chat-btn:hover {
    color: var(--primary-color, #ff3b5c);
    background: rgba(255, 255, 255, 0.05);
}

.close-composer-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary, #888);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.close-composer-btn:hover {
    color: var(--text-primary, #fff);
    background: rgba(255, 255, 255, 0.1);
}

/* Composer Messages Area */
.composer-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: var(--bg-secondary, #1a1a1a);
}

.loading-messages {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-secondary, #888);
    font-size: 14px;
    gap: 10px;
}

.empty-conversation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-secondary, #888);
    text-align: center;
}

.empty-conversation i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-conversation p {
    margin: 0;
    font-size: 14px;
}

/* Chat Messages */
.chat-message {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.chat-message.mine {
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.msg-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 12px;
    word-wrap: break-word;
}

.chat-message.theirs .msg-bubble {
    background: var(--bg-primary, #0d0d0d);
    border: 1px solid var(--border-color, #333);
}

.chat-message.mine .msg-bubble {
    background: var(--primary-color, #ff3b5c);
    color: #0D0D0D;
}

.msg-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.msg-time {
    font-size: 11px;
    opacity: 0.7;
}

.chat-message.mine .msg-time {
    text-align: right;
}

/* Composer Input Area */
.composer-input-area {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color, #333);
    background: var(--bg-primary, #0d0d0d);
}

#quick-message-input {
    flex: 1;
    background: var(--bg-secondary, #1a1a1a);
    border: 1px solid var(--border-color, #333);
    border-radius: 20px;
    padding: 10px 16px;
    color: var(--text-primary, #fff);
    font-size: 14px;
    font-family: inherit;
    resize: none;
    max-height: 100px;
    transition: border-color 0.2s;
    line-height: 1.4;
}

#quick-message-input:focus {
    outline: none;
    border-color: var(--primary-color, #ff3b5c);
}

#quick-message-input::placeholder {
    color: var(--text-secondary, #666);
}

.composer-input-area .send-message-btn {
    background: var(--primary-color, #ff3b5c);
    color: #0D0D0D;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.composer-input-area .send-message-btn:hover:not(:disabled) {
    background: var(--primary-hover, #bdbdbd);
    transform: scale(1.05);
}

.composer-input-area .send-message-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.composer-input-area .send-message-btn i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.empty-notifications small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary, #666);
}
