/* ===== NOTIFICATIONS SYSTEM ===== */

/* Main Container */
#notifications-content {
    background: #101010;
    position: fixed;
    top: 0;
    left: 225px;
    right: 0;
    bottom: 90px;
    display: none;
    overflow: hidden;
}

#notifications-content.active {
    display: flex;
}

/* Two Panel Layout */
.notif-left-panel {
    width: 430px;
    min-width: 430px;
    background: #101010;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
}

.notif-detail-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #101010;
    min-width: 0;
    max-width: 1000px;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-right: 1px solid #34d399;
}

/* Left Panel Content */
.notif-panel-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.notif-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    position: relative;
}

.notif-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Notification Tabs */
.notif-tabs {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.notif-tab {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.notif-tab:hover {
    color: #fff;
    background: rgba(16, 185, 129, 0.1);
}

.notif-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.notif-tab[data-filter="unread"].active {
    background: rgba(16, 185, 129, 0.2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #fff;
}

/* Notifications List */
.notifications-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* Clear Feed Button */
.clear-feed-btn {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.clear-feed-btn:hover {
    background: rgba(255, 71, 87, 0.25);
    color: #fff;
}

.clear-feed-btn.hidden {
    display: none !important;
}

/* Empty State */
.notif-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #fff;
    text-align: center;
    gap: 12px;
    flex: 1;
}

.notif-empty-state svg {
    color: #fff;
    opacity: 0.4;
}

.notif-empty-state p {
    margin: 0;
    font-size: 13px;
}

/* Notification Items */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
}

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

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

.notification-item.unread {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
    border-left: 3px solid #10b981;
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.notification-icon.like { background: rgba(233, 30, 99, 0.15); }
.notification-icon.comment { background: rgba(16, 185, 129, 0.15); }
.notification-icon.save { background: rgba(255, 193, 7, 0.15); }
.notification-icon.share { background: rgba(33, 150, 243, 0.15); }
.notification-icon.download { background: rgba(156, 39, 176, 0.15); }
.notification-icon.follow { background: rgba(103, 58, 183, 0.15); }
.notification-icon.room-invite { background: rgba(0, 188, 212, 0.15); }

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

.notification-text {
    display: block;
    font-size: 13px;
    color: #fff;
    line-height: 1.4;
}

.notification-text strong {
    color: #fff;
    font-weight: 600;
}

.notification-time {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

/* Clickable username in notifications */
.notif-username {
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s ease;
}

.notif-username:hover {
    color: #34d399;
    text-decoration: underline;
}

/* ===== DETAIL VIEWS ===== */

.notif-detail-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.notif-detail-view.hidden {
    display: none;
}

/* Detail Header (shared) */
.detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.detail-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.detail-back-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===== FOLLOW DETAIL VIEW ===== */

.follow-detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.follow-user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.3), rgba(103, 58, 183, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

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

.follow-user-avatar svg {
    width: 50px;
    height: 50px;
    color: #fff;
}

.follow-user-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
}

.view-profile-btn {
    padding: 14px 40px;
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-profile-btn:hover {
    background: rgba(16, 185, 129, 0.35);
    border-color: rgba(16, 185, 129, 0.6);
    transform: translateY(-1px);
}

/* ===== SOUND ACTIVITY VIEW ===== */

.activity-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.activity-sound-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.activity-sound-cover {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.activity-sound-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-sound-cover svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.activity-sound-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-sound-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.activity-sound-uploader {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Activity Tabs */
.activity-tabs {
    display: flex;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.activity-tab {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.activity-tab:hover {
    background: rgba(255, 255, 255, 0.08);
}

.activity-tab.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
}

.activity-tab strong {
    font-weight: 600;
    margin-right: 4px;
}

/* Activity Feed */
.activity-feed {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.activity-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.activity-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

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

/* Activity Items */
.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.activity-item-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

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

.activity-item-avatar svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

.activity-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-item-icon.like { background: rgba(233, 30, 99, 0.15); }
.activity-item-icon.save { background: rgba(255, 193, 7, 0.15); }
.activity-item-icon.share { background: rgba(33, 150, 243, 0.15); }
.activity-item-icon.download { background: rgba(156, 39, 176, 0.15); }

.activity-item-icon svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

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

.activity-item-text {
    font-size: 14px;
    color: #fff;
    line-height: 1.4;
}

.activity-item-text strong {
    font-weight: 600;
    cursor: pointer;
}

.activity-item-text strong:hover {
    text-decoration: underline;
}

.activity-item-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

/* Activity Summary - when no individual records available */
.activity-summary {
    padding: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Activity User Rows - Individual users who liked/saved/shared/downloaded */
.activity-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.15s ease;
}

.activity-user-row:hover {
    background: rgba(16, 185, 129, 0.05);
}

.activity-user-row:last-child {
    border-bottom: none;
}

.activity-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    object-fit: cover;
}

.activity-user-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.1));
}

.activity-user-avatar-placeholder svg {
    opacity: 0.6;
}

.activity-user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.activity-user-action {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.activity-user-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

/* Activity Comment Rows (from notifications) */
.activity-comment-row {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.activity-comment-row:last-child {
    border-bottom: none;
}

.activity-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    object-fit: cover;
}

.activity-comment-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.1));
}

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

.activity-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.activity-comment-username {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
}

.activity-comment-username:hover {
    color: #34d399;
    text-decoration: underline;
}

.activity-comment-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.activity-comment-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.activity-comment-text em {
    color: rgba(255, 255, 255, 0.5);
}

.activity-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    color: #10b981;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.activity-reply-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

.activity-reply-btn svg {
    flex-shrink: 0;
}

/* Activity Comments */
.activity-comment {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.activity-comment:last-child {
    border-bottom: none;
}

.activity-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.1));
    flex-shrink: 0;
    overflow: hidden;
}

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

.activity-comment-body {
    flex: 1;
    min-width: 0;
}

.activity-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.activity-comment-user {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
}

.activity-comment-user:hover {
    text-decoration: underline;
}

.activity-comment-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.activity-comment-text {
    font-size: 14px;
    color: #fff;
    line-height: 1.5;
    word-wrap: break-word;
}

/* ===== ROOM INVITE VIEW ===== */

.invite-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.invite-room-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(0, 188, 212, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    overflow: hidden;
}

.invite-room-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.invite-room-icon svg {
    color: #fff;
}

.invite-room-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.invite-from {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
}

.invite-from span {
    color: #fff;
    font-weight: 500;
}

.invite-actions {
    display: flex;
    gap: 16px;
}

.invite-accept-btn,
.invite-decline-btn {
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.invite-accept-btn {
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #fff;
}

.invite-accept-btn:hover {
    background: rgba(16, 185, 129, 0.35);
    border-color: rgba(16, 185, 129, 0.6);
}

.invite-decline-btn {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #fff;
}

.invite-decline-btn:hover {
    background: rgba(255, 71, 87, 0.3);
    border-color: rgba(255, 71, 87, 0.5);
}
