/**
 * App Card Component (1:1 with Figma)
 */

.app-card {
    width: 106px; /* 94px + обводка 6px с каждой стороны */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px; /* sp-12 */
    text-decoration: none;
}

.app-card__image {
    width: 106px;
    height: 106px;
    border-radius: 28%; /* squircle-style (плавная кривая как у иконок приложений) */
    background-color: var(--color-card);
    display: block;
    overflow: hidden;
}

.app-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-card__label {
    width: 100%;
    font-family: var(--font-body);
    font-size: var(--font-size-body-4-desktop); /* body-4 desktop */
    font-weight: 300;
    line-height: var(--line-height-body-4-desktop); /* 120% */
    text-align: center;
    color: var(--color-accent); /* #FF00FF */
    white-space: pre-wrap;
    transition: color 0.5s ease, text-decoration-color 0.5s ease;
}


.app-card:hover .app-card__label {
    color: var(--color-subaccent);
    text-decoration-line: underline;
    text-decoration-color: var(--color-subaccent-a30);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0s ease, text-decoration-color 0s ease;
}

/* На планшете и мобилке: картинка того же размера (94px), текст справа */
@media (max-width: 1024px) {
    .app-card {
        flex-direction: row;
        align-items: center;
        width: 100%;
        gap: 24px;
        justify-content: flex-start;
    }

    .app-card__image {
        flex-shrink: 0;
        width: 106px;
        min-width: 106px;
        height: 106px;
    }

    .app-card__label {
        flex: 1;
        text-align: left;
        font-size: var(--font-size-body-4-mobile);
        line-height: var(--line-height-body-4-mobile);
    }
}

