/**
 * Login with Google - Frontend Styles
 *
 * @package Login_With_Google
 */

/* ============================
   Google Login Button
   ============================ */
.lwg-button-wrapper {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.lwg-google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    color: #3c4043;
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.25px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    min-width: 240px;
}

.lwg-google-btn:hover {
    background: #f7f8f8;
    border-color: #c7c8ca;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: #3c4043;
    transform: translateY(-1px);
}

.lwg-google-btn:active {
    background: #f1f3f4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.lwg-google-btn:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

.lwg-google-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lwg-google-icon svg {
    display: block;
}

.lwg-btn-text {
    line-height: 1;
    white-space: nowrap;
}

/* ============================
   Login Form Integration
   ============================ */
.lwg-login-form-wrapper {
    margin: 20px 0 0 0;
    text-align: center;
}

.lwg-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 12px;
}

.lwg-divider::before,
.lwg-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dadce0;
}

.lwg-divider span {
    font-size: 12px;
    font-weight: 500;
    color: #80868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================
   Logged In State
   ============================ */
.lwg-logged-in {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
}

.lwg-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8eaed;
}

.lwg-user-name {
    flex: 1;
    font-size: 14px;
    color: #3c4043;
    font-weight: 500;
}

.lwg-logout-link {
    font-size: 13px;
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.lwg-logout-link:hover {
    background: #e8f0fe;
    text-decoration: none;
}

/* ============================
   Notice / Warning
   ============================ */
.lwg-notice {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.lwg-notice-warning {
    background: #fef7e0;
    border: 1px solid #f9e2af;
    color: #856404;
}

.lwg-notice a {
    color: #4285f4;
    font-weight: 600;
}

/* ============================
   Dark Mode Support
   ============================ */
@media (prefers-color-scheme: dark) {
    .lwg-google-btn {
        background: #131314;
        border-color: #5f6368;
        color: #e8eaed;
    }

    .lwg-google-btn:hover {
        background: #28292a;
        border-color: #80868b;
        color: #e8eaed;
    }

    .lwg-google-btn:active {
        background: #303134;
    }

    .lwg-logged-in {
        background: #1f1f1f;
        border-color: #3c4043;
    }

    .lwg-user-name {
        color: #e8eaed;
    }

    .lwg-divider::before,
    .lwg-divider::after {
        background: #5f6368;
    }

    .lwg-divider span {
        color: #9aa0a6;
    }
}
