/**
 * Gadby Button Block - Frontend Styles
 */

.gadby-button-wrapper {
    display: inline-block;
}

.gadby-button {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    border-radius: 50%;
    text-decoration: none;
    font-family: var(--font-heading, 'Auguste Sans', serif);
    font-weight: 600;
    /* text-transform controlled via inline style from block settings */
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

/* Size Variations */
.gadby-button-small {
    width: 80px;
    height: 80px;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

.gadby-button-medium {
    width: 120px;
    height: 120px;
    font-size: 1.125rem;
    letter-spacing: 0.15em;
}

.gadby-button-large {
    width: 160px;
    height: 160px;
    font-size: 1.375rem;
    letter-spacing: 0.15em;
}

.gadby-button-xl {
    width: 200px;
    height: 200px;
    font-size: 1.5rem;
    letter-spacing: 0.15em;
}

.gadby-button-xxl {
    width: 250px;
    height: 250px;
    font-size: 1.75rem;
    letter-spacing: 0.15em;
}

/* Hover Effects - Default (scale + opacity) */
.gadby-button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Hover Effects - Custom colors (no scale, color change instead) */
.gadby-button.gadby-button-has-hover:hover {
    transform: none;
    opacity: 1;
    background-color: var(--gadby-button-hover-bg, inherit) !important;
    color: var(--gadby-button-hover-color, inherit) !important;
}

.gadby-button:active {
    transform: scale(0.98);
}

.gadby-button.gadby-button-has-hover:active {
    transform: scale(0.98);
}

/* Button Text with underline */
.gadby-button-text {
    display: block;
    line-height: 1.2;
    position: relative;
    padding-bottom: 6px;
}

/* Decorative underline */
.gadby-button-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--gadby-button-underline-width, 100%);
    height: 2px;
    background-color: currentColor;
}

/* No underline variant */
.gadby-button-no-underline .gadby-button-text::after {
    display: none;
}

.gadby-button-no-underline .gadby-button-text {
    padding-bottom: 0;
}

/* Button Icon */
.gadby-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gadby-button-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.gadby-button-small .gadby-button-icon svg {
    width: 14px;
    height: 14px;
}

.gadby-button-medium .gadby-button-icon svg {
    width: 20px;
    height: 20px;
}

.gadby-button-large .gadby-button-icon svg {
    width: 26px;
    height: 26px;
}

.gadby-button-xl .gadby-button-icon svg {
    width: 30px;
    height: 30px;
}

.gadby-button-xxl .gadby-button-icon svg {
    width: 36px;
    height: 36px;
}

/* Responsive */
@media (max-width: 768px) {
    .gadby-button-small {
        width: 70px;
        height: 70px;
        font-size: 0.7rem;
    }

    .gadby-button-medium {
        width: 100px;
        height: 100px;
        font-size: 0.9rem;
    }

    .gadby-button-large {
        width: 130px;
        height: 130px;
        font-size: 1.1rem;
    }

    .gadby-button-xl {
        width: 160px;
        height: 160px;
        font-size: 1.25rem;
    }

    .gadby-button-xxl {
        width: 200px;
        height: 200px;
        font-size: 1.5rem;
    }
}
