/* X (Twitter) inspired mobile notifications styling */
body.mobile-notifications-view .main-content {
    background: var(--bg-primary);
    min-height: 100vh;
}

body.mobile-notifications-view .topic-header {
    background: rgba(10, 12, 10, 0.85); /* var(--bg-primary) with transparency */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.notif-mobile-container {
    padding: 0 !important; /* Override container padding */
}

.notif-mobile-item {
    display: flex;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 16px;
    background: var(--bg-primary);
    cursor: pointer;
    transition: background-color 0.2s ease;
    align-items: flex-start;
    position: relative;
}

.notif-mobile-item:active {
    background: var(--bg-secondary);
}

.notif-mobile-item.unread {
    background: rgba(29, 155, 240, 0.05); /* Slight blue tint for unread (X style) */
}

/* Avatar Wrap and Icon Badges */
.notif-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.notif-avatar-wrap img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-subtle);
}

.notif-icon-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Colors matching X */
.notif-icon-badge-reply, .notif-icon-badge-mention, .notif-icon-badge-quote {
    background: #1d9bf0; /* Twitter blue */
}
.notif-icon-badge-clan-join, .notif-icon-badge-clan-accepted {
    background: #00ba7c; /* Green */
}
.notif-icon-badge-clan-rejected, .notif-icon-badge-system {
    background: #f4212e; /* Red/Action */
}

/* Content */
.notif-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.notif-body-text {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: break-word;
}

.notif-body-text strong {
    font-weight: 700;
    color: var(--text-primary);
}

.notif-topic-title {
    color: var(--text-secondary);
    font-style: italic;
}

.notif-body-time {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Unread indicator */
.notif-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1d9bf0;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Hide desktop elements if needed when active */
body.mobile-notifications-view .topic-header-row .topic-title {
    font-size: 20px;
    font-weight: 700;
    flex: 1;
    text-align: center;
    margin-right: 24px; /* balance out the back button */
}

body.mobile-notifications-view .topic-back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

body.mobile-notifications-view .topic-back-btn:active {
    background-color: var(--bg-secondary);
}
