/* Notifications Page Styles */
.notifications-page-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
    padding-bottom: 70px; /* Space for bottom navigation */
}

/* Dark Mode Styles */
@media (prefers-color-scheme: dark) {
    .notifications-page-container {
        background-color: #101010;
    }
    
    /* Notifications Header */
    .notifications-header {
        background-color: rgba(16, 16, 16, 0.7);
        border-bottom-color: rgba(56, 68, 77, 0.7);
    }
    
    .notifications-header h2 {
        color: #e7e9ea;
    }
    
    .notifications-settings {
        color: #1877F2;
    }
    
    .notifications-settings:hover {
        background-color: rgba(24, 119, 242, 0.1);
    }
    
    /* Notifications Tabs */
    .notifications-tabs {
        border-bottom-color: #2f3336;
        background-color: #2d2d2d;
    }
    
    .notifications-tab {
        color: #888;
    }
    
    .notifications-tab.active {
        color: #fff;
        background-color: #1877F2;
    }
    
    /* Notifications Content */
    .no-notifications-message h3 {
        color: #e7e9ea;
    }
    
    .no-notifications-message p {
        color: #71767b;
    }
    
    /* Who to Follow Section */
    .notifications-who-to-follow {
        border-top-color: #2f3336;
    }
    
    .who-to-follow-title {
        color: #e7e9ea;
    }
    
    /* Who to Follow Items */
    .who-to-follow-item {
        border-bottom-color: #2f3336;
    }
    
    .follow-avatar {
        background-color: #2f3336;
        border-color: #2f3336;
    }
    
    .follow-avatar i {
        color: #8b98a5;
    }
    
    .follow-name {
        color: #e7e9ea;
    }
    
    .follow-handle {
        color: #71767b;
    }
    
    /* Follow Button - Matching Search Page */
    .follow-btn {
        background-color: #1877F2;
        color: white;
        border: none;
        border-radius: 4px;
        padding: 6px 16px;
        font-weight: 600;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        flex-shrink: 0;
        min-width: 76px;
        text-align: center;
    }
    
    .follow-btn:hover {
        background-color: #166fe5;
        transform: translateY(-1px);
    }
    
    .follow-btn.following {
        background-color: #2f3336;
        color: #e7e9ea;
        border: 1px solid #536471;
    }
    
    .follow-btn.following:hover {
        background-color: #3d444b;
        border-color: #6e767d;
    }
    
    /* Notification Items */
    .notification-item.unread {
        background-color: rgba(24, 119, 242, 0.05);
    }
    
    .notification-item {
        border-bottom-color: #2f3336;
    }
    
    .notification-item:hover {
        background-color: #1a1a1a;
    }
    
    .notification-avatar i {
        background-color: #2f3336;
        color: #8b98a5;
    }
    
    .notification-actor {
        color: #e7e9ea;
    }
    
    .notification-text {
        color: #e7e9ea;
    }
    
    .notification-time {
        color: #71767b;
    }
    
    .notification-icon {
        color: #71767b;
    }
    
    /* Show More Button */
    .show-more-btn {
        color: #1877F2;
    }
    
    .error-message, .no-notifications {
        color: #71767b;
    }
    
    .error-message {
        color: #f91880;
    }
}

/* Notifications Header */
.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(230, 236, 240, 0.7); /* softer border */
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.7); /* semi-transparent */
    backdrop-filter: blur(6px); /* subtle blur */
    z-index: 100;
}

.notifications-header h2 {
    font-size: 19px;
    font-weight: 800;
    color: #0f1419;
}

.notifications-settings {
    color: #1d9bf0;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.notifications-settings:hover {
    background-color: #e8f5fe;
}

/* Notifications Tabs - UPDATED TO MATCH HOME PAGE STYLE */
.notifications-tabs {
    display: flex;
    background-color: #f0f2f5;
    border-radius: 20px;
    margin: 8px 16px;
    padding: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border-bottom: none;
}

.notifications-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-weight: bold;
    color: #657786;
    position: relative;
    font-size: 15px;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.notifications-tab.active {
    color: #fff;
    background-color: #1877F2;
    box-shadow: 0 1px 3px rgba(24, 119, 242, 0.4);
}

.notifications-tab.active::after {
    display: none;
}

/* Notifications Content */
.notifications-content {
    min-height: 400px;
}

/* No Notifications Message */
.no-notifications-message {
    padding: 40px 20px;
    text-align: center;
    color: #657786;
}

.no-notifications-message h3 {
    font-size: 19px;
    font-weight: 800;
    color: #0f1419;
    margin-bottom: 8px;
}

