/* ============ NOTIFICATIONS PAGE ============ */
.notifications-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px;
}

.notifications-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.notifications-page-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.btn-mark-all {
    background: none;
    border: none;
    color: #00AAFF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.15s;
}
.btn-mark-all:hover { background: #f0f8ff; }

/* ФИЛЬТРЫ */
.notifications-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
}
.filter-tab:hover { color: #00AAFF; text-decoration: none; }
.filter-tab.active {
    color: #00AAFF;
    border-bottom-color: #00AAFF;
}

.filter-count {
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}
.filter-count-red {
    background: #FF4053;
    color: #fff;
}

/* СПИСОК */
.notifications-page-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: background 0.15s, transform 0.15s;
    position: relative;
}
.notification-item:hover {
    background: #f8f8f8;
    text-decoration: none;
    color: inherit;
    transform: translateY(-1px);
}
.notification-item.unread {
    background: #f5f9ff;
}
.notification-item.unread:hover {
    background: #eaf4ff;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: #f0f8ff;
    color: #00AAFF;
}
.notification-icon-new_message { background: #e8f4ff; color: #00AAFF; }
.notification-icon-favorite_added,
.notification-icon-new_favorite { background: #ffe8ee; color: #FF4053; }
.notification-icon-moderation_result,
.notification-icon-ad_approved { background: #e8f9ed; color: #00A046; }
.notification-icon-ad_rejected { background: #ffe8e8; color: #FF4053; }
.notification-icon-ad_created { background: #e8f9ed; color: #00A046; }
.notification-icon-new_ad_in_category { background: #fff8e6; color: #cc8800; }

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

.notification-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
}

.notification-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-time {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

.notification-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00AAFF;
    flex-shrink: 0;
    align-self: center;
}

/* ПУСТОЕ СОСТОЯНИЕ */
.notifications-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.notifications-empty-state i {
    font-size: 64px;
    color: #ddd;
}
.notifications-empty-state h3 {
    font-size: 18px;
    color: #666;
    margin: 20px 0 8px;
}
.notifications-empty-state p {
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* АДАПТИВ */
@media (max-width: 576px) {
    .notifications-page { padding: 16px 12px; }
    .notifications-page-title { font-size: 20px; }
    .notification-item { padding: 12px; gap: 10px; }
    .notification-icon { width: 36px; height: 36px; font-size: 16px; }
    .notification-head { flex-direction: column; gap: 2px; }
    .notification-time { font-size: 11px; }
}

/* ============ NOTIFICATION DETAIL ============ */
.notification-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00AAFF;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 20px;
    padding: 6px 0;
    transition: color 0.15s;
}
.notification-back:hover { color: #0088cc; text-decoration: none; }

.notification-detail-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.notification-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.notification-icon-lg {
    width: 56px;
    height: 56px;
    font-size: 24px;
}

.notification-detail-meta {
    text-align: right;
    flex-shrink: 0;
}

.notification-detail-time {
    font-size: 13px;
    color: #999;
}

.notification-detail-status {
    font-size: 12px;
    color: #00A046;
    font-weight: 600;
    margin-top: 4px;
}

.notification-detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    line-height: 1.3;
}

.notification-detail-text {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 24px;
}

.notification-detail-actions {
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

@media (max-width: 576px) {
    .notification-detail-card { padding: 20px; }
    .notification-detail-head { flex-direction: column; }
    .notification-detail-meta { text-align: left; }
    .notification-detail-title { font-size: 18px; }
    .notification-detail-text { font-size: 14px; }
}

.notification-icon-bonus { background: #e8f4ff; color: #00AAFF; }
.notification-icon-new_review { background: #fff8e6; color: #FFC107; }