/* GAMEHUB_NOTIFICATION_CENTER_STYLE */

.gamehub-page-header {
    position: relative;
}

.gamehub-notification-button {
    position: absolute;
    z-index: 4;
    top: 16px;
    right: 18px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--text-soft, #e2e8f0);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, 0.11),
            rgba(255, 255, 255, 0.028)
        );
    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.035);
    cursor: pointer;
}

.gamehub-notification-button:hover,
.gamehub-notification-button.has-unread {
    color: #ede9fe;
    border-color:
        rgba(167, 139, 250, 0.3);
    background:
        rgba(139, 92, 246, 0.16);
}

.gamehub-notification-button[hidden] {
    display: none !important;
}

.gamehub-notification-bell {
    width: 20px;
    height: 20px;
}

.gamehub-notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    display: grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    padding: 0 5px;
    color: #fff;
    border: 2px solid
        var(--surface, #111827);
    border-radius: 999px;
    background: #ef4444;
    box-shadow:
        0 5px 16px
        rgba(239, 68, 68, 0.34);
    font-size: 0.62rem;
    font-weight: 850;
    line-height: 1;
}

.gamehub-notification-badge[hidden] {
    display: none !important;
}

.gamehub-notification-backdrop {
    position: fixed;
    z-index: 90;
    inset: 0;
    background: rgba(2, 6, 23, 0.58);
    backdrop-filter: blur(3px);
}

.gamehub-notification-backdrop[hidden] {
    display: none !important;
}

.gamehub-notification-drawer {
    position: fixed;
    z-index: 91;
    top: 0;
    right: 0;
    display: grid;
    grid-template-rows:
        auto
        auto
        minmax(0, 1fr)
        auto;
    width: min(430px, 100vw);
    height: 100dvh;
    color: var(--text, #f8fafc);
    border-left:
        1px solid rgba(255, 255, 255, 0.085);
    background:
        linear-gradient(
            180deg,
            rgba(19, 23, 38, 0.995),
            rgba(10, 13, 24, 0.995)
        );
    box-shadow:
        -24px 0 70px
        rgba(0, 0, 0, 0.38);
}

.gamehub-notification-drawer[hidden] {
    display: none !important;
}

.gamehub-notification-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 21px 20px 17px;
    border-bottom:
        1px solid rgba(255, 255, 255, 0.065);
}

.gamehub-notification-drawer-header h2 {
    margin: 4px 0 4px;
    font-size: 1.25rem;
}

.gamehub-notification-drawer-header p {
    margin: 0;
    color: var(--text-muted, #94a3b8);
    font-size: 0.75rem;
    line-height: 1.45;
}

.gamehub-notification-close {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--text-soft, #e2e8f0);
    border:
        1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background:
        rgba(255, 255, 255, 0.025);
    font: inherit;
    cursor: pointer;
}

.gamehub-notification-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    border-bottom:
        1px solid rgba(255, 255, 255, 0.055);
}

.gamehub-notification-tabs {
    display: flex;
    gap: 7px;
}

