/**
 * Simple Google Login - Frontend Styles
 */

/* Container */
.sgl-container {
    margin: 16px 0;
    clear: both;
}

.sgl-align-left { text-align: left; }
.sgl-align-center { text-align: center; }
.sgl-align-right { text-align: right; }

/* Separator */
.sgl-separator {
    display: flex;
    align-items: center;
    margin: 16px 0;
    gap: 12px;
}

.sgl-separator::before,
.sgl-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #ddd;
}

.sgl-separator span {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    text-transform: lowercase;
}

/* Button Wrapper */
.sgl-button-wrap {
    display: inline-block;
    max-width: 100%;
}

.sgl-full-width .sgl-button-wrap,
.sgl-full-width .sgl-button {
    display: block;
    width: 100%;
}

/* Button Base */
.sgl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.4;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.sgl-button:hover {
    opacity: 0.9;
    text-decoration: none !important;
}

.sgl-button:active {
    transform: scale(0.98);
}

.sgl-button:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

/* Button Icon */
.sgl-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sgl-button-icon svg {
    width: 20px;
    height: 20px;
}

/* Button Label */
.sgl-button-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===================== */
/* DARK STYLE            */
/* ===================== */
.sgl-style-dark .sgl-button {
    background-color: #4285f4;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.sgl-style-dark .sgl-button:hover {
    background-color: #3367d6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.sgl-style-dark .sgl-button-icon {
    background-color: #ffffff;
    padding: 6px;
    border-radius: 2px;
    margin-left: -12px;
}

/* ===================== */
/* LIGHT STYLE           */
/* ===================== */
.sgl-style-light .sgl-button {
    background-color: #ffffff;
    color: #757575;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.sgl-style-light .sgl-button:hover {
    background-color: #f7f8f8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    color: #333;
}

/* ===================== */
/* CUSTOM STYLE          */
/* ===================== */
.sgl-style-custom .sgl-button {
    background-color: var(--sgl-btn-bg, #4285f4);
    color: var(--sgl-btn-text, #ffffff);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.sgl-style-custom .sgl-button:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ===================== */
/* SHAPES                */
/* ===================== */
.sgl-shape-rounded .sgl-button {
    border-radius: 4px;
}

.sgl-shape-square .sgl-button {
    border-radius: 0;
}

.sgl-shape-pill .sgl-button {
    border-radius: 50px;
}

/* ===================== */
/* SIZES                 */
/* ===================== */
.sgl-size-small .sgl-button {
    padding: 6px 16px;
    font-size: 12px;
}

.sgl-size-small .sgl-button-icon svg {
    width: 16px;
    height: 16px;
}

.sgl-size-medium .sgl-button {
    padding: 10px 24px;
    font-size: 14px;
}

.sgl-size-large .sgl-button {
    padding: 14px 32px;
    font-size: 16px;
}

.sgl-size-large .sgl-button-icon svg {
    width: 24px;
    height: 24px;
}

/* ===================== */
/* FULL WIDTH            */
/* ===================== */
.sgl-full-width {
    display: block;
}

.sgl-full-width .sgl-button {
    width: 100%;
    display: flex;
}

/* ===================== */
/* PROFILE SECTION       */
/* ===================== */
.sgl-profile-section {
    margin: 20px 0;
    padding: 16px 20px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.sgl-profile-section h3 {
    margin-top: 0;
    font-size: 14px;
}

.sgl-linked-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.sgl-status-linked {
    color: #34a853;
    font-weight: bold;
    font-size: 18px;
}

.sgl-status-unlinked {
    color: #ea4335;
    font-weight: bold;
    font-size: 18px;
}

.sgl-unlink-button {
    margin-top: 8px !important;
}

/* ===================== */
/* TERMS                 */
/* ===================== */
.sgl-terms {
    font-size: 11px;
    color: #666;
    margin-top: 8px;
    line-height: 1.4;
}

.sgl-terms a {
    color: #4285f4;
}

/* ===================== */
/* WP LOGIN FORM         */
/* ===================== */
.login .sgl-container {
    margin: 0 0 16px 0;
}

.login .sgl-full-width .sgl-button,
.login .sgl-button-wrap {
    width: 100%;
}

.login .sgl-button {
    width: 100%;
    justify-content: center;
}

/* ===================== */
/* WOO INTEGRATION       */
/* ===================== */
.sgl-woo-checkout {
    margin-bottom: 20px;
}

/* ===================== */
/* RESPONSIVE            */
/* ===================== */
@media screen and (max-width: 600px) {
    .sgl-button {
        width: 100%;
        justify-content: center;
    }

    .sgl-button-wrap {
        display: block;
        width: 100%;
    }
}
