/* =================================
   MY ACTIVITY PAGE
================================= */

.activity-page-header {
    background: linear-gradient(
        135deg,
        #eef1ff 0%,
        #f7f8ff 100%
    );

    padding: 55px 7%;

    border-bottom: 1px solid #e5e7f5;
}


.header-content {
    max-width: 1000px;

    margin: auto;

    display: flex;

    align-items: center;

    gap: 22px;
}


.header-icon {
    width: 64px;
    height: 64px;

    background-color: #4f46e5;

    color: white;

    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;

    box-shadow:
        0 8px 20px rgba(79, 70, 229, 0.22);
}


.header-content p {
    color: #4f46e5;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;

    margin-bottom: 7px;
}


.header-content h1 {
    font-size: 40px;

    margin-bottom: 7px;
}


.header-content span {
    color: #666;

    font-size: 15px;
}


/* Main section */

.activity-section {
    width: 86%;

    max-width: 1000px;

    margin: auto;

    padding: 55px 0 80px;
}


/* Heading */

.activity-title {
    margin-bottom: 25px;
}


.small-title {
    color: #4f46e5;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 1.5px;

    margin-bottom: 7px;
}


.activity-title h2 {
    font-size: 28px;

    margin-bottom: 7px;
}


.activity-title > div > p:last-child {
    color: #777;

    font-size: 15px;
}


/* Tabs */

.activity-tabs {
    display: flex;

    gap: 8px;

    padding: 5px;

    background-color: #f5f5f8;

    border-radius: 10px;

    width: fit-content;

    margin-bottom: 25px;
}


.activity-tabs button {
    border: none;

    background-color: transparent;

    padding: 11px 19px;

    border-radius: 7px;

    color: #666;

    font-size: 14px;

    cursor: pointer;

    transition: all 0.2s;
}


.activity-tabs button:hover {
    color: #4f46e5;

    background-color: white;
}


.activity-tabs button.active-tab {
    background-color: white;

    color: #4f46e5;

    font-weight: bold;

    box-shadow:
        0 2px 7px rgba(0, 0, 0, 0.08);
}


/* Activity cards */

.activity-card {
    background-color: white;

    padding: 22px 25px;

    margin-bottom: 14px;

    border-radius: 12px;

    border: 1px solid #eeeeee;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    box-shadow:
        0 3px 14px rgba(0, 0, 0, 0.05);

    transition: all 0.2s ease;
}


.activity-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.08);

    border-color: #dddff5;
}


.activity-card h3 {
    font-size: 17px;

    margin-bottom: 7px;
}


.activity-card p {
    color: #777;

    font-size: 14px;

    margin: 4px 0;
}


/* Activity type */

.activity-type {
    padding: 7px 13px;

    background-color: #eef1ff;

    color: #4f46e5;

    border-radius: 20px;

    font-size: 12px;

    font-weight: bold;

    text-transform: capitalize;

    white-space: nowrap;
}


/* Empty state */

.empty-activity {
    background-color: white;

    min-height: 270px;

    padding: 50px 25px;

    border-radius: 14px;

    border: 1px dashed #d6d7e2;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}


.empty-circle {
    width: 62px;
    height: 62px;

    background-color: #eef1ff;

    color: #4f46e5;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 18px;
}


.empty-circle span {
    font-size: 28px;

    font-weight: 300;
}


.empty-activity h3 {
    font-size: 20px;

    margin-bottom: 9px;
}


.empty-activity p {
    max-width: 450px;

    color: #777;

    line-height: 1.6;

    font-size: 14px;
}


/* Footer */

footer {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 30px 7%;
}


.footer-left p {
    margin-top: 5px;

    color: #aaa;
}


/* Mobile */

@media (max-width: 650px) {

    .activity-page-header {
        padding: 40px 7%;
    }

    .header-content {
        align-items: flex-start;
    }

    .header-icon {
        width: 52px;
        height: 52px;

        font-size: 23px;

        flex-shrink: 0;
    }

    .header-content h1 {
        font-size: 32px;
    }

    .activity-section {
        width: 90%;
    }

    .activity-tabs {
        width: 100%;

        overflow-x: auto;
    }

    .activity-tabs button {
        white-space: nowrap;
    }

    .activity-card {
        flex-direction: column;

        align-items: flex-start;
    }

    .activity-type {
        align-self: flex-start;
    }

    footer {
        flex-direction: column;

        gap: 15px;

        text-align: center;
    }
}