.gamehub-notification-tabs button,
.gamehub-notification-read-all {
    padding: 7px 10px;
    color: var(--text-muted, #94a3b8);
    border:
        1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    background:
        rgba(255, 255, 255, 0.025);
    font: inherit;
    font-size: 0.69rem;
    font-weight: 750;
    cursor: pointer;
}

.gamehub-notification-tabs button.active {
    color: #ede9fe;
    border-color:
        rgba(167, 139, 250, 0.25);
    background:
        rgba(139, 92, 246, 0.13);
}

.gamehub-notification-read-all {
    color: #c4b5fd;
}

.gamehub-notification-read-all:disabled {
    opacity: 0.42;
    cursor: default;
}

.gamehub-notification-list {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color:
        rgba(139, 92, 246, 0.34)
        transparent;
}

.gamehub-notification-item {
    position: relative;
}

.gamehub-notification-item:not(:last-child) {
    border-bottom:
        1px solid rgba(255, 255, 255, 0.052);
}

.gamehub-notification-item.unread {
    background:
        linear-gradient(
            90deg,
            rgba(139, 92, 246, 0.075),
            transparent 70%
        );
}

.gamehub-notification-open {
    display: grid;
    grid-template-columns:
        36px
        minmax(0, 1fr)
        8px;
    gap: 12px;
    width: 100%;
    padding: 15px 20px;
    color: inherit;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.gamehub-notification-open:hover {
    background:
        rgba(255, 255, 255, 0.022);
}

.gamehub-notification-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #c4b5fd;
    border:
        1px solid rgba(167, 139, 250, 0.18);
    border-radius: 10px;
    background:
        rgba(139, 92, 246, 0.08);
    font-size: 0.83rem;
    font-weight: 850;
}

.gamehub-notification-item[
    data-category="backup"
]
.gamehub-notification-icon {
    color: #6ee7b7;
    border-color:
        rgba(52, 211, 153, 0.18);
    background:
        rgba(16, 185, 129, 0.08);
}

.gamehub-notification-item[
    data-severity="warning"
]
.gamehub-notification-icon {
    color: #fde68a;
    border-color:
        rgba(251, 191, 36, 0.22);
    background:
        rgba(245, 158, 11, 0.09);
}

.gamehub-notification-item[
    data-severity="error"
]
.gamehub-notification-icon,
.gamehub-notification-item[
    data-category="error"
]
.gamehub-notification-icon {
    color: #fecaca;
    border-color:
        rgba(248, 113, 113, 0.24);
    background:
        rgba(239, 68, 68, 0.1);
}

.gamehub-notification-content {
    min-width: 0;
}

.gamehub-notification-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.gamehub-notification-title-row strong {
    overflow: hidden;
    color: var(--text, #f8fafc);
    font-size: 0.82rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gamehub-notification-title-row small {
    flex: 0 0 auto;
    color: var(--text-muted, #94a3b8);
    font-size: 0.63rem;
}

.gamehub-notification-message {
    display: block;
    margin-top: 5px;
    color: var(--text-muted, #94a3b8);
    font-size: 0.72rem;
    line-height: 1.45;
}

.gamehub-notification-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 9px;
}

.gamehub-notification-meta span,
.gamehub-notification-meta time {
    padding: 4px 6px;
    color: var(--text-muted, #94a3b8);
    border:
        1px solid rgba(255, 255, 255, 0.055);
    border-radius: 7px;
    background:
        rgba(255, 255, 255, 0.02);
    font-size: 0.6rem;
    line-height: 1;
}

.gamehub-notification-unread-dot {
    align-self: center;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow:
        0 0 10px
        rgba(167, 139, 250, 0.7);
}

.gamehub-notification-empty {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 52px 24px;
    color: var(--text-muted, #94a3b8);
    text-align: center;
}

.gamehub-notification-empty > span {
    font-size: 1.7rem;
}

.gamehub-notification-empty strong {
    color: var(--text-soft, #e2e8f0);
}

.gamehub-notification-empty p {
    margin: 0;
    font-size: 0.73rem;
    line-height: 1.45;
}

.gamehub-notification-empty.error {
    color: #fecaca;
}

.gamehub-notification-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-muted, #94a3b8);
    border-top:
        1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.67rem;
}

.gamehub-notification-footer a {
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 750;
}

body.gamehub-notifications-open {
    overflow: hidden;
}

@media (max-width: 650px) {
    .gamehub-notification-button {
        top: 12px;
        right: 12px;
    }

    .gamehub-notification-drawer {
        width: 100vw;
    }

    .gamehub-notification-drawer-header,
    .gamehub-notification-toolbar,
    .gamehub-notification-open,
    .gamehub-notification-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .gamehub-notification-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .gamehub-notification-read-all {
        align-self: stretch;
    }

    .gamehub-notification-title-row {
        display: grid;
        gap: 4px;
    }

    .gamehub-notification-title-row small {
        justify-self: start;
    }
}

/* GAMEHUB_DASHBOARD_HEADER_ACTIONS_STYLE */

.gamehub-page-header {
    position: relative;
    padding-right: 124px;
}

.gamehub-header-actions {
    position: absolute;
    z-index: 5;
    top: 16px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gamehub-header-actions .gamehub-header-icon-button,
.gamehub-header-actions .refresh-button,
.gamehub-header-actions .gamehub-notification-button {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: grid;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    flex: 0 0 44px;
    place-items: center;
    margin: 0;
    padding: 0;
    color: var(--text-soft, #e2e8f0);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, 0.11),
            rgba(255, 255, 255, 0.028)
        );
    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.035);
    font-size: 0;
    line-height: 0;
    cursor: pointer;
}

.gamehub-header-actions .gamehub-header-icon-button:hover,
.gamehub-header-actions .refresh-button:hover,
.gamehub-header-actions .gamehub-notification-button:hover,
.gamehub-header-actions .gamehub-notification-button.has-unread {
    color: #ede9fe;
    border-color: rgba(167, 139, 250, 0.3);
    background: rgba(139, 92, 246, 0.16);
}

.gamehub-header-actions .gamehub-header-icon-button:focus-visible {
    outline: 2px solid rgba(167, 139, 250, 0.72);
    outline-offset: 3px;
}

.gamehub-header-refresh-icon,
.gamehub-header-actions .gamehub-notification-bell {
    display: block;
    width: 20px;
    height: 20px;
}

.gamehub-header-refresh-button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.gamehub-header-refresh-button:disabled
.gamehub-header-refresh-icon {
    animation:
        gamehub-header-refresh-spin
        0.85s
        linear
        infinite;
}

@keyframes gamehub-header-refresh-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 650px) {
    .gamehub-page-header {
        padding-right: 108px;
    }

    .gamehub-header-actions {
        top: 12px;
        right: 12px;
        gap: 7px;
    }

    .gamehub-header-actions .gamehub-header-icon-button,
    .gamehub-header-actions .refresh-button,
    .gamehub-header-actions .gamehub-notification-button {
        width: 42px;
        min-width: 42px;
        max-width: 42px;
        height: 42px;
        min-height: 42px;
        max-height: 42px;
        flex-basis: 42px;
    }
}

/* GAMEHUB_GLOBAL_NOTIFICATION_HEADER_STYLE */

.gamehub-page-header {
    position: relative;
    padding-right: 124px;
}

.gamehub-header-actions {
    position: absolute;
    z-index: 5;
    top: 16px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gamehub-header-actions
.gamehub-header-icon-button,
.gamehub-header-actions
.refresh-button,
.gamehub-header-actions
.gamehub-notification-button {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: grid;
    width: 44px !important;
    min-width: 44px;
    max-width: 44px;
    height: 44px !important;
    min-height: 44px;
    max-height: 44px;
    flex: 0 0 44px;
    place-items: center;
    margin: 0;
    padding: 0;
    border-radius: 13px;
    font-size: 0;
    line-height: 0;
}

.gamehub-header-refresh-icon,
.gamehub-header-actions
.gamehub-notification-bell {
    display: block;
    width: 20px;
    height: 20px;
}

.gamehub-header-refresh-button:disabled
.gamehub-header-refresh-icon {
    animation:
        gamehub-global-refresh-spin
        0.85s
        linear
        infinite;
}

@keyframes gamehub-global-refresh-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 650px) {
    .gamehub-page-header {
        padding-right: 108px;
    }

    .gamehub-header-actions {
        top: 12px;
        right: 12px;
        gap: 7px;
    }

    .gamehub-header-actions
    .gamehub-header-icon-button,
    .gamehub-header-actions
    .refresh-button,
    .gamehub-header-actions
    .gamehub-notification-button {
        width: 42px !important;
        min-width: 42px;
        max-width: 42px;
        height: 42px !important;
        min-height: 42px;
        max-height: 42px;
        flex-basis: 42px;
    }
}

