@use '../../../styles/variables' as *;
@use '../../../styles/mixins' as *;

.awt-activity-card {
    display: block;
    position: relative;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    transition: transform $awt-transition-normal, box-shadow $awt-transition-normal;

    *,
    *::before,
    *::after {
        box-sizing: inherit;
    }

    &__inner {
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    &__image-wrap {
        margin-bottom: 1rem;
        cursor: pointer;
    }

    &__image {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    &__icon-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 4rem;
        height: 4rem;
        border-radius: $awt-radius-full;
        background-color: #e2e8f0;
        color: $awt-color-primary;
        margin: 0 auto 1.5rem auto;
        transition: background-color $awt-transition-fast, color $awt-transition-fast;

        svg {
            width: 1.5rem;
            height: 1.5rem;
        }
    }

    &__content {
        width: 100%;
    }

    &__title {
        line-height: 1.3;
        margin: 0 0 0.5rem 0;
    }

    &__description {
        margin: 0;
        line-height: 1.6;
    }

    &__link-badge {
        position: absolute;
        top: 0.625rem;
        right: 0.625rem;
        background-color: #0073aa;
        color: #ffffff;
        border-radius: $awt-radius-sm;
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 0.25rem;
        z-index: 5;
    }

    // --- FUN VARIANT STYLES ---
    &--fun {
        background-color: #ffffff;
        padding: 2rem;
        border-radius: $awt-radius-xl;
        box-shadow: $awt-shadow-lg;

        .awt-activity-card__title {
            font-family: $awt-font-sans;
            font-size: 1.5rem;
            font-weight: 900;
            color: $awt-color-navy;
        }

        .awt-activity-card__description {
            font-size: 1rem;
            color: rgba(38, 70, 83, 0.7);
        }

        &:hover {
            box-shadow: $awt-shadow-2xl;
        }

        &.awt-activity-card--rotate-left:hover {
            transform: rotate(-2deg);
        }

        &.awt-activity-card--rotate-right:hover {
            transform: rotate(2deg);
        }

        &.awt-activity-card--scale:hover {
            transform: scale(1.05);
        }
    }

    // --- ELEGANT VARIANT STYLES ---
    &--elegant {
        background-color: #ffffff;
        padding: 2rem;
        border-radius: $awt-radius-md;
        border: 1px solid #f1f5f9;
        box-shadow: $awt-shadow-sm;

        .awt-activity-card__title {
            font-family: $awt-font-serif;
            font-size: 1.25rem;
            font-weight: 700;
            color: $awt-color-primary;
        }

        .awt-activity-card__description {
            font-size: 0.875rem;
            color: #64748b;
        }

        &:hover {
            box-shadow: $awt-shadow-lg;
            transform: translateY(-2px);

            .awt-activity-card__icon-wrap {
                background-color: $awt-color-primary;
                color: #ffffff;
            }
        }
    }
}
