/**
 * TCM Button Styles
 * Author: Tickled Chilli
 * Version: 1.0.0
 */

/* Wrapper for Elementor alignment */
.tcm-button-wrapper {
    display: block;
}

/* Base Button Styles */
.tcm-button {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-sizing: border-box;
    line-height: 20px;
}

.tcm-button:hover {
    text-decoration: none;
}

/* Desktop Styles (default) */
.tcm-button {
    font-size: 20px;
    padding: 10px 20px;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .tcm-button {
        font-size: 16px;
        padding: 10px;
    }
}

/* ===================================
   Button Style: Solid with Gradient Hover
   =================================== */

.tcm-button-solid-gradient-hover {
    background-color: #A000FF;
    color: #ffffff;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Gradient overlay */
.tcm-button-solid-gradient-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #A000FF 0%, #50DCC8 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 50px;
}

.tcm-button-solid-gradient-hover:hover::before {
    opacity: 1;
}

.tcm-button-solid-gradient-hover:hover {
    color: #ffffff;
}

/* ===================================
   Button Style: Transparent with Gradient Border
   =================================== */

.tcm-button-transparent-gradient-border {
    background: transparent;
    border: none;
    border-radius: 50px;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

/* Gradient border using mask */
.tcm-button-transparent-gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #A000FF 0%, #50DCC8 100%);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    padding: 1px;
    z-index: -2;
}

/* Gradient fill on hover */
.tcm-button-transparent-gradient-border::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #A000FF 0%, #50DCC8 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tcm-button-transparent-gradient-border:hover::after {
    opacity: 1;
}

.tcm-button-transparent-gradient-border:hover {
    color: #ffffff;
}

/* ===================================
   Button Style: Gradient Border with Icon
   =================================== */

.tcm-button-gradient-border-icon {
    background: #232328;
    border: none;
    border-radius: 50px;
    color: #ffffff;
    position: relative;
    z-index: 1;
    padding-right: 60px !important;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

/* Gradient border using mask */
.tcm-button-gradient-border-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #A000FF 0%, #50DCC8 100%);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    padding: 1px;
    z-index: -2;
}

/* Gradient fill on hover */
.tcm-button-gradient-border-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #A000FF 0%, #50DCC8 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tcm-button-gradient-border-icon:hover::after {
    opacity: 1;
}

.tcm-button-gradient-border-icon:hover {
    color: #ffffff;
}

/* Icon circle on the right */
.tcm-button-gradient-border-icon .tcm-button-icon {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: #A000FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

/* Chevron icon */
.tcm-button-gradient-border-icon .tcm-button-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Mobile adjustments for icon button */
@media screen and (max-width: 768px) {
    .tcm-button-gradient-border-icon {
        padding-right: 50px !important;
    }
    
    .tcm-button-gradient-border-icon .tcm-button-icon {
        width: 26px;
        height: 26px;
        right: 4px;
    }
    
    .tcm-button-gradient-border-icon .tcm-button-icon svg {
        width: 14px;
        height: 14px;
    }
}
