/* Eternal Garden — ALERTS sidebar (feed-style notifications) */

.alerts-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.alerts-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.alerts-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: var(--darker-bg, #0a0a0a);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
}

.alerts-overlay.is-open .alerts-sidebar {
    transform: translateX(0);
}

.alerts-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.alerts-sidebar-title {
    font-family: 'Heliosext', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-white);
}

.alerts-sidebar-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    padding: 0.35rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.alerts-sidebar-close:hover {
    color: var(--text-light);
}

.alerts-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.alerts-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Hudson', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.alerts-tab:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.06);
}

.alerts-tab-active {
    color: var(--primary-green);
    background: rgba(0, 255, 136, 0.12);
}

.alerts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.alerts-panel {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.alerts-panel-active {
    display: flex;
}

.alerts-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.alerts-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.alerts-item-avatars {
    flex-shrink: 0;
    position: relative;
    width: 52px;
    height: 44px;
    display: flex;
    align-items: center;
}

.alerts-item-avatar {
    display: block;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--darker-bg, #0a0a0a);
    flex-shrink: 0;
}

.alerts-item-avatar:nth-child(2) {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 22px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
}

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

.alerts-item-text {
    font-size: 0.85rem;
    color: var(--text-white);
    line-height: 1.4;
}

.alerts-item-text strong {
    font-weight: 600;
}

.alerts-item-snippet {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alerts-item-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.alerts-item-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.alerts-empty {
    padding: 2rem 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}