.no-notifications-message p {
    font-size: 14px;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* Who to Follow in Notifications */
.notifications-who-to-follow {
    padding: 16px;
    border-top: 1px solid #e6ecf0;
}

.who-to-follow-title {
    font-size: 19px;
    font-weight: 800;
    color: #0f1419;
    margin-bottom: 16px;
}

/* Who to Follow Items */
.who-to-follow-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e6ecf0;
}

.who-to-follow-item:last-child {
    border-bottom: none;
}

.follow-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ccd6dd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.follow-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.follow-avatar i {
    font-size: 20px;
    color: white;
}

.follow-info {
    flex-grow: 1;
}

.follow-name {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #0f1419;
    margin-bottom: 2px;
}

.follow-handle {
    font-size: 14px;
    color: #657786;
}



/* Show More */
.show-more-container {
    padding: 16px 0;
}

.show-more-btn {
    color: #1d9bf0;
    background: none;
    border: none;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
}

.show-more-btn:hover {
    text-decoration: underline;
}

/* Loading and Error States */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-message, .no-notifications {
    text-align: center;
    color: #657786;
    padding: 40px 20px;
}

.error-message {
    color: #e0245e;
}

/* Add to your notifications.css or a relevant CSS file */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    display: none;
}

.nav-item {
    position: relative;
}

.notification-item.unread {
    background-color: #f0f8ff;
}

.notification-item {
    display: flex;
    padding: 12px 16px;
    border-bottom: 1px solid #e1e8ed;
    cursor: pointer;
}

.notification-item:hover {
    background-color: #f5f8fa;
}

.notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-avatar i {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e1e8ed;
    color: #657786;
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-grow: 1;
}

.notification-info {
    flex-grow: 1;
}

.notification-actor {
    font-weight: bold;
    margin-right: 4px;
}

.notification-time {
    color: #657786;
    font-size: 13px;
    margin-left: 4px;
}

.notification-icon {
    color: #657786;
    margin-left: 8px;
}

.notification-icon .fa-heart {
    color: #e0245e;
}

.notification-icon .fa-comment {
    color: #1da1f2;
}

.notification-icon .fa-retweet {
    color: #17bf63;
}

.notification-icon .fa-user-plus {
    color: #794bc4;
}

.notification-icon .fa-at {
    color: #ffad1f;
}

.notification-icon .fa-chart-pie {
    color: #f45d22;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    
}

.profile-icon-container {
    display: flex;
    align-items: center;
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.profile-icon.text-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    background-color: #1877F2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
}


/* Dark Mode - Header Only */
@media (prefers-color-scheme: dark) {
    .notifications-header {
        background-color: rgba(16, 16, 16, 0.7);
        border-bottom-color: rgba(56, 68, 77, 0.7);
    }
    
    .notifications-header h2 {
        color: #e7e9ea;
    }
    
    .notifications-settings {
        color: #1877F2;
    }
    
    .notifications-settings:hover {
        background-color: rgba(24, 119, 242, 0.1);
    }
}


/* Dark Mode - Tabs and Notifications Only */
@media (prefers-color-scheme: dark) {
    /* Tabs */
    .notifications-tabs {
        border-bottom-color: #2f3336;
        background-color: #2d2d2d;
    }
    
    .notifications-tab {
        color: #888;
    }
    
    .notifications-tab.active {
        color: #fff;
        background-color: #1877F2;
    }
    
    /* Notification Items */
    .notification-item.unread {
        background-color: rgba(24, 119, 242, 0.05);
    }
    
    .notification-item {
        border-bottom-color: #2f3336;
    }
    
    .notification-item:hover {
        background-color: #1a1a1a;
    }
    
    .notification-avatar i {
        background-color: #2f3336;
        color: #8b98a5;
    }
    
    .notification-actor {
        color: #e7e9ea;
    }
    
    .notification-text {
        color: #e7e9ea;
    }
    
    .notification-time {
        color: #71767b;
    }
    
    .notification-icon {
        color: #71767b;
    }
}


/* Dark Mode - Suggestions Header, Avatar, Name and Username Only */
@media (prefers-color-scheme: dark) {
    /* Suggestions Header */
    .who-to-follow-title {
        color: #e7e9ea;
    }
    
    /* Avatar */
    .follow-avatar {
        background-color: #2f3336;
        border-color: #2f3336;
    }
    
    .follow-avatar i {
        color: #8b98a5;
    }
    
    /* Name */
    .follow-name {
        color: #e7e9ea;
    }
    
    /* Username */
    .follow-handle {
        color: #71767b;
    }
}


/* Dark Mode - Search Results User Name and Username */
@media (prefers-color-scheme: dark) {
    .search-person-name {
        color: #e7e9ea;
    }
    
    .search-person-username {
        color: #71767b;
    }
}

/* Dark Mode - Suggestions Underline for Each Account */
@media (prefers-color-scheme: dark) {
    .who-to-follow-item {
        border-bottom-color: #2f3336;
    }
}

