* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(139, 92, 246, 0.08),
            transparent 35%
        ),
        #070910;

    color: #f5f5f7;
    font-family: Inter, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

/* Header */

.activity-header {
    height: 76px;
    padding: 0 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: sticky;
    top: 0;
    z-index: 20;

    background: rgba(7, 9, 16, 0.9);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid #20212c;
}

.veyna-logo {
    color: #b15cff;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 1px;
}

.activity-header h1 {
    font-size: 19px;
    margin: 0;
}

.settings-btn {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    background: #121420;
    border: 1px solid #292b3a;
    border-radius: 12px;

    font-size: 21px;
    color: #c5c7d4;
}

/* Main */

.activity-main {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 35px 20px 80px;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.page-heading h2 {
    margin: 0;
    font-size: 25px;
}

.page-heading p {
    color: #777c8d;
    font-size: 13px;
    margin: 7px 0 0;
}

#mark-all-read {
    border: none;
    background: transparent;
    color: #b66aff;
    font-size: 12px;
    cursor: pointer;
}

#mark-all-read:hover {
    color: #d4a6ff;
}

/* Filters */

.activity-filters {
    display: flex;
    gap: 9px;

    margin: 26px 0 30px;
    padding-bottom: 5px;

    overflow-x: auto;
    scrollbar-width: none;
}

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

.filter-btn {
    flex-shrink: 0;
    padding: 9px 17px;

    color: #9b9dad;
    background: #10121c;

    border: 1px solid #252737;
    border-radius: 9px;

    font-size: 12px;
    cursor: pointer;

    transition: 0.2s;
}

.filter-btn:hover {
    color: white;
    border-color: #7750a9;
}

.filter-btn.active {
    color: white;
    background: #7929c8;
    border-color: #7929c8;
}

/* Sections */

.activity-section {
    margin-bottom: 32px;
}

.section-title {
    margin: 0 0 13px;
    color: #898d9d;
    font-size: 13px;
    font-weight: 600;
}

/* Activity list */

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.activity-item {
    position: relative;

    min-height: 82px;
    padding: 14px;

    display: flex;
    align-items: center;
    gap: 12px;

    background: #0d0f18;
    border: 1px solid transparent;
    border-radius: 13px;

    transition: background 0.2s, border-color 0.2s;
}

.activity-item:hover {
    background: #121420;
    border-color: #252737;
}

.activity-item.unread {
    background: rgba(126, 34, 206, 0.09);
}

.activity-item.unread:hover {
    background: rgba(126, 34, 206, 0.14);
}

/* Avatar */

.activity-avatar {
    flex-shrink: 0;
}

.activity-avatar img {
    display: block;
    width: 45px;
    height: 45px;

    object-fit: cover;
    border-radius: 50%;

    border: 1px solid #353347;
}

/* Text */

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

.activity-content p {
    margin: 0;

    color: #c4c6d1;
    font-size: 13px;
    line-height: 1.7;
}

.activity-user {
    color: #fff;
    font-weight: 700;
}

.activity-user:hover {
    color: #c084fc;
}

.activity-content strong {
    color: white;
}

.activity-time {
    display: block;
    margin-top: 5px;

    color: #727789;
    font-size: 10px;
}

.comment-preview {
    margin-top: 5px;
    color: #999daf;
    font-size: 12px;
    overflow-wrap: anywhere;
}

/* Post thumbnail */

.activity-post {
    flex-shrink: 0;
    margin-left: auto;
}

.activity-post img {
    display: block;

    width: 48px;
    height: 56px;

    object-fit: cover;
    border-radius: 7px;
}

/* Type icons */

.activity-symbol {
    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    flex-shrink: 0;
    margin-left: auto;

    border-radius: 50%;
    font-size: 15px;
}

.follow-symbol {
    color: #a879ff;
    background: #28183e;
}

.like-symbol {
    color: #ff5b91;
    background: #351724;
}

.comment-symbol {
    color: #68baff;
    background: #142b3e;
}

.mention-symbol {
    color: #d4a6ff;
    background: #321c4a;
}

/* Action */

.activity-action {
    flex-shrink: 0;

    padding: 8px 12px;

    border: 1px solid #7138a7;
    border-radius: 8px;

    color: #c89aff;
    font-size: 11px;

    transition: 0.2s;
}

.activity-action:hover {
    background: #772bc3;
    color: white;
}

/* Unread marker */

.unread-dot {
    width: 7px;
    height: 7px;

    position: absolute;
    top: 12px;
    right: 12px;

    border-radius: 50%;
    background: #b45cff;
}

.activity-item:not(.unread) .unread-dot {
    display: none;
}

/* Empty state */

#empty-state {
    padding: 60px 20px;
    text-align: center;
}

#empty-state[hidden] {
    display: none;
}

.empty-icon {
    font-size: 35px;
    color: #9d56e9;
}

#empty-state h3 {
    margin-bottom: 7px;
    font-size: 17px;
}

#empty-state p {
    color: #777c8d;
    font-size: 13px;
}

/* Mobile navigation */

.mobile-footer {
    display: none;
}

@media (max-width: 600px) {
    .activity-header {
        height: 62px;
        padding: 0 16px;
    }

    .veyna-logo {
        font-size: 20px;
    }

    .activity-header h1 {
        font-size: 16px;
    }

    .activity-main {
        padding: 25px 12px 95px;
    }

    .page-heading h2 {
        font-size: 22px;
    }

    .page-heading p {
        font-size: 11px;
    }

    #mark-all-read {
        max-width: 95px;
        line-height: 1.5;
    }

    .activity-filters {
        margin: 22px 0;
    }

    .activity-item {
        gap: 10px;
        padding: 12px 10px;
        min-height: 76px;
    }

    .activity-avatar img {
        width: 39px;
        height: 39px;
    }

    .activity-content p {
        font-size: 12px;
    }

    .activity-post img {
        width: 39px;
        height: 48px;
    }

    .activity-action {
        padding: 7px 9px;
        font-size: 10px;
    }

    .activity-symbol {
        width: 24px;
        height: 24px;
        font-size: 13px;
    }

    .mobile-footer {
        position: fixed;
        display: block;

        left: 0;
        right: 0;
        bottom: 0;

        height: 65px;
        z-index: 100;

        background: rgba(8, 10, 17, 0.96);
        backdrop-filter: blur(18px);

        border-top: 1px solid #252737;
    }

    .mobile-footer nav {
        height: 100%;

        display: flex;
        align-items: center;
        justify-content: space-around;
    }

    .mobile-footer nav a {
        width: 42px;
        height: 42px;

        display: grid;
        place-items: center;

        color: #85899a;
        font-size: 23px;
    }

    .mobile-footer nav img {
        width: 21px;
        height: 21px;
        object-fit: contain;
        opacity: 0.75;
    }

    .mobile-footer nav a.active {
        color: #bf83ff;
    }

    .mobile-footer nav a.active img {
        opacity: 1;
        filter: drop-shadow(0 0 6px #8b35d8);
    }

    .mobile-footer .mobile-create {
        width: 34px;
        height: 34px;

        border-radius: 10px;
        background: linear-gradient(135deg, #5900ff, #b000ff);

        color: white;
        font-size: 25px;
    }
}
