/**
 * LGDMS Icon Box with Button - Stylesheet
 */

.lgdms-icon-box-wrapper {
    display: flex;
    position: relative;
    box-sizing: border-box;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lgdms-media-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lgdms-media-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
    overflow: hidden;
}

.lgdms-media-badge img {
    max-width: 100%;
    height: auto;
    display: block;
}

.lgdms-icon-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lgdms-icon-inner svg {
    display: block;
    width: 1em;
    height: 1em;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.lgdms-content-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.lgdms-box-title {
    margin-top: 0;
    margin-bottom: 6px;
    line-height: 1.25;
    transition: color 0.3s ease;
    word-break: break-word;
}

.lgdms-box-desc {
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.lgdms-button-wrapper {
    display: flex;
}

.lgdms-btn-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.4;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-sizing: border-box;
}

/* Underline style matching user reference */
.lgdms-btn-link.lgdms-style-link_underline {
    border-bottom: 1.5px solid currentColor;
    padding-bottom: 3px;
    width: fit-content;
}

.lgdms-btn-link.lgdms-style-solid_button {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.lgdms-btn-text {
    display: inline-block;
}

.lgdms-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
    will-change: transform;
}

.lgdms-btn-icon svg {
    width: 1em;
    height: 1em;
    display: block;
}

/* Hover rotation animation */
.lgdms-btn-link.has-icon-rotate:hover .lgdms-btn-icon {
    transform: rotate(45deg);
}

/* Responsive fallbacks */
@media (max-width: 767px) {
    .lgdms-icon-box-wrapper.lgdms-layout-column {
        flex-direction: column;
        align-items: flex-start;
    }
}
