/* =============================================================
   Vkard Feature Card Widget - frontend styles
   ============================================================= */

.vkfc__card,
.vkfc__card * {
    box-sizing: border-box;
}

.vkfc__card {
    --vkfc-hover-elevation: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 24px 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.03),
        0 8px 24px rgba(0, 0, 0, 0.05),
        0 20px 40px rgba(0, 0, 0, 0.04);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.vkfc__card:hover,
.vkfc__card:focus-within {
    background-color: #f8fafc;
}

.vkfc__visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70%;
    margin: auto 0;
}

.vkfc__image {
    display: block;
    width: 200px;
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.vkfc__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: auto;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.vkfc__card:hover .vkfc__content,
.vkfc__card:focus-within .vkfc__content {
    transform: translateY(calc(var(--vkfc-hover-elevation) * -1));
}

.vkfc__icon {
    display: inline-flex;
    color: #404040;
    font-size: 38px;
    line-height: 1;
}

.vkfc__icon i,
.vkfc__icon svg {
    display: block;
}

.vkfc__icon svg {
    width: 38px;
    height: 38px;
    fill: currentColor;
}

.vkfc__title {
    margin: 0;
    color: #404040;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.vkfc__description {
    margin: 0;
    color: #a3a3a3;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

.vkfc__cta {
    position: absolute;
    top: 100%;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    color: #0099ff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    opacity: 0;
    transform: translateY(8px);
    transition:
        color 0.2s ease,
        opacity 0.25s ease,
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.vkfc__cta:hover,
.vkfc__cta:focus-visible {
    color: #0284c7;
    text-decoration: none;
}

.vkfc__card:hover .vkfc__cta,
.vkfc__card:focus-within .vkfc__cta {
    opacity: 1;
    transform: translateY(0);
}

.vkfc__cta-icon,
.vkfc__cta-icon i,
.vkfc__cta-icon svg {
    display: block;
}

.vkfc__cta-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

@media (hover: none) {
    .vkfc__content {
        transform: translateY(calc(var(--vkfc-hover-elevation) * -1));
    }

    .vkfc__cta {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vkfc__card,
    .vkfc__content,
    .vkfc__cta {
        transition: none;
    }
}
