/**
 * Forum Activity — My Account page styles
 *
 * @package LustMich
 */

/* ========================================
   Activity Cards
   ======================================== */

.lm-forum-activity {
    padding: 10px 0 0;
}

.lm-activity-cards {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
    justify-content: center;
    flex-wrap: wrap;
}

.lm-activity-card {
    flex: 1;
    min-width: 138px;
    max-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 14px 22px !important;
    background: #fff;
    border: 1px solid #b0b0b0 !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit !important;
    box-shadow: 0 3px 4px rgb(0 0 0 / 20%);
    position: relative;
}

.lm-activity-card::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 20%;
    right: 20%;
    height: 3px;
    border-radius: 2px;
    background: transparent;
    transition: all 0.2s ease;
}

.lm-activity-card:hover, .lm-activity-card:focus{
    box-shadow: 0 2px 10px rgba(162, 133, 115, 0.12);
    background-color: transparent !important;
    border: 1px solid #b0b0b0 !important;
}

.lm-activity-card.is-active::after {
    background: #A28573;
    left: 10%;
    right: 10%;
}

.lm-activity-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lm-activity-card__count {
    font-size: 26px;
    font-weight: 600;
    color: #201712;
    line-height: 1;
}

.lm-activity-card__label {
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.3;
    letter-spacing:2px !important;
}

/* ========================================
   Dynamic Content Area
   ======================================== */

.lm-activity-content {
    margin-bottom: 24px;
    min-height: 80px;
}

.lm-activity-content__loader {
    text-align: center;
    padding: 40px 0;
}

.lm-activity-spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 2px solid #E8E0D8;
    border-top-color: #A28573;
    border-radius: 50%;
    animation: lm-spin 0.6s linear infinite;
}

@keyframes lm-spin {
    to { transform: rotate(360deg); }
}

.lm-activity-content__empty,
.lm-activity-empty {
    text-align: center;
    padding: 32px 0;
    color: #999;
    font-size: 14px;
}

/* Topic rows inside activity content */
.lm-activity-content .lm-topic-list {
    border: 1px solid #E8E0D8;
    border-radius: 8px;
    overflow: hidden;
}

.lm-activity-content .lm-topic-row {
    border-bottom: 1px solid #E8E0D8;
}

.lm-activity-content .lm-topic-row:last-child {
    border-bottom: none;
}

/* ========================================
   Unsubscribe Button
   ======================================== */

.lm-unsub-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px !important;
    border: 1px solid #c5c5c5 !important;
    border-radius: 6px !important;
    background: #fff;
    color: #999 !important;
    font-size: 10px !important;
    letter-spacing: normal !important;
    text-transform: unset !important;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lm-unsub-btn:hover , .lm-unsub-btn:active, .lm-unsub-btn:focus {
    color: #c0392b !important;
    border-color: #c0392b !important;
    background-color: transparent !important;
}

.lm-unsub-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.lm-unsub-btn svg {
    flex-shrink: 0;
}

/* ========================================
   Last Contribution
   ======================================== */

.lm-activity-last {
    text-align: center;
    padding: 16px 0;
    font-size: 13px;
    color: #999;
    border-top: 1px solid #E8E0D8;
}

.lm-activity-last strong {
    color: #201712;
    font-weight: 500;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 782px) {
    .lm-activity-card {
        min-width: 100px;
        padding: 16px 10px 18px;
    }
    .lm-activity-card__count {
        font-size: 22px;
    }
    .lm-activity-card__label {
        font-size: 11px;
    }
    .lm-activity-card__icon svg {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .lm-activity-cards {
        gap: 8px;
    }
    .lm-activity-card {
        min-width: 0;
        flex: 1 0 calc(33.333% - 6px);
        max-width: none;
        padding: 14px 8px 16px;
    }
    .lm-activity-card__icon svg {
        width: 28px;
        height: 28px;
    }
    .lm-activity-card__count {
        font-size: 20px;
    }
}
