/* ==========================================================================
   Notifications Page Styles (BEM Architecture & Responsive Theme)
   ========================================================================== */

main.page.notifications-page {
    width: calc(100% - 335px);
    max-width: 100%;
}

.notifications-page--guest {
    width: 100% !important;
    max-width: 880px !important;
    margin: 30px auto 50px !important;
    padding: 0 16px !important;
}

.notifications-guest-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    margin-bottom: 20px;
    background: rgba(252, 198, 80, 0.12);
    border: 1px solid rgba(252, 198, 80, 0.3);
    border-radius: 12px;
    color: #fcc650;
    font-size: 14px;
}

.notifications-guest-banner__content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notifications-guest-banner__btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    background: #fcc650;
    color: #1a1a1a;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease;
}

.notifications-guest-banner__btn:hover {
    background: #f5b730;
    color: #000000;
    transform: translateY(-1px);
}

.notifications-wrapper {
    background: linear-gradient(145deg, #16181f 0%, #1e2029 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    width: 100%;
}

/* Header */
.notifications-header {
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.notifications-header__title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notifications-header__title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
}

.notifications-header__badge {
    background: rgba(252, 198, 80, 0.15);
    color: #fcc650;
    border: 1px solid rgba(252, 198, 80, 0.35);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.notifications-header__mark-all-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.notifications-header__mark-all-btn:hover {
    background: #fcc650;
    border-color: #fcc650;
    color: #0d0e12;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(252, 198, 80, 0.25);
}

.notifications-header__mark-all-btn:active {
    transform: translateY(0);
}

/* List */
.notifications-list {
    display: flex;
    flex-direction: column;
}

/* Notification Item */
.notification-item {
    padding: 22px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 18px;
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

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

/* Modifiers - Desktop */
.notification-item--unread {
    background: rgba(252, 198, 80, 0.035);
}

.notification-item--unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #fcc650 0%, #f59e0b 100%);
    box-shadow: 0 0 10px rgba(252, 198, 80, 0.5);
}

.notification-item--unread:hover {
    background: rgba(252, 198, 80, 0.06);
}

.notification-item--read {
    background: transparent;
}

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

/* Icon */
.notification-item__icon-wrapper {
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-item__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: #717688;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 17px;
    transition: all 0.25s ease;
}

.notification-item__icon--unread {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    animation: pulseIcon 3s infinite;
}

@keyframes pulseIcon {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(245, 158, 11, 0.65);
    }
}

/* Body */
.notification-item__body {
    flex: 1;
    min-width: 0;
}

.notification-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.notification-item__title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.notification-item__title {
    font-size: 16.5px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
}

.notification-item--read .notification-item__title {
    color: #cbd5e1;
    font-weight: 600;
}

.notification-item__title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.notification-item__title-link:hover {
    color: #fcc650;
}

.notification-item--has-link {
    cursor: pointer;
}

.notification-item__badge {
    background: #fcc650;
    color: #111827;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    flex-shrink: 0;
}

/* Meta */
.notification-item__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.notification-item__time {
    color: #8b92a5;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.notification-item__mark-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.notification-item__mark-btn:hover {
    background: #fcc650;
    border-color: #fcc650;
    color: #0d0e12;
}

.notification-item__read-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* Image */
.notification-item__image-wrap {
    margin: 10px 0 12px;
    max-width: 520px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.notification-item__image-link {
    display: block;
}

.notification-item__image {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.notification-item__image-link:hover .notification-item__image {
    transform: scale(1.02);
}

/* Content */
.notification-item__content {
    color: #b3b8c7;
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0 10px;
    word-break: break-word;
}

.notification-item__content p {
    margin: 0 0 6px 0;
}

.notification-item__content p:last-child {
    margin-bottom: 0;
}

.notification-item__content a {
    color: #fcc650;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.notification-item__content a:hover {
    color: #ffd86b;
}

.notification-item__content strong,
.notification-item__content b {
    color: #ffffff;
}

.notification-item__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
}

/* Footer & Action Button */
.notification-item__footer {
    margin-top: 12px;
}

.notification-item__action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fcc650 0%, #f59e0b 100%);
    color: #111827;
    font-weight: 700;
    font-size: 13px;
    padding: 7px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.notification-item__action-btn:hover {
    color: #000000;
    transform: translateX(3px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* Empty State */
.notifications-empty {
    padding: 70px 24px;
    text-align: center;
}

.notifications-empty__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #64748b;
}

.notifications-empty__title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
}

.notifications-empty__desc {
    font-size: 13.5px;
    color: #8b92a5;
    margin: 0 auto;
    max-width: 360px;
}

/* Pagination & Infinite Scroll */
.notifications-pagination {
    padding: 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
}

.notifications-sentinel {
    height: 1px;
    width: 100%;
    pointer-events: none;
    opacity: 0;
}

.notifications-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 22px 20px;
    color: #fcc650;
    font-size: 14px;
    font-weight: 500;
}

.notifications-loader i {
    font-size: 18px;
    color: #fcc650;
}

/* ==========================================================================
   MOBILE RESPONSIVE STYLES (Light Theme Alignment for Mobile Profile)
   ========================================================================== */

@media (max-width: 990px) {
    body {
        height: 100vh;
        overflow-y: scroll;
        overflow-x: hidden;
    }

    main.page.notifications-page {
        width: 100%;
        padding: 12px 14px 40px;
        background: transparent;
    }

    .notifications-wrapper {
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    /* Header Mobile */
    .notifications-header {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 14px 16px;
        margin-bottom: 12px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    }

    .notifications-header__title {
        color: #111827;
        font-size: 18px;
    }

    .notifications-header__badge {
        background: #fef3c7;
        color: #b45309;
        border: 1px solid #fde68a;
    }

    .notifications-header__mark-all-btn {
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
        color: #374151;
        padding: 6px 12px;
        font-size: 12px;
    }

    .notifications-header__mark-all-btn:hover,
    .notifications-header__mark-all-btn:active {
        background: #fcc650;
        border-color: #fcc650;
        color: #111827;
    }

    /* List Mobile */
    .notifications-list {
        gap: 12px;
    }

    /* Card Item Mobile */
    .notification-item {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        padding: 16px;
        margin-bottom: 0;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
        gap: 12px;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .notification-item:active {
        transform: scale(0.99);
    }

    .notification-item:last-child {
        border-bottom: 1px solid #e5e7eb;
    }

    .notification-item--unread {
        background: #fffdf5;
        border-color: #fde68a;
        box-shadow: 0 3px 10px rgba(245, 158, 11, 0.08);
    }

    .notification-item--unread::before {
        border-radius: 14px 0 0 14px;
        width: 4px;
        background: #f59e0b;
        box-shadow: none;
    }

    .notification-item--read {
        background: #ffffff;
    }

    /* Icon Mobile */
    .notification-item__icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
        background: #f3f4f6;
        color: #9ca3af;
        border: 1px solid #e5e7eb;
    }

    .notification-item__icon--unread {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        color: #ffffff;
        border: none;
        box-shadow: 0 3px 8px rgba(245, 158, 11, 0.3);
    }

    /* Titles Mobile */
    .notification-item__title {
        color: #111827;
        font-size: 15px;
        line-height: 1.35;
    }

    .notification-item--read .notification-item__title {
        color: #374151;
    }

    .notification-item__title-link {
        color: inherit;
    }

    .notification-item__title-link:hover,
    .notification-item__title-link:active {
        color: #d97706;
    }

    .notification-item__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 6px;
    }

    .notification-item__meta {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .notification-item__time {
        color: #6b7280;
        font-size: 11.5px;
    }

    .notification-item__mark-btn {
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
        color: #374151;
        padding: 3px 8px;
        font-size: 11.5px;
    }

    .notification-item__mark-btn:hover,
    .notification-item__mark-btn:active {
        background: #fcc650;
        border-color: #fcc650;
        color: #111827;
    }

    .notification-item__read-label {
        color: #059669;
        font-size: 11.5px;
    }

    /* Image Mobile */
    .notification-item__image-wrap {
        margin: 8px 0 10px;
        max-width: 100%;
        border-radius: 10px;
        border: 1px solid #f3f4f6;
    }

    .notification-item__image {
        max-height: 180px;
        border-radius: 10px;
    }

    /* Content Mobile */
    .notification-item__content {
        color: #4b5563;
        font-size: 13.5px;
        line-height: 1.55;
        margin: 6px 0 8px;
    }

    .notification-item__content strong,
    .notification-item__content b {
        color: #111827;
    }

    .notification-item__content a {
        color: #d97706;
    }

    /* Action button Mobile */
    .notification-item__footer {
        margin-top: 10px;
    }

    .notification-item__action-btn {
        width: 100%;
        justify-content: center;
        padding: 9px 14px;
        font-size: 13px;
        border-radius: 8px;
    }

    /* Empty state Mobile */
    .notifications-empty {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        padding: 40px 16px;
    }

    .notifications-empty__icon {
        background: #f3f4f6;
        border-color: #e5e7eb;
        color: #9ca3af;
    }

    .notifications-empty__title {
        color: #111827;
        font-size: 17px;
    }

    .notifications-empty__desc {
        color: #6b7280;
    }

    .notifications-loader {
        color: #d97706;
        padding: 16px 14px;
    }

    .notifications-loader i {
        color: #d97706;
    }
}
