/**
 * Marthoma Church Theme - Button Widget Styles
 * Flexible line separator like news widget bottom section
 *
 * @package MarthomaChurch
 */

/* Main Container */
.marthoma-button-widget {
    display: block;
    width: 100%;
}

/* Wrapper - horizontal layout with flexible line */
.marthoma-btn-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* When line is enabled, wrapper needs full width */
.marthoma-btn-wrapper.has-line {
    width: 100%;
}

/* Button Link */
.marthoma-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--marthoma-font-body, 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #072538;
    text-decoration: none;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.marthoma-btn-link:hover {
    color: #375EFB;
}

/* Button Text */
.marthoma-btn-text {
    white-space: nowrap;
}

/* Arrow Icon */
.marthoma-btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.marthoma-btn-arrow svg {
    width: 9px;
    height: 9px;
    transition: transform 0.3s ease;
}

.marthoma-btn-link:hover .marthoma-btn-arrow {
    transform: translate(2px, -2px);
}

/* Decorative Line - Flexible, fills remaining space */
.marthoma-btn-line {
    flex: 1 1 auto;
    min-width: 50px;
    height: 2px;
    background-color: #D0D5DD;
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

@media (max-width: 480px) {
    .marthoma-btn-link {
        font-size: 14px;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    .marthoma-btn-link,
    .marthoma-btn-arrow,
    .marthoma-btn-arrow svg {
        transition: none;
    }

    .marthoma-btn-link:hover .marthoma-btn-arrow {
        transform: none;
    }
}

/* ==========================================
   ELEMENTOR EDITOR
   ========================================== */

.elementor-editor-active .marthoma-button-widget {
    min-height: 30px;
}
