/* Button Shapes Widget Styles */
/* Autor: ICTONE */

.button-shapes-container {
    display: inline-block;
    position: relative;
}

.button-shapes-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.button-shapes-link:hover {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Domyślne style hover - tylko dla buttonów bez specjalnych animacji */
.button-shapes-link:not([class*="hover-"]):hover,
.button-shapes-link.hover-none:hover {
    transform: none;
    animation: none;
    box-shadow: none;
    filter: none;
    text-shadow: none;
    letter-spacing: normal;
    word-spacing: normal;
    opacity: 1;
}

.button-shapes-link:focus {
    outline: none;
}

.button-text {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    z-index: 2;
}

.button-shape {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
}

.button-shape svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: all 0.3s ease;
}

/* Kształty dziedziczą animacje hover od buttona */
.button-shapes-link:hover .button-shape {
    transition: all 0.3s ease;
}

/* Style dla kształtów w edytorze - nadpisywane przez JavaScript */
.elementor-editor-content .button-shape {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
}

/* Style dla różnych rozmiarów kształtów - generowane przez JavaScript */
.button-shape[class*="size-"] {
    transition: all 0.3s ease !important;
}

.button-shape.before {
    margin-right: 10px;
}

.button-shape.after {
    margin-left: 10px;
}

.button-shape.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0.1;
    pointer-events: none;
}

/* Hover Animations - WŁĄCZONE */
.hover-pulse {
    transition: all 0.3s ease;
}

.hover-pulse:hover {
    animation: pulse 1s infinite !important;
}

.hover-bounce {
    transition: all 0.3s ease;
}

.hover-bounce:hover {
    animation: bounce 1s infinite !important;
}

.hover-shake {
    transition: all 0.3s ease;
}

.hover-shake:hover {
    animation: shake 0.5s ease-in-out !important;
}

.hover-scale {
    transition: all 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.1) !important;
}

/* Nowe efekty hover - WŁĄCZONE */
.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 124, 186, 0.6) !important;
    transform: scale(1.05) !important;
}

.hover-slide:hover {
    transform: translateX(5px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.hover-rotate:hover {
    transform: rotate(5deg) !important;
}

.hover-blur:hover {
    filter: blur(1px) !important;
}

.hover-brightness:hover {
    filter: brightness(1.2) !important;
}

.hover-contrast:hover {
    filter: contrast(1.2) !important;
}

.hover-saturate:hover {
    filter: saturate(1.5) !important;
}

.hover-invert:hover {
    filter: invert(1) !important;
}

.hover-sepia:hover {
    filter: sepia(0.8) !important;
}

.hover-grayscale:hover {
    filter: grayscale(1) !important;
}

.hover-opacity:hover {
    opacity: 0.8 !important;
}

.hover-border-glow:hover {
    box-shadow: 0 0 15px currentColor !important;
    border-color: currentColor !important;
}

.hover-text-shadow:hover {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.hover-letter-spacing:hover {
    letter-spacing: 2px !important;
}

.hover-word-spacing:hover {
    word-spacing: 4px !important;
}

/* Keyframe Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-2px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(2px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .button-shapes-link {
        flex-direction: column;
        text-align: center;
    }
    
    .button-shape.before,
    .button-shape.after {
        margin: 5px 0;
    }
    
    .button-shape.overlay {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        opacity: 0.3;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .button-shapes-link {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .button-shape {
        width: 16px !important;
        height: 16px !important;
    }
}

/* Accessibility */
.button-shapes-link:focus-visible {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .button-shapes-link {
        border: 2px solid currentColor;
    }
    
    .button-shape {
        opacity: 1;
    }
}

/* Reduced motion support - WYŁĄCZONE */
@media (prefers-reduced-motion: reduce) {
    .button-shapes-link,
    .button-shape,
    .button-shape svg {
        transition: none;
    }
    
    .hover-pulse:hover,
    .hover-bounce:hover,
    .hover-shake:hover {
        animation: none;
    }
    
    .hover-scale:hover {
        transform: none;
    }
}

/* Klasa hover-none - wyłącza wszystkie animacje */
.hover-none:hover {
    transform: none !important;
    animation: none !important;
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

/* Print styles */
@media print {
    .button-shapes-link {
        color: #000 !important;
        background: transparent !important;
        border: 1px solid #000 !important;
    }
    
    .button-shape {
        display: none;
    }
} 