/**
 * Widgetico Lite - Button Widget CSS
 * 8 graficky různých stylů tlačítek s CSS custom properties
 * Verze: 2.6.36
 */

/* =====================================================
   WRAPPER & ZAROVNÁNÍ
   ===================================================== */

.widgetico-button-wrapper {
    display: block;
    width: 100%;
    line-height: 1;
}

.widgetico-button--align-left   { text-align: left;   }
.widgetico-button--align-center { text-align: center; }
.widgetico-button--align-right  { text-align: right;  }

.widgetico-button--align-full .widgetico-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* =====================================================
   ZÁKLADNÍ BUTTON
   ===================================================== */

.widgetico-btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    transition: all 0.25s ease;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
    vertical-align: middle;
    border: 2px solid transparent;
    outline: none;
}

/* =====================================================
   VELIKOSTI
   ===================================================== */

.widgetico-btn--small  { padding: 9px 22px;  font-size: 0.75rem; }
.widgetico-btn--medium { padding: 13px 32px; font-size: 0.88rem; }
.widgetico-btn--large  { padding: 18px 46px; font-size: 1.0rem;  }

/* =====================================================
   1. SOLID — plné pozadí, mírně zaoblené, zdvihne se na hover
   ===================================================== */

.widgetico-btn--solid {
    background-color: var(--wb-color, #0073aa);
    color: var(--wb-text, #ffffff);
    border-color: var(--wb-color, #0073aa);
    border-radius: 5px;
}

.widgetico-btn--solid:hover,
.widgetico-btn--solid:focus {
    background-color: var(--wb-hover, #005f8d);
    border-color: var(--wb-hover, #005f8d);
    color: var(--wb-hover-text, var(--wb-text, #ffffff));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* =====================================================
   2. OUTLINE — průhledné s barevným obrysem, vyplní se na hover
   ===================================================== */

.widgetico-btn--outline {
    background-color: transparent;
    color: var(--wb-color, #0073aa);
    border-color: var(--wb-color, #0073aa);
    border-radius: 5px;
    border-width: 2px;
}

.widgetico-btn--outline:hover,
.widgetico-btn--outline:focus {
    background-color: var(--wb-hover, var(--wb-color, #0073aa));
    color: var(--wb-hover-text, var(--wb-text, #ffffff));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    text-decoration: none;
}

/* =====================================================
   3. PILL — pilulkový tvar (silné zaoblení), plné pozadí
   ===================================================== */

.widgetico-btn--pill {
    background-color: var(--wb-color, #0073aa);
    color: var(--wb-text, #ffffff);
    border-color: var(--wb-color, #0073aa);
    border-radius: 50px;
}

.widgetico-btn--pill:hover,
.widgetico-btn--pill:focus {
    background-color: var(--wb-hover, #005f8d);
    border-color: var(--wb-hover, #005f8d);
    color: var(--wb-hover-text, var(--wb-text, #ffffff));
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    text-decoration: none;
}

/* =====================================================
   4. 3D — prostorový efekt, stiskne se při hover/kliknutí
   ===================================================== */

.widgetico-btn--3d {
    background-color: var(--wb-color, #0073aa);
    color: var(--wb-text, #ffffff);
    border: none;
    border-radius: 6px;
    box-shadow: 0 7px 0 var(--wb-shadow, #005180), 0 9px 8px rgba(0, 0, 0, 0.28);
    transform: translateY(0);
}

.widgetico-btn--3d:hover,
.widgetico-btn--3d:focus {
    box-shadow: 0 4px 0 var(--wb-shadow, #005180), 0 5px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(3px);
    color: var(--wb-hover-text, var(--wb-text, #ffffff));
    text-decoration: none;
}

.widgetico-btn--3d:active {
    box-shadow: 0 1px 0 var(--wb-shadow, #005180), 0 2px 2px rgba(0, 0, 0, 0.12);
    transform: translateY(6px);
}

/* =====================================================
   5. GRADIENT — lineární přechod dvou barev, reverzuje na hover
   ===================================================== */

.widgetico-btn--gradient {
    background: linear-gradient(135deg, var(--wb-color, #0073aa) 0%, var(--wb-color2, #00b4d8) 100%);
    color: var(--wb-text, #ffffff);
    border: none;
    border-radius: 5px;
}

.widgetico-btn--gradient:hover,
.widgetico-btn--gradient:focus {
    background: linear-gradient(135deg, var(--wb-color2, #00b4d8) 0%, var(--wb-color, #0073aa) 100%);
    color: var(--wb-hover-text, var(--wb-text, #ffffff));
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    text-decoration: none;
}

/* =====================================================
   6. NEON — zářivý glow efekt, vhodné na tmavé pozadí
   ===================================================== */

.widgetico-btn--neon {
    background-color: transparent;
    color: var(--wb-color, #00e5ff);
    border-color: var(--wb-color, #00e5ff);
    border-radius: 4px;
    box-shadow:
        0 0 6px var(--wb-color, #00e5ff),
        0 0 12px var(--wb-color, #00e5ff),
        inset 0 0 6px rgba(0, 229, 255, 0.08);
    text-shadow: 0 0 8px var(--wb-color, #00e5ff);
}

.widgetico-btn--neon:hover,
.widgetico-btn--neon:focus {
    background-color: var(--wb-hover, var(--wb-color, #00e5ff));
    color: var(--wb-hover-text, #000000);
    box-shadow:
        0 0 10px var(--wb-color, #00e5ff),
        0 0 24px var(--wb-color, #00e5ff),
        0 0 40px var(--wb-color, #00e5ff);
    text-shadow: none;
    transform: translateY(-1px);
    text-decoration: none;
}

/* =====================================================
   7. GHOST — průhledné, jemný rámeček, pozvolný fill na hover
   ===================================================== */

.widgetico-btn--ghost {
    background-color: transparent;
    color: var(--wb-color, #0073aa);
    border: 1.5px solid var(--wb-color, #0073aa);
    border-radius: 5px;
    opacity: 0.72;
    transition: opacity 0.2s ease, background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.widgetico-btn--ghost:hover,
.widgetico-btn--ghost:focus {
    opacity: 1;
    background-color: var(--wb-hover, var(--wb-color, #0073aa));
    color: var(--wb-hover-text, var(--wb-text, #ffffff));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
    text-decoration: none;
}

/* =====================================================
   8. UNDERLINE — minimalistické, text s animovaným podtržením
   ===================================================== */

.widgetico-btn--underline {
    background: none;
    border: none;
    border-radius: 0;
    color: var(--wb-color, #0073aa);
    padding-left: 2px;
    padding-right: 2px;
    overflow: visible;
    text-decoration: none;
    position: relative;
}

.widgetico-btn--underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--wb-color, #0073aa);
    transform: scaleX(0.3);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.widgetico-btn--underline:hover::after,
.widgetico-btn--underline:focus::after {
    transform: scaleX(1);
}

.widgetico-btn--underline:hover,
.widgetico-btn--underline:focus {
    color: var(--wb-hover-text, var(--wb-color, #0073aa));
    letter-spacing: 0.08em;
    text-decoration: none;
}

/* =====================================================
   IKONY
   ===================================================== */

.widgetico-btn--has-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45em;
}

.widgetico-button--align-full .widgetico-btn--has-icon {
    display: flex;
}

.widgetico-btn--has-icon.widgetico-btn--icon-right {
    flex-direction: row-reverse;
}

.widgetico-btn--has-icon.widgetico-btn--icon-top {
    flex-direction: column;
}

.widgetico-btn--has-icon.widgetico-btn--icon-bottom {
    flex-direction: column-reverse;
}

.widgetico-btn-icon {
    display: inline-block;
    flex-shrink: 0;
    line-height: 1;
    width: auto !important;
    height: auto !important;
}

/* =====================================================
   RESPONZIVNÍ DESIGN
   ===================================================== */

@media (max-width: 600px) {
    .widgetico-button--align-full .widgetico-btn,
    .widgetico-btn--large {
        font-size: 0.9rem;
        padding: 14px 28px;
    }

    .widgetico-btn--3d {
        box-shadow: 0 5px 0 var(--wb-shadow, #005180), 0 6px 5px rgba(0, 0, 0, 0.22);
    }
}
