/**
 * Lion Social Share - Frontend Styles
 * LionWP Theme Colors: Orange #E67E22, Dark #1A1A2E
 */

:root {
    --lss-orange: #E67E22;
    --lss-orange-hover: #D35400;
    --lss-dark: #1A1A2E;
    --lss-dark-light: #2D2D44;
    --lss-white: #FFFFFF;
    --lss-gray: #6B7280;
    --lss-radius: 8px;
    --lss-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --lss-transition: all 0.3s ease;
}

/* Base Buttons Container */
.lss-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

/* Base Button */
.lss-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--btn-color, var(--lss-orange));
    color: var(--lss-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--lss-transition);
    cursor: pointer;
    border: none;
    line-height: 1;
}

.lss-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--lss-shadow);
    filter: brightness(1.1);
    color: var(--lss-white);
}

.lss-btn:active {
    transform: translateY(0);
}

.lss-btn.lss-copied {
    background: var(--lss-success, #22c55e) !important;
}

.lss-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.lss-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.lss-label {
    white-space: nowrap;
}

/* No Labels */
.lss-no-labels .lss-btn {
    padding: 12px;
}

/* ================================
   SIZE VARIATIONS
================================ */

/* Small */
.lss-size-small .lss-btn {
    padding: 6px 10px;
    font-size: 12px;
    gap: 5px;
}
.lss-size-small .lss-icon {
    width: 14px;
    height: 14px;
}
.lss-size-small.lss-no-labels .lss-btn {
    padding: 8px;
}

/* Large */
.lss-size-large .lss-btn {
    padding: 14px 22px;
    font-size: 16px;
    gap: 10px;
}
.lss-size-large .lss-icon {
    width: 22px;
    height: 22px;
}
.lss-size-large.lss-no-labels .lss-btn {
    padding: 16px;
}

/* ================================
   STYLE: ROUNDED (Default)
================================ */
.lss-style-rounded .lss-btn {
    border-radius: var(--lss-radius);
}

/* ================================
   STYLE: SQUARE
================================ */
.lss-style-square .lss-btn {
    border-radius: 0;
}

/* ================================
   STYLE: CIRCLE
================================ */
.lss-style-circle .lss-btn {
    border-radius: 50%;
    padding: 14px;
    width: 48px;
    height: 48px;
    justify-content: center;
}
.lss-style-circle .lss-label {
    display: none;
}
.lss-style-circle.lss-size-small .lss-btn {
    width: 36px;
    height: 36px;
    padding: 10px;
}
.lss-style-circle.lss-size-large .lss-btn {
    width: 60px;
    height: 60px;
    padding: 18px;
}

/* ================================
   STYLE: PILL
================================ */
.lss-style-pill .lss-btn {
    border-radius: 50px;
    padding: 10px 20px;
}
.lss-style-pill.lss-no-labels .lss-btn {
    padding: 12px;
    border-radius: 50%;
}

/* ================================
   STYLE: LEAF
================================ */
.lss-style-leaf .lss-btn {
    border-radius: 20px 4px 20px 4px;
}

/* ================================
   STYLE: HEXAGON
================================ */
.lss-style-hexagon .lss-btn {
    position: relative;
    padding: 14px 20px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}
.lss-style-hexagon.lss-no-labels .lss-btn {
    width: 55px;
    height: 48px;
    padding: 0;
    justify-content: center;
}

/* ================================
   STYLE: DIAMOND
================================ */
.lss-style-diamond .lss-btn {
    transform: rotate(0deg);
    border-radius: 4px;
    position: relative;
}
.lss-style-diamond .lss-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    transform: rotate(45deg) scale(0.7);
    border-radius: 4px;
    z-index: -1;
}
.lss-style-diamond .lss-btn:hover {
    transform: translateY(-2px);
}

/* ================================
   STYLE: GRADIENT
================================ */
.lss-style-gradient .lss-btn {
    border-radius: var(--lss-radius);
    background: linear-gradient(135deg, var(--btn-color) 0%, color-mix(in srgb, var(--btn-color) 70%, black) 100%);
}
.lss-style-gradient .lss-btn:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--btn-color) 90%, white) 0%, var(--btn-color) 100%);
}

/* ================================
   STYLE: OUTLINE
================================ */
.lss-style-outline .lss-btn {
    background: transparent;
    border: 2px solid var(--btn-color);
    color: var(--btn-color);
    border-radius: var(--lss-radius);
}
.lss-style-outline .lss-btn:hover {
    background: var(--btn-color);
    color: var(--lss-white);
}

/* ================================
   STYLE: MINIMAL
================================ */
.lss-style-minimal .lss-btn {
    background: transparent;
    color: var(--btn-color);
    padding: 8px 12px;
}
.lss-style-minimal .lss-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ================================
   STICKY SIDEBAR
================================ */
.lss-sticky {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lss-sticky-left {
    left: 0;
}

.lss-sticky-right {
    right: 0;
}

.lss-sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--btn-color, var(--lss-orange));
    color: var(--lss-white);
    text-decoration: none;
    transition: var(--lss-transition);
}

.lss-sticky-left .lss-sticky-btn {
    border-radius: 0 8px 8px 0;
}

.lss-sticky-right .lss-sticky-btn {
    border-radius: 8px 0 0 8px;
}

.lss-sticky-btn:hover {
    transform: scale(1.1);
    color: var(--lss-white);
}

.lss-sticky-btn .lss-icon {
    width: 22px;
    height: 22px;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .lss-buttons {
        justify-content: center;
    }
    
    .lss-sticky {
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        background: var(--lss-white);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 10px;
    }
    
    .lss-sticky-left,
    .lss-sticky-right {
        left: 0;
        right: 0;
    }
    
    .lss-sticky-btn {
        border-radius: 50% !important;
        width: 44px;
        height: 44px;
    }
}

/* ================================
   DARK MODE SUPPORT
================================ */
@media (prefers-color-scheme: dark) {
    .lss-style-minimal .lss-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}
