/* ============================================================
   Tokmart - Notifications panel
   ============================================================ */

.notifications-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0;
}

.notification-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    touch-action: pan-y;
    animation: notifSlideIn 0.4s var(--ease-out);
}

@keyframes notifSlideIn {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.notification-item.unread {
    border-right: 4px solid var(--primary);
    background: var(--bg2);
    position: relative;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    animation: pulseBorder 2s ease-in-out infinite;
}

@keyframes pulseBorder {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.notification-item.unread .unread-dot {
    display: block !important;
}

.unread-dot {
    display: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.5); opacity: 0.5; }
}

.notification-item .notif-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.notification-item .notif-icon.offer { background: rgba(216,176,122,.15); color: var(--secondary); }
.notification-item .notif-icon.order { background: rgba(5,134,147,.15); color: var(--primary); }
.notification-item .notif-icon.wallet { background: rgba(46,204,113,.15); color: var(--green); }
.notification-item .notif-icon.info { background: rgba(52,152,219,.15); color: #3498DB; }
.notification-item .notif-icon.chat { background: rgba(46,204,113,.15); color: var(--green); }

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

.notification-item .notif-content .notif-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.notification-item .notif-content .notif-desc {
    font-size: 13px;
    color: var(--text3);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-item .notif-content .notif-time {
    font-size: 11px;
    color: var(--text3);
    margin-top: 4px;
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 4px;
}

.notification-item.swiping {
    transform: translateX(var(--swipe-offset, 0px));
    transition: transform 0.1s ease-out;
}

.notification-item.swiped {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s var(--ease-spring);
    pointer-events: none;
}

.notification-item .swipe-hint {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--red);
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.notification-item.swiping .swipe-hint {
    opacity: 1;
}

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.notif-header .notif-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-header .notif-title .count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text3);
    background: var(--bg2);
    padding: 2px 12px;
    border-radius: 20px;
}

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

.notif-header .notif-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s var(--ease-spring);
    display: flex;
    align-items: center;
    gap: 6px;
}

.notif-header .notif-actions .btn-mark-all { background: var(--primary-light); color: #fff; }
.notif-header .notif-actions .btn-delete-all { background: var(--red); color: #fff; }

.notifications-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text3);
}

.notifications-empty i {
    font-size: 56px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.3;
}

.notifications-empty .title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text2);
}

.notifications-empty .sub {
    font-size: 14px;
    margin-top: 6px;
}
