/* ================================================================
   Karak Social Login — Frontend Button Styles
   Uses specific selectors + !important resets on cosmetic props
   to survive aggressive theme CSS without touching anything else.
   ================================================================ */

/* ── Wrapper ── */
.lsl-button-wrap {
    margin: 16px 0;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* ── Divider ── */
.lsl-divider {
    display: flex !important;
    align-items: center !important;
    margin: 0 0 14px !important;
    gap: 10px;
    color: #8c8f94;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.lsl-divider::before,
.lsl-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dcdcde;
}

/* ── Base Button — reset every cosmetic property themes touch ── */
.lsl-button-wrap .lsl-linkedin-btn {
    /* layout */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    box-sizing: border-box !important;

    /* reset theme button overrides */
    border: none !important;
    border-radius: 4px !important;
    outline: none;
    box-shadow: none !important;
    text-decoration: none !important;

    /* typography — all !important to beat theme button styles */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    white-space: nowrap !important;

    /* interaction */
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease !important;

    /* height — themes often force a fixed height */
    height: auto !important;
    min-height: 0 !important;
}

.lsl-button-wrap .lsl-linkedin-btn:focus {
    outline: 3px solid #0077b5 !important;
    outline-offset: 2px !important;
}

.lsl-button-wrap .lsl-linkedin-btn:active {
    transform: translateY(1px) !important;
}

/* ── Style: default (LinkedIn Blue) ── */
.lsl-button-wrap.lsl-style-default .lsl-linkedin-btn {
    background: #0a66c2 !important;
    color: #ffffff !important;
}
.lsl-button-wrap.lsl-style-default .lsl-linkedin-btn:hover {
    background: #004182 !important;
    box-shadow: 0 2px 8px rgba(10, 102, 194, 0.4) !important;
    color: #ffffff !important;
}

/* ── Style: light ── */
.lsl-button-wrap.lsl-style-light .lsl-linkedin-btn {
    background: #ffffff !important;
    color: #0a66c2 !important;
    border: 1.5px solid #0a66c2 !important;
}
.lsl-button-wrap.lsl-style-light .lsl-linkedin-btn:hover {
    background: #f0f7ff !important;
    box-shadow: 0 2px 8px rgba(10, 102, 194, 0.15) !important;
}
.lsl-button-wrap.lsl-style-light .lsl-btn-icon svg path {
    fill: #0a66c2;
}

/* ── Style: icon only ── */
.lsl-button-wrap.lsl-style-icon_only .lsl-linkedin-btn {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #0a66c2 !important;
    color: #ffffff !important;
}
.lsl-button-wrap.lsl-style-icon_only .lsl-btn-label {
    display: none !important;
}

/* ── Icon ── */
.lsl-button-wrap .lsl-btn-icon {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}
.lsl-button-wrap .lsl-btn-icon svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
}

/* ── Label ── */
.lsl-button-wrap .lsl-btn-label {
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* ── Spinner ── */
.lsl-button-wrap .lsl-btn-spinner {
    /* Hidden by default — shown only when .lsl-loading is added by JS.
       NOTE: do NOT use display:flex !important here; it would override
       the inline style="display:none;" set in the button HTML. */
    display: none;
    align-items: center;
}
.lsl-button-wrap .lsl-linkedin-btn.lsl-loading .lsl-btn-spinner {
    display: flex !important;   /* only visible while awaiting LinkedIn redirect */
}
.lsl-button-wrap .lsl-linkedin-btn.lsl-loading .lsl-btn-icon,
.lsl-button-wrap .lsl-linkedin-btn.lsl-loading .lsl-btn-label {
    opacity: 0.5;
}
.lsl-button-wrap .lsl-linkedin-btn.lsl-loading {
    pointer-events: none !important;
    cursor: wait !important;
}

/* ── wp-login.php overrides ── */
.login .lsl-button-wrap .lsl-linkedin-btn {
    border-radius: 3px !important;
}
.login .lsl-divider {
    font-size: 12px !important;
}
