/* Notification Badge Styles */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ed1e79;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Notification Items - Based on Figma Rectangle 5 */
.notifications-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    background: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    overflow: hidden;
}

/* Swipe to delete functionality */
.notification-item-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.notification-item-delete-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80px;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.notification-item-delete-bg img {
    filter: invert(27%) sepia(93%) saturate(4841%) hue-rotate(346deg) brightness(91%) contrast(92%);
}

.notification-item-wrapper.swiping .notification-item-delete-bg,
.notification-item-wrapper.swiped .notification-item-delete-bg {
    opacity: 1;
}

.notification-item-swipeable {
    position: relative;
    transform: translateX(0);
    transition: transform 0.3s ease;
    will-change: transform;
}

.notification-item-wrapper.swiped .notification-item-swipeable {
    transform: translateX(-80px);
}

.notification-item:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(47, 58, 95, 0.1);
}

.notification-item.unread {
    background: #D8E2ED;
}

/* Read notifications appear faded */
.notification-item:not(.unread) {
    opacity: 0.6;
}

.notification-item:not(.unread):hover {
    opacity: 0.8;
}

.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    min-width: 0; /* Allow flex item to shrink below content size */
    overflow: hidden; /* Prevent overflow */
}

.notification-date {
    font-weight: 600;
    font-size: 6px;
    line-height: 1.3em;
    color: #2F3A5F;
    margin: 0 0 2px 0;
    text-transform: uppercase;
}

.notification-title {
    font-weight: 800;
    font-size: 10px;
    line-height: 1.8em;
    letter-spacing: -0.01em;
    color: #2F3A5F;
    margin: 0 0 2px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.notification-body {
    font-weight: 400;
    font-size: 8px;
    line-height: 1.3em;
    color: #2F3A5F;
    margin: 0 0 4px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.notification-action {
    font-weight: 700;
    font-size: 8px;
    line-height: 1.3em;
    color: #ED1E79;
    margin: 0;
    text-decoration: none;
    display: inline-block;
}

.notification-image {
    width: 76px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f0f0;
}

.unread-indicator {
    position: absolute;
    top: -13px;
    left: -13px;
    width: 6px;
    height: 6px;
    background-color: #ED1E79;
    border-radius: 50%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notification-item {
        padding: 12px;
    }
    
    .notification-title {
        font-size: 14px;
    }
    
    .notification-body {
        font-size: 13px;
    }
    
    .notification-date {
        font-size: 11px;
    }
}

/* Mobile badge positioning */
@media (max-width: 1024px) {
    #notification-badge-mobile {
        top: -5px;
        right: -5px;
    }
}
