/* Site header — notification bell */

.site-notifications {
    position: relative;
}

.site-notifications-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(255 255 255 / 0.1);
    background: rgb(255 255 255 / 0.04);
    color: rgb(203 213 225);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-notifications-trigger:hover {
    background: rgb(255 255 255 / 0.08);
    border-color: rgb(99 102 241 / 0.35);
    color: white;
}

.site-notifications-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.25rem;
    border-radius: 9999px;
    background: rgb(239 68 68);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.125rem;
    text-align: center;
    box-shadow: 0 0 0 2px rgb(15 23 42);
}

.site-notifications-panel {
    position: absolute;
    right: 0;
    z-index: 60;
    margin-top: 0.5rem;
    width: min(22rem, calc(100vw - 2rem));
    overflow: hidden;
    border-radius: 0.9rem;
    border: 1px solid rgb(255 255 255 / 0.1);
    background: rgb(15 23 42 / 0.98);
    box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.45);
    backdrop-filter: blur(10px);
}

.site-notifications-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.site-notifications-panel-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.site-notifications-mark-all {
    border: 0;
    background: transparent;
    color: rgb(129 140 248);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.site-notifications-mark-all:hover {
    color: rgb(165 180 252);
}

.site-notifications-list {
    max-height: 22rem;
    overflow-y: auto;
}

.site-notifications-item {
    display: flex;
    width: 100%;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.05);
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.site-notifications-item:last-child {
    border-bottom: 0;
}

.site-notifications-item:hover {
    background: rgb(255 255 255 / 0.04);
}

.site-notifications-item-unread {
    background: rgb(99 102 241 / 0.08);
}

.site-notifications-item-unread:hover {
    background: rgb(99 102 241 / 0.12);
}

.site-notifications-item-icon {
    flex-shrink: 0;
    font-size: 1.125rem;
    line-height: 1.2;
    margin-top: 0.1rem;
}

.site-notifications-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.site-notifications-item-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgb(241 245 249);
}

.site-notifications-item-message {
    font-size: 0.75rem;
    line-height: 1.45;
    color: rgb(148 163 184);
}

.site-notifications-item-time {
    font-size: 0.6875rem;
    color: rgb(100 116 139);
}

.site-notifications-empty {
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.8125rem;
    color: rgb(100 116 139);
}

.site-header-mobile-menu .site-notifications {
    width: 100%;
}

.site-header-mobile-menu .site-notifications-trigger {
    width: 100%;
    height: auto;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
}

.site-header-mobile-menu .site-notifications-panel {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
}

html[data-theme='light'] .site-notifications-trigger {
    border-color: rgb(226 232 240);
    background: rgb(248 250 252);
    color: rgb(71 85 105);
}

html[data-theme='light'] .site-notifications-trigger:hover {
    background: white;
    border-color: rgb(199 210 254);
    color: rgb(15 23 42);
}

html[data-theme='light'] .site-notifications-badge {
    box-shadow: 0 0 0 2px white;
}

html[data-theme='light'] .site-notifications-panel {
    border-color: rgb(226 232 240);
    background: white;
    box-shadow: 0 18px 40px -12px rgb(15 23 42 / 0.15);
}

html[data-theme='light'] .site-notifications-panel-title {
    color: rgb(15 23 42);
}

html[data-theme='light'] .site-notifications-item-title {
    color: rgb(15 23 42);
}

html[data-theme='light'] .site-notifications-item-message {
    color: rgb(71 85 105);
}

html[data-theme='light'] .site-notifications-item-unread {
    background: rgb(238 242 255);
}

html[data-theme='light'] .site-notifications-item-unread:hover {
    background: rgb(224 231 255);
}
