/* ============================================================
   Activity Page Styles
   ============================================================ */

/* --- Activity Page Header (sticky, glassmorphism) --- */
.activity-sticky-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 0 0;
}

.activity-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.activity-title {
    font-family: 'Gabarito', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -.02em;
}

#mark-all-read {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--primary-strong);
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 10px;
    transition: background .2s ease;
}

#mark-all-read:hover {
    background: var(--primary-soft);
}

#mark-all-read .msr {
    font-size: 18px;
}

/* --- Filter Tabs --- */
.activity-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 14px;
}

.activity-filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 7px 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 100px;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    color: var(--text-2);
}

.filter-btn:hover {
    border-color: var(--border-2);
    background: var(--surface-2);
}

.filter-btn.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* --- Activity List --- */
#activity-list {
    display: flex;
    flex-direction: column;
}

/* --- Activity Items --- */
.activity-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 8px;
    cursor: pointer;
    transition: background .2s ease;
    border-radius: 16px;
}

.activity-item:hover {
    background: var(--surface-2);
}

.activity-item.unread {
    background: var(--surface);
}

.activity-item.unread:hover {
    background: var(--surface-2);
}

/* Avatar */
.activity-avatar {
    position: relative;
    flex-shrink: 0;
}

.activity-avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Gabarito', sans-serif;
    font-weight: 700;
    font-size: 18px;
    overflow: hidden;
}

.activity-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-type-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
}

.activity-type-badge .msr {
    font-size: 13px;
}

.activity-type-badge.badge-like,
.activity-type-badge.badge-match {
    background: var(--primary-soft);
    color: var(--primary);
}

.activity-type-badge.badge-message {
    background: var(--lilac-soft);
    color: var(--lilac);
}

/* Content */
.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    margin: 0;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

.activity-text strong {
    font-weight: 700;
    color: var(--primary-strong);
}

.activity-time {
    font-size: 11.5px;
    color: var(--text-3);
    font-weight: 600;
    margin-top: 2px;
    display: block;
}

/* Unread dot */
.unread-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

/* --- Loading --- */
#activity-loading {
    text-align: center;
    padding: 40px;
}

.spinner-border {
    width: 2rem;
    height: 2rem;
    border: 0.25em solid var(--primary);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

/* --- Empty State --- */
#activity-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-3);
}

.empty-icon-circle {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.empty-icon-circle .msr {
    font-size: 34px;
    color: var(--text-3);
}

.empty-heading {
    margin: 0 0 8px;
    font-family: 'Gabarito', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.empty-subtext {
    margin: 0;
    font-size: 13px;
    color: var(--text-3);
    font-weight: 400;
    line-height: 1.5;
    max-width: 20em;
    margin-left: auto;
    margin-right: auto;
}

/* --- Animate --- */
.activity-animate {
    animation: fadeUp 0.4s ease-out both;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .activity-title {
        font-size: 21px;
    }

    #mark-all-read {
        font-size: 12px;
        padding: 5px 8px;
    }

    #activity-empty {
        padding: 40px 16px;
    }

    .empty-icon-circle {
        width: 64px;
        height: 64px;
    }

    .empty-icon-circle .msr {
        font-size: 28px;
    }

    .m2c-page {
        padding-bottom: 80px;
    }
}